PERFORCE change 78581 for review
Christian S.J. Peron
csjp at FreeBSD.org
Wed Jun 15 20:45:12 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=78581
Change 78581 by csjp at 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
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list