Date: Mon, 6 Nov 2000 17:49:49 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/conf options src/sys/sys ktr.h src/sys/kern kern_ktr.c Message-ID: <200011070149.RAA98787@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2000/11/06 17:49:49 PST
Modified files:
sys/conf options
sys/sys ktr.h
sys/kern kern_ktr.c
Log:
- Remove much of the inlining of the KTR tracepoints into a ktr_tracepoint()
function declared in kern_ktr.c. The only inline checks left are the
checks that compare KTR_COMPILE with the supplied mask and thus should
be optimized away into either nothing or a direct call to ktr_tracepoint().
- Move several KTR-related options to opt_ktr.h now that they are only
needed by kern_ktr.c and not by ktr.h.
- Add in the ktr_verbose functionality if KTR_EXTEND is turned on. If the
global variable 'ktr_verbose' is non-zero, then KTR messages will be
dumped to the console. This variable can be set by either kernel code
or via the 'debug.ktr_verbose' sysctl. It defaults to off unless the
KTR_VERBOSE kernel option is specified in which case it defaults to on.
This can be useful when the machine locks up spinning in a loop with
interrupts disabled as you might be able to see what it is doing when it
locks up.
Requested by: phk
Revision Changes Path
1.237 +4 -3 src/sys/conf/options
1.6 +30 -137 src/sys/sys/ktr.h
1.2 +87 -3 src/sys/kern/kern_ktr.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011070149.RAA98787>
