diff options
author | alfred <alfred@FreeBSD.org> | 2012-11-01 04:07:08 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2012-11-01 04:07:08 +0000 |
commit | 17ead000b575c7ce3afe8be8c407ecccce71aa96 (patch) | |
tree | e88b6b96e5a2b38ee55f4ff5bce4bacc8dbd543c /share | |
parent | 24d055e3734afacefaa7dacc0a9491b9fafcb984 (diff) | |
download | FreeBSD-src-17ead000b575c7ce3afe8be8c407ecccce71aa96.zip FreeBSD-src-17ead000b575c7ce3afe8be8c407ecccce71aa96.tar.gz |
Small textdump enhancements.
Allow textdumps to be called explicitly from DDB.
If "dump" is called in DDB and textdumps are enabled then abort the
dump and tell the user to turn off textdumps.
Add options TEXTDUMP_PREFERRED to turn textdumps on by default.
Add options TEXTDUMP_VERBOSE to be a bit more verbose while textdumping.
Reviewed by: rwatson
MFC after: 2 weeks
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man4/ddb.4 | 4 | ||||
-rw-r--r-- | share/man/man4/textdump.4 | 29 |
2 files changed, 32 insertions, 1 deletions
diff --git a/share/man/man4/ddb.4 b/share/man/man4/ddb.4 index cefa7dd..c175155 100644 --- a/share/man/man4/ddb.4 +++ b/share/man/man4/ddb.4 @@ -1176,6 +1176,7 @@ section for more information on the scripting facility. .It Ic textdump set .It Ic textdump status .It Ic textdump unset +.It Ic textdump dump The .Ic textdump set command may be used to force the next kernel core dump to be a textdump @@ -1184,6 +1185,9 @@ rather than a traditional memory dump or minidump. reports whether a textdump has been scheduled. .Ic textdump unset cancels a request to perform a textdump as the next kernel core dump. +Use the +.Ic textdump dump +command to immediately perform a textdump. More information may be found in .Xr textdump 4 . .El diff --git a/share/man/man4/textdump.4 b/share/man/man4/textdump.4 index c104630..6db4130 100644 --- a/share/man/man4/textdump.4 +++ b/share/man/man4/textdump.4 @@ -36,6 +36,9 @@ .Sh SYNOPSIS .Cd options KDB .Cd options DDB + +.Cd options TEXTDUMP_VERBOSE +.Cd options TEXTDUMP_PREFERRED .Sh DESCRIPTION The .Nm @@ -115,7 +118,11 @@ or by setting the .Dv debug.ddb.textdump.pending sysctl to 1 using .Xr sysctl 8 , -it is possible to request that the next dump be a textdump. +it is possible to request that the next dump be a textdump. One can +also directly trigger a textdump in +.Xr ddb 4 +by running the command +.Ic textdump dump . .Pp If at the .Xr ddb 4 @@ -125,10 +132,30 @@ command line, the commands and .Ic textdump unset may be used to set, query, and clear the textdump pending flag. +The command +.Ic textdump dump +can be used to immediately trigger a textdump. .Pp As with regular kernel dumps, a dump partition must be automatically or manually configured using .Xr dumpon 8 . +.Pp +Additional kernel +.Xr config 8 +options: +.Bl -tag -width TEXTDUMP_PREFERRED +.It Cd TEXTDUMP_PREFERRED +sets textdumps to be the default manner of doing dumps. This means there +will be no need to +.Xr sysctl 8 +or use the +.Cr textdump set +.Xr ddb 8 +commands. +.It 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. +.El .Sh EXAMPLES In the following example, the script .Dv kdb.enter.panic |