xref: /netbsd-src/usr.bin/kdump/kdump.1 (revision 037708cbd4616ccd0d7d0381ebd3964d6696c188)
1.\"	$NetBSD: kdump.1,v 1.4 1997/01/09 20:20:27 tls Exp $
2.\"
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.\"	$NetBSD: kdump.1,v 1.4 1997/01/09 20:20:27 tls Exp $
36.\"
37.Dd June 6, 1993
38.Dt KDUMP 1
39.Os BSD 4.4
40.Sh NAME
41.Nm kdump
42.Nd display kernel trace data
43.Sh SYNOPSIS
44.Nm kdump
45.Op Fl dnlRT
46.Op Fl e Ar emulation
47.Op Fl f Ar file
48.Op Fl m Ar maxdata
49.Op Fl t Op cenis
50.Sh DESCRIPTION
51.Nm Kdump
52displays the kernel trace files produced with
53.Xr ktrace 1
54in human readable format.
55By default, the file
56.Pa ktrace.out
57in the current directory is displayed.
58.Pp
59The options are as follows:
60.Bl -tag -width Fl
61.It Fl d
62Display all numbers in decimal.
63.It Fl e Ar emulation
64Interpret system call maps assuming the named emulation instead of "netbsd".
65.It Fl f Ar file
66Display the specified file instead of
67.Pa ktrace.out .
68.It Fl l
69Loop reading the trace file, once the end-of-file is reached, waiting for
70more data.
71.It Fl m Ar maxdata
72Display at most
73.Ar maxdata
74bytes when decoding
75.Tn I/O .
76.It Fl n
77Suppress ad hoc translations.
78Normally
79.Nm kdump
80tries to decode many system calls into a more human readable format.
81For example,
82.Xr ioctl 2
83values are replaced with the macro name and
84.Va errno
85values are replaced with the
86.Xr strerror 3
87string.
88Suppressing this feature yields a more consistent output format and is
89easily amenable to further processing.
90.It Fl R
91Display relative timestamps (time since previous entry).
92.It Fl T
93Display absolute timestamps for each entry (seconds since epoch).
94.It Fl t Ar cnis
95See the
96.Fl t
97option of
98.Xr ktrace 1 .
99.El
100.Sh SEE ALSO
101.Xr ktrace 1
102.Sh HISTORY
103The
104.Nm kdump
105command appears in
106.Bx 4.4 .
107