Main index | Section 4 | Options |
options TEXTDUMP_PREFERRED options TEXTDUMP_VERBOSE
textdump files are stored in the tar(5) format, and consist of one or more text files, each storing a particular type of debugging output. The following parts may be present:
ddb.txt | Captured ddb(4) output, if the capture facility has been used. May be disabled by clearing the debug.ddb.textdump.do_ddb sysctl. |
config.txt | Kernel configuration, if options INCLUDE_CONFIG_FILE has been compiled into the kernel. May be disabled by clearing the debug.ddb.textdump.do_config sysctl. |
msgbuf.txt | Kernel message buffer, including recent console output if the capture facility has been used. May be disabled by clearing the debug.ddb.textdump.do_msgbuf sysctl. |
panic.txt | Kernel panic string, if the kernel panicked before the dump was generated. May be disabled by clearing the debug.ddb.textdump.do_panic sysctl. |
version.txt | |
Kernel version string. My be disabled by clearing the debug.ddb.textdump.do_version sysctl. | |
Kernel textdumps may be extracted using tar(1).
If at the ddb(4) command line, the commands textdump set, textdump status, and textdump unset may be used to set, query, and clear the textdump pending flag.
As with regular kernel dumps, a dump partition must be automatically or manually configured using dumpon(8).
Additional kernel config(8) options:
Cd TEXTDUMP_PREFERRED | |
sets textdumps to be the default manner of doing dumps. This means there will be no need to sysctl(8) or use the textdump set ddb(8) commands. | |
Cd TEXTDUMP_VERBOSE | |
will have the textdump facility be more verbose about each file it is emitting as well as other diagnostics useful to debug the textdump facility itself. | |
script kdb.enter.panic=textdump set; capture on; show allpcpu; bt; ps; alltrace; show alllocks; textdump dump; reset
In the following example, the script kdb.enter.witness will run when the kernel debugger is entered as a result of a witness violation, printing lock-related information for the user:
script kdb.enter.witness=show locks
These scripts may also be configured using the ddb(8) utility.
TEXTDUMP (4) | October 18, 2019 |
Main index | Section 4 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | A typical Unix /bin or /usr/bin directory contains a hundred different kinds of programs, written by dozens of egotistical programmers, each with its own syntax, operating paradigm, rules of use ... strategies for specifying options, and different sets of constraints. | ” |
— The Unix Haters' handbook |