diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-12-25 23:06:51 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-12-25 23:06:51 +0000 |
commit | 58739243681aa81940b676b9227a070fff00887c (patch) | |
tree | 088e1e3ce0a641612ba90e21c693b49eeadaa8d6 /sys/ddb/db_main.c | |
parent | 6bd00b26895bffe336f45242c749e29dddbc834f (diff) | |
download | FreeBSD-src-58739243681aa81940b676b9227a070fff00887c.zip FreeBSD-src-58739243681aa81940b676b9227a070fff00887c.tar.gz |
Add a new DDB(4) facility, output capture. Input and output from DDB may be
captured to a memory buffer for later inspection using sysctl(8), or in the
future, to a textdump.
A new DDB command, "capture", is added, which accepts arguments "on", "off",
"reset", and "status".
A new DDB sysctl tree, debug.ddb.capture, is added, which can be used to
resize the capture buffer and extract buffer contents.
MFC after: 3 months
Diffstat (limited to 'sys/ddb/db_main.c')
-rw-r--r-- | sys/ddb/db_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/ddb/db_main.c b/sys/ddb/db_main.c index c196bf7..0a9fbf7 100644 --- a/sys/ddb/db_main.c +++ b/sys/ddb/db_main.c @@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$"); #include <sys/pcpu.h> #include <sys/proc.h> #include <sys/reboot.h> +#include <sys/sysctl.h> #include <machine/kdb.h> #include <machine/pcb.h> @@ -45,6 +46,8 @@ __FBSDID("$FreeBSD$"); #include <ddb/db_command.h> #include <ddb/db_sym.h> +SYSCTL_NODE(_debug, OID_AUTO, ddb, CTLFLAG_RW, 0, "DDB settings"); + static dbbe_init_f db_init; static dbbe_trap_f db_trap; static dbbe_trace_f db_trace_self_wrapper; |