Annotation of src/usr.bin/kdump/kdump.1, Revision 1.7
1.7 ! aaron 1: .\" $OpenBSD: kdump.1,v 1.6 2000/03/04 15:53:40 aaron Exp $
! 2: .\"
1.1 deraadt 3: .\" Copyright (c) 1990, 1993
4: .\" The Regents of the University of California. All rights reserved.
5: .\"
6: .\" Redistribution and use in source and binary forms, with or without
7: .\" modification, are permitted provided that the following conditions
8: .\" are met:
9: .\" 1. Redistributions of source code must retain the above copyright
10: .\" notice, this list of conditions and the following disclaimer.
11: .\" 2. Redistributions in binary form must reproduce the above copyright
12: .\" notice, this list of conditions and the following disclaimer in the
13: .\" documentation and/or other materials provided with the distribution.
14: .\" 3. All advertising materials mentioning features or use of this software
15: .\" must display the following acknowledgement:
16: .\" This product includes software developed by the University of
17: .\" California, Berkeley and its contributors.
18: .\" 4. Neither the name of the University nor the names of its contributors
19: .\" may be used to endorse or promote products derived from this software
20: .\" without specific prior written permission.
21: .\"
22: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25: .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32: .\" SUCH DAMAGE.
33: .\"
34: .\" from: @(#)kdump.1 8.1 (Berkeley) 6/6/93
35: .\"
36: .Dd June 6, 1993
37: .Dt KDUMP 1
1.5 aaron 38: .Os
1.1 deraadt 39: .Sh NAME
40: .Nm kdump
41: .Nd display kernel trace data
42: .Sh SYNOPSIS
43: .Nm kdump
44: .Op Fl dnlRT
45: .Op Fl e Ar emulation
46: .Op Fl f Ar file
47: .Op Fl m Ar maxdata
48: .Op Fl t Op cenis
49: .Sh DESCRIPTION
1.6 aaron 50: .Nm
1.1 deraadt 51: displays the kernel trace files produced with
52: .Xr ktrace 1
1.4 aaron 53: in human-readable format.
1.1 deraadt 54: By default, the file
55: .Pa ktrace.out
1.6 aaron 56: in the current directory is displayed, unless overriden by the
57: .Fl f
58: option.
1.1 deraadt 59: .Pp
60: The options are as follows:
1.6 aaron 61: .Bl -tag -width Ds
1.1 deraadt 62: .It Fl d
63: Display all numbers in decimal.
1.6 aaron 64: By default, values are printed out in hexadecimal.
1.1 deraadt 65: .It Fl e Ar emulation
1.6 aaron 66: Interpret system call maps assuming the named emulation instead of
67: .Qq bsd .
68: For example, to view trace output from a Linux binary, use
69: .Fl e Ar linux .
1.5 aaron 70: .It Fl f Ar file
1.1 deraadt 71: Display the specified file instead of
72: .Pa ktrace.out .
73: .It Fl l
74: Loop reading the trace file, once the end-of-file is reached, waiting for
75: more data.
1.5 aaron 76: .It Fl m Ar maxdata
1.1 deraadt 77: Display at most
78: .Ar maxdata
79: bytes when decoding
80: .Tn I/O .
81: .It Fl n
82: Suppress ad hoc translations.
83: Normally
1.6 aaron 84: .Nm
1.4 aaron 85: tries to decode many system calls into a more human-readable format.
1.1 deraadt 86: For example,
87: .Xr ioctl 2
88: values are replaced with the macro name and
89: .Va errno
90: values are replaced with the
91: .Xr strerror 3
92: string.
93: Suppressing this feature yields a more consistent output format and is
94: easily amenable to further processing.
95: .It Fl R
96: Display relative timestamps (time since previous entry).
97: .It Fl T
98: Display absolute timestamps for each entry (seconds since epoch).
1.6 aaron 99: .It Fl t Op cenis
1.1 deraadt 100: See the
101: .Fl t
102: option of
103: .Xr ktrace 1 .
104: .El
1.6 aaron 105: .Sh FILES
106: .Bl -tag -width ktrace.out -compact
107: .It Pa ktrace.out
108: default ktrace dump file
109: .El
1.1 deraadt 110: .Sh SEE ALSO
111: .Xr ktrace 1
112: .Sh HISTORY
113: The
1.6 aaron 114: .Nm
1.4 aaron 115: command appeared in
1.1 deraadt 116: .Bx 4.4 .