aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/ktr.h
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2002-08-26 18:39:38 +0000
committerIan Dowse <iedowse@FreeBSD.org>2002-08-26 18:39:38 +0000
commit02bd1bcd2ad2387d37b5905ebd66ed92b9ee5b9f (patch)
treed0ae0943ef0c7d67367b64a823d8888aef1d1a30 /sys/sys/ktr.h
parente7f52ff8bb1fd89b0014c6fffbc4f1ef2afbb239 (diff)
downloadsrc-02bd1bcd2ad2387d37b5905ebd66ed92b9ee5b9f.tar.gz
src-02bd1bcd2ad2387d37b5905ebd66ed92b9ee5b9f.zip
Add a new KTR type KTR_CONTENTION, and use it in the mutex code to
log the start and end of periods during which mtx_lock() is waiting to acquire a sleep mutex. The log message includes the file and line of both the waiter and the holder. Reviewed by: jhb, jake
Notes
Notes: svn path=/head/; revision=102450
Diffstat (limited to 'sys/sys/ktr.h')
-rw-r--r--sys/sys/ktr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/ktr.h b/sys/sys/ktr.h
index 3b552a97b45d..41220a3dacb1 100644
--- a/sys/sys/ktr.h
+++ b/sys/sys/ktr.h
@@ -71,7 +71,8 @@
#define KTR_VM 0x00100000 /* The virtual memory system */
#define KTR_WITNESS 0x00200000
#define KTR_RUNQ 0x00400000 /* Run queue */
-#define KTR_ALL 0x007fffff
+#define KTR_CONTENTION 0x00800000 /* Lock contention */
+#define KTR_ALL 0x00ffffff
/*
* Trace classes which can be assigned to particular use at compile time