Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/lock.h
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | |||||
* If any of WITNESS, INVARIANTS, or KTR_LOCK KTR tracing has been enabled, | * If any of WITNESS, INVARIANTS, or KTR_LOCK KTR tracing has been enabled, | ||||
* then turn on LOCK_DEBUG. When this option is on, extra debugging | * then turn on LOCK_DEBUG. When this option is on, extra debugging | ||||
* facilities such as tracking the file and line number of lock operations | * facilities such as tracking the file and line number of lock operations | ||||
* are enabled. Also, mutex locking operations are not inlined to avoid | * are enabled. Also, mutex locking operations are not inlined to avoid | ||||
* bloat from all the extra debugging code. We also have to turn on all the | * bloat from all the extra debugging code. We also have to turn on all the | ||||
* 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) || \ | #if (defined(KLD_MODULE) && !defined(KLD_TIED)) || defined(WITNESS) || defined(INVARIANTS) || \ | ||||
defined(LOCK_PROFILING) || defined(KTR) | defined(LOCK_PROFILING) || defined(KTR) | ||||
#define LOCK_DEBUG 1 | #define LOCK_DEBUG 1 | ||||
#else | #else | ||||
#define LOCK_DEBUG 0 | #define LOCK_DEBUG 0 | ||||
#endif | #endif | ||||
/* | /* | ||||
* In the LOCK_DEBUG case, use the filename and line numbers for debugging | * In the LOCK_DEBUG case, use the filename and line numbers for debugging | ||||
▲ Show 20 Lines • Show All 224 Lines • Show Last 20 Lines |