aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/debug.h
diff options
context:
space:
mode:
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-05-05 20:18:49 +0000
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-05-05 20:18:49 +0000
commit9ab1ac14ad955800ca070abc11dd031244efb65f (patch)
treea90ffa4dc3297ae6c4d918e610a9764bc63672d5 /include/sys/debug.h
parentbcd68186d8009957b751720a801e4c16bb272e83 (diff)
Commit adaptive mutexes. This seems to have introduced some new
crashes but it's not clear to me yet if these are a problem with the mutex implementation or ZFSs usage of it. Minor taskq fixes to add new tasks to the end of the pending list. Minor enhansements to the debug infrastructure. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@94 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'include/sys/debug.h')
-rw-r--r--include/sys/debug.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/sys/debug.h b/include/sys/debug.h
index 64aa1808f..39585ba19 100644
--- a/include/sys/debug.h
+++ b/include/sys/debug.h
@@ -310,16 +310,19 @@ do { \
return RETURN__ret; \
} while (0)
-#define ENTRY \
+#define __ENTRY(subsys) \
do { \
- CDEBUG(D_TRACE, "Process entered\n"); \
+ __CDEBUG(NULL, subsys, D_TRACE, "Process entered\n"); \
} while (0)
-#define EXIT \
+#define __EXIT(subsys) \
do { \
- CDEBUG(D_TRACE, "Process leaving\n"); \
+ __CDEBUG(NULL, subsys, D_TRACE, "Process leaving\n"); \
} while(0)
+#define ENTRY __ENTRY(DEBUG_SUBSYSTEM)
+#define EXIT __EXIT(DEBUG_SUBSYSTEM)
+
extern int spl_debug_vmsg(spl_debug_limit_state_t *cdls, int subsys, int mask,
const char *file, const char *fn, const int line,
const char *format1, va_list args, const char *format2, ...);