summaryrefslogtreecommitdiffstats
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2003-09-19 22:01:56 +0000
committersam <sam@FreeBSD.org>2003-09-19 22:01:56 +0000
commit6840ea324a25c6cbd011b1df92142ccbe910b1c3 (patch)
tree59828c4c91af059a8f03fe668bad8317cb2c5ef0 /sys/sys/lock.h
parent105729ef61878f43288e802088f4db9190fe30e0 (diff)
downloadFreeBSD-src-6840ea324a25c6cbd011b1df92142ccbe910b1c3.zip
FreeBSD-src-6840ea324a25c6cbd011b1df92142ccbe910b1c3.tar.gz
when MUTEX_PROFILING is enabled turn on LOCK_DEBUG; otherwise all the mutex's
get dumped into a single bucket with line #0 and file NULL Supported by: FreeBSD Foundation
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r--sys/sys/lock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index dcf7b77..c2359f6 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -127,7 +127,7 @@ struct lock_list_entry {
* calling conventions for this debugging code in modules so that modules can
* work with both debug and non-debug kernels.
*/
-#if defined(KLD_MODULE) || defined(WITNESS) || defined(INVARIANTS) || defined(INVARIANT_SUPPORT) || defined(KTR)
+#if defined(KLD_MODULE) || defined(WITNESS) || defined(INVARIANTS) || defined(INVARIANT_SUPPORT) || defined(KTR) || defined(MUTEX_PROFILING)
#define LOCK_DEBUG 1
#else
#define LOCK_DEBUG 0
OpenPOWER on IntegriCloud