Export KTR_COMPILE as a sysctl so you can easily check from user space

what event mask has been compiled into the kernel.
This commit is contained in:
Robert Watson 2004-07-23 17:41:44 +00:00
parent 426fc84503
commit 4da86f8826
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132583

View File

@ -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, "");