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