From e6e636d5397089a348aba3ee857ea9b78d5198f3 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Fri, 19 Sep 2003 22:01:56 +0000 Subject: [PATCH] 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 --- sys/sys/lock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/lock.h b/sys/sys/lock.h index dcf7b772217a..c2359f6bea1b 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