OpenBSD manual page server

Manual Page Search Parameters

KDUMP(1) General Commands Manual KDUMP(1)

kdumpdisplay kernel trace data

kdump [-dlnRrTXx] [-e emulation] [-f file] [-m maxdata] [-p pid] [-t [ceinsw]]

kdump displays the kernel trace files produced with ktrace(1) in human-readable format. By default, the file ktrace.out in the current directory is displayed, unless overridden by the -f option.

The options are as follows:

Display all numbers in decimal. By default, values are printed out in hexadecimal.
Interpret system call maps assuming the named emulation instead of "bsd". For example, to view trace output from a Linux binary, use -e linux.
Display the specified file instead of ktrace.out.
Loop reading the trace file, once the end-of-file is reached, waiting for more data.
Display at most maxdata bytes when decoding I/O.
Suppress ad hoc translations. Normally kdump tries to decode many system calls into a more human-readable format. For example, ioctl(2) values are replaced with the macro name and errno values are replaced with the strerror(3) string. Suppressing this feature yields a more consistent output format and is easily amenable to further processing.
Show output only for the pid specified.
Display relative timestamps (time since previous entry).
When decoding the name in sysctl(3) CALL records or structure members in STRU records (UIDs, GIDs, dates, etc), display symbolically instead of numerically.
Display absolute timestamps for each entry (seconds since the Epoch).
Selects which tracepoints to display. See the -t option of ktrace(1) for the definitions of the flags.
Display I/O data with hexadecimal data and printable ASCII characters side by side.
Display I/O data in hexadecimal.

default ktrace dump file


The kdump command appeared in 4.4BSD.

July 28, 2011 OpenBSD-5.1