diff options
author | Brian Behlendorf <[email protected]> | 2010-07-19 14:16:05 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2010-07-20 13:29:35 -0700 |
commit | 55abb0929e4fbe326a9737650a167a1a988ad86b (patch) | |
tree | 7fa8db9d12b4416f7f7e8e21cde864b501303924 /module/splat/splat-internal.h | |
parent | 8f813bb168eb21cd5d64b930ee015dcf93575331 (diff) |
Split <sys/debug.h> header
To avoid symbol conflicts with dependent packages the debug
header must be split in to several parts. The <sys/debug.h>
header now only contains the Solaris macro's such as ASSERT
and VERIFY. The spl-debug.h header contain the spl specific
debugging infrastructure and should be included by any package
which needs to use the spl logging. Finally the spl-trace.h
header contains internal data structures only used for the log
facility and should not be included by anythign by spl-debug.c.
This way dependent packages can include the standard Solaris
headers without picking up any SPL debug macros. However, if
the dependant package want to integrate with the SPL debugging
subsystem they can then explicitly include spl-debug.h.
Along with this change I have dropped the CHECK_STACK macros
because the upstream Linux kernel now has much better stack
depth checking built in and we don't need this complexity.
Additionally SBUG has been replaced with PANIC and provided as
part of the Solaris macro set. While the Solaris version is
really panic() that conflicts with the Linux kernel so we'll
just have to make due to PANIC. It should rarely be called
directly, the prefered usage would be an ASSERT or VERIFY.
There's lots of change here but this cleanup was overdue.
Diffstat (limited to 'module/splat/splat-internal.h')
-rw-r--r-- | module/splat/splat-internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/module/splat/splat-internal.h b/module/splat/splat-internal.h index ba1224fc1..c42e08d6f 100644 --- a/module/splat/splat-internal.h +++ b/module/splat/splat-internal.h @@ -66,6 +66,7 @@ #include <linux/cdev.h> #include "spl-device.h" +#include "spl-debug.h" #include "splat-ctl.h" #define SPLAT_SUBSYSTEM_INIT(type) \ |