From 92e6c2fd6d2d32b2d703cbf238f7a4a6b63f013b Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Fri, 25 Apr 2008 13:23:36 +0000 Subject: [PATCH] Rename debug.ddb.capture.bytes sysctl to debug.ddb.capture.bufoff in order to match the internal variable name. Add a new sysctl debug.ddb.capture.inprogress to export the inprogress variable. MFC after: 3 days --- sys/ddb/db_capture.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/ddb/db_capture.c b/sys/ddb/db_capture.c index 8cefcdfccad9..61971c2be684 100644 --- a/sys/ddb/db_capture.c +++ b/sys/ddb/db_capture.c @@ -83,13 +83,16 @@ SX_SYSINIT(db_capture_sx, &db_capture_sx, "db_capture_sx"); static SYSCTL_NODE(_debug_ddb, OID_AUTO, capture, CTLFLAG_RW, 0, "DDB capture options"); -SYSCTL_UINT(_debug_ddb_capture, OID_AUTO, bytes, CTLFLAG_RD, +SYSCTL_UINT(_debug_ddb_capture, OID_AUTO, bufoff, CTLFLAG_RD, &db_capture_bufoff, 0, "Bytes of data in DDB capture buffer"); SYSCTL_UINT(_debug_ddb_capture, OID_AUTO, maxbufsize, CTLFLAG_RD, &db_capture_maxbufsize, 0, "Maximum value for debug.ddb.capture.bufsize"); +SYSCTL_UINT(_debug_ddb_capture, OID_AUTO, inprogress, CTLFLAG_RD, + &db_capture_inprogress, 0, "DDB output capture in progress"); + /* * Boot-time allocation of the DDB capture buffer, if any. Force all buffer * sizes, including the maximum size, to be rounded to block sizes.