cvs commit: src/sys/kern subr_witness.c src/sys/sys ktr.h

John Baldwin jhb at freebsd.org
Wed Jan 25 06:11:08 PST 2006


On Wednesday 25 January 2006 02:39, Nate Lawson wrote:
> John Baldwin wrote:
> > jhb         2006-01-24 22:23:45 UTC
> >
> >   FreeBSD src repository
> >
> >   Modified files:
> >     sys/kern             subr_witness.c
> >     sys/sys              ktr.h
> >   Log:
> >   - Add a new KTR_SUBSYS in place of KTR_SPARE1 to serve as a subsystem
> >     placeholder similar to KTR_DEV.  Explain the use of KTR_DEV and
> >     KTR_SUBSYS in a comment as well.
> >   - Retire KTR_WITNESS and instead have KTR_WITNESS default to off but
> > use KTR_SUBSYS if it is enabled.
> >
> >   Revision  Changes    Path
> >   1.212     +6 -0      src/sys/kern/subr_witness.c
> >   1.36      +7 -2      src/sys/sys/ktr.h
>
> Thanks, and I hope as we expand, people will use KTR_SUBSYS or KTR_DEV
> instead of growing their own.

Well, I'll probably rework KTR as described in the arch@ thread to move away 
from the single runtime mask (and thus the 32-bit limit) instead giving each 
KTR class its own loader tunable and matching sysctl mask.  There would still 
be a way to summarily turn KTR on and off altogether using the cpu masks, but 
the number of classes could grow without bound and kernel modules could even 
contain their own classes, etc.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the cvs-src mailing list