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