aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/callb.h
diff options
context:
space:
mode:
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-05-19 02:49:12 +0000
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-05-19 02:49:12 +0000
commitcc7449ccd612ed8567e7a8a8574ea6df1d5faa7d (patch)
treeb93c2cf48f25df1de9cd8ec6505da74aaeb6df2e /include/sys/callb.h
parent6ab69573ffc79db6fcd0539218e96ded41fcafc1 (diff)
- Properly fix the debug support for all the ASSERT's, VERIFIES, etc can be
compiled out when doing performance runs. - Bite the bullet and fully autoconfize the debug options in the configure time parameters. By default all the debug support is disable in the core SPL build, but available to modules which enable it when building against the SPL. To enable particular SPL debug support use the follow configure options: --enable-debug Internal ASSERTs --enable-debug-kmem Detailed memory accounting --enable-debug-mutex Detailed mutex tracking --enable-debug_kstat Kstat info exported to /proc --enable-debug-callb Additional callb debug git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@111 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'include/sys/callb.h')
-rw-r--r--include/sys/callb.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/sys/callb.h b/include/sys/callb.h
index 39cdf9622..0857d6d8a 100644
--- a/include/sys/callb.h
+++ b/include/sys/callb.h
@@ -8,15 +8,12 @@ extern "C" {
#include <linux/module.h>
#include <sys/mutex.h>
-#define DEBUG_CALLB
-
-#ifndef DEBUG_CALLB
+#ifdef DEBUG_CALLB
#define CALLB_CPR_ASSERT(cp) ASSERT(MUTEX_HELD((cp)->cc_lockp));
#else
-#define CALLB_CPR_ASSERT(cp)
+#define CALLB_CPR_ASSERT(cp) (void)0
#endif
-
typedef struct callb_cpr {
kmutex_t *cc_lockp;
} callb_cpr_t;