summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_ktr.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-07-23 17:41:44 +0000
committerrwatson <rwatson@FreeBSD.org>2004-07-23 17:41:44 +0000
commitbbeea980c0e35676ecd2a6bb47ad39c722f7582c (patch)
treec91ef835da886314db3f1da4e0a2ad23099cf1b2 /sys/kern/kern_ktr.c
parent13128d7277d124b4e62819135e1dff1b159e2b09 (diff)
downloadFreeBSD-src-bbeea980c0e35676ecd2a6bb47ad39c722f7582c.zip
FreeBSD-src-bbeea980c0e35676ecd2a6bb47ad39c722f7582c.tar.gz
Export KTR_COMPILE as a sysctl so you can easily check from user space
what event mask has been compiled into the kernel.
Diffstat (limited to 'sys/kern/kern_ktr.c')
-rw-r--r--sys/kern/kern_ktr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_ktr.c b/sys/kern/kern_ktr.c
index 39ae331..10e8f7d 100644
--- a/sys/kern/kern_ktr.c
+++ b/sys/kern/kern_ktr.c
@@ -88,6 +88,9 @@ int ktr_mask = KTR_MASK;
TUNABLE_INT("debug.ktr.mask", &ktr_mask);
SYSCTL_INT(_debug_ktr, OID_AUTO, mask, CTLFLAG_RW, &ktr_mask, 0, "");
+int ktr_compile = KTR_COMPILE;
+SYSCTL_INT(_debug_ktr, OID_AUTO, compile, CTLFLAG_RD, &ktr_compile, 0, "");
+
int ktr_entries = KTR_ENTRIES;
SYSCTL_INT(_debug_ktr, OID_AUTO, entries, CTLFLAG_RD, &ktr_entries, 0, "");
OpenPOWER on IntegriCloud