|
NAMEtextdump —
textdump kernel dumping facility
SYNOPSISoptions DDB
options KDB
DESCRIPTIONThetextdump facility allows the capture of kernel
debugging information to disk in a human-readable rather than the
machine-readable form normally used with kernel memory dumps and minidumps.
This representation, while less complete in that it does not capture full
kernel state, can provide debugging information in a more compact, portable,
and persistent form than a traditional dump. By combining
textdump with other
ddb(4)
facilities, such as scripting and output capture, detailed bug information can
be captured in a fully automated manner.
FORMATtextdump data is stored in a dump partition in the same
style as a regular memory dump, and will be automatically extracted by
savecore(8)
if present on boot.
Kernel textdumps may be extracted using tar(1). CONFIGURATIONThetextdump facility is enabled as part of the kernel
debugger using options KDB and
options DDB . By default, kernel dumps generated on
panic or via explicit requests for a dump will be regular memory dumps;
however, by using the textdump set command in
ddb(4), or
by setting the debug.ddb.textdump.pending sysctl to 1
using
sysctl(8),
it is possible to request that the next dump be a textdump. One may also
directly trigger a textdump in
ddb(4) by
running the command textdump dump .
If at the
ddb(4)
command line, the commands As with regular kernel dumps, a dump partition must be automatically or manually configured using dumpon(8). Additional kernel config(8) options:
EXAMPLESIn the following example, the script kdb.enter.panic will run when the kernel debugger is entered as a result of a panic, enable output capture, dump several useful pieces of debugging information, and then invoke panic in order to force a kernel dump to be written out followed by a reboot: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. SEE ALSOtar(1), ddb(4), tar(5), ddb(8), dumpon(8), savecore(8), sysctl(8)HISTORYThetextdump facility first appeared in
FreeBSD 7.1.
AUTHORSThetextdump facility was created by
Robert N. M. Watson.
Visit the GSP FreeBSD Man Page Interface. |