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 Leffler 2003-09-19 22:01:56 +00:00
parent be9b20b07a
commit e6e636d539
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120246

View File

@ -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