Date: Wed, 15 Jun 2005 20:45:12 GMT From: "Christian S.J. Peron" <csjp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 78581 for review Message-ID: <200506152045.j5FKjCgo031381@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=78581 Change 78581 by csjp@csjp_xor on 2005/06/15 20:44:22 -Remove all un-used KTR masks and replace with place holders instead. -Introduce KTR_MAC which will be used for tracing in the mandatory access control framework. -Introduce KTR_SPARE which people can use if they want there file to be debugged. This should solve the lack of bits problem in the mask. To use KTR_SPARE sombody might do this: #ifdef DEBUG_MY_FILE #define KTR_MY_FILE KTR_SPARE #endif CTR0(KTR_MY_FILE, "trace info here"); Discussed with: jeff Affected files ... .. //depot/projects/trustedbsd/mac/sys/sys/ktr.h#14 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/sys/ktr.h#14 (text+ko) ==== @@ -40,13 +40,13 @@ * Trace classes */ #define KTR_GEN 0x00000001 /* General (TR) */ -#define KTR_NET 0x00000002 /* Network */ -#define KTR_DEV 0x00000004 /* Device driver */ +#define KTR_MAC 0x00000002 /* Mandatory Access Control */ +#define KTR_UNUSED0 0x00000004 #define KTR_LOCK 0x00000008 /* MP locking */ #define KTR_SMP 0x00000010 /* MP general */ -#define KTR_FS 0x00000020 /* Filesystem */ +#define KTR_UNUSED1 0x00000020 #define KTR_PMAP 0x00000040 /* Pmap tracing */ -#define KTR_MALLOC 0x00000080 /* Malloc tracing */ +#define KTR_UNUSED2 0x00000080 #define KTR_TRAP 0x00000100 /* Trap processing */ #define KTR_INTR 0x00000200 /* Interrupt tracing */ #define KTR_SIG 0x00000400 /* Signal processing */ @@ -54,8 +54,8 @@ #define KTR_PROC 0x00001000 /* Process scheduling */ #define KTR_SYSC 0x00002000 /* System call */ #define KTR_INIT 0x00004000 /* System initialization */ -#define KTR_KGDB 0x00008000 /* Trace kgdb internals */ -#define KTR_IO 0x00010000 /* Upper I/O */ +#define KTR_UNUSED3 0x00008000 +#define KTR_UNUSED4 0x00010000 #define KTR_EVH 0x00020000 /* Eventhandler */ #define KTR_NFS 0x00040000 /* The obvious */ #define KTR_VOP 0x00080000 /* The obvious */ @@ -70,7 +70,8 @@ #define KTR_CRITICAL 0x10000000 /* Critical sections */ #define KTR_SCHED 0x20000000 /* Machine parsed sched info. */ #define KTR_BUF 0x40000000 /* Buffer cache */ -#define KTR_ALL 0x7fffffff +#define KTR_SPARE 0x80000000 /* Mandatory Access Control */ +#define KTR_ALL 0xffffffff /* * Trace classes which can be assigned to particular use at compile time
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506152045.j5FKjCgo031381>