Date: Thu, 27 Feb 2003 12:28:41 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 26027 for review Message-ID: <200302272028.h1RKSfWw047196@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=26027 Change 26027 by jhb@jhb_laptop on 2003/02/27 12:28:01 Fold KTR_LOCKMGR into KTR_LOCK for now and have KTR_EVH use that. KTR_WITNESS is probably should be a file-specific one wrapped in WITNESS_DEBUG. Affected files ... .. //depot/projects/smpng/sys/kern/kern_lock.c#20 edit .. //depot/projects/smpng/sys/sys/ktr.h#13 edit Differences ... ==== //depot/projects/smpng/sys/kern/kern_lock.c#20 (text+ko) ==== @@ -148,7 +148,7 @@ struct lock *lkp = *lkpp; int s, error; - CTR3(KTR_LOCKMGR, + CTR3(KTR_LOCK, "acquire(): lkp == %p, extflags == 0x%x, wanted == 0x%x\n", lkp, extflags, wanted); @@ -222,7 +222,7 @@ struct thread *thr; int extflags, lockflags; - CTR5(KTR_LOCKMGR, + CTR5(KTR_LOCK, "lockmgr(): lkp == %p (lk_wmesg == \"%s\"), flags == 0x%x, " "interlkp == %p, td == %p", lkp, lkp->lk_wmesg, flags, interlkp, td); @@ -534,7 +534,7 @@ int timo; int flags; { - CTR5(KTR_LOCKMGR, "lockinit(): lkp == %p, prio == %d, wmesg == \"%s\", " + CTR5(KTR_LOCK, "lockinit(): lkp == %p, prio == %d, wmesg == \"%s\", " "timo == %d, flags = 0x%x\n", lkp, prio, wmesg, timo, flags); if (lock_mtx_valid == 0) { @@ -579,7 +579,7 @@ lockdestroy(lkp) struct lock *lkp; { - CTR2(KTR_LOCKMGR, "lockdestroy(): lkp == %p (lk_wmesg == \"%s\")", + CTR2(KTR_LOCK, "lockdestroy(): lkp == %p (lk_wmesg == \"%s\")", lkp, lkp->lk_wmesg); } ==== //depot/projects/smpng/sys/sys/ktr.h#13 (text+ko) ==== @@ -65,15 +65,14 @@ #define KTR_INIT 0x00004000 /* System initialization */ #define KTR_KGDB 0x00008000 /* Trace kgdb internals */ #define KTR_IO 0x00010000 /* Upper I/O */ -#define KTR_LOCKMGR 0x00020000 +#define KTR_EVH 0x00020000 /* Eventhandler */ #define KTR_NFS 0x00040000 /* The obvious */ #define KTR_VOP 0x00080000 /* The obvious */ #define KTR_VM 0x00100000 /* The virtual memory system */ #define KTR_WITNESS 0x00200000 #define KTR_RUNQ 0x00400000 /* Run queue */ #define KTR_CONTENTION 0x00800000 /* Lock contention */ -#define KTR_EVH 0x01000000 /* Eventhandler */ -#define KTR_ALL 0x01ffffff +#define KTR_ALL 0x00ffffff /* * Trace classes which can be assigned to particular use at compile time To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302272028.h1RKSfWw047196>