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
This commit is contained in:
sam 2003-09-19 22:01:56 +00:00
parent 105729ef61
commit 6840ea324a

View File

@ -127,7 +127,7 @@ struct lock_list_entry {
* calling conventions for this debugging code in modules so that modules can * calling conventions for this debugging code in modules so that modules can
* work with both debug and non-debug kernels. * 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 #define LOCK_DEBUG 1
#else #else
#define LOCK_DEBUG 0 #define LOCK_DEBUG 0