diff options
Diffstat (limited to 'include/sys/trace_dbgmsg.h')
-rw-r--r-- | include/sys/trace_dbgmsg.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sys/trace_dbgmsg.h b/include/sys/trace_dbgmsg.h index a4aab1e63..b2ef529ed 100644 --- a/include/sys/trace_dbgmsg.h +++ b/include/sys/trace_dbgmsg.h @@ -19,6 +19,9 @@ * CDDL HEADER END */ +#if defined(_KERNEL) +#if defined(HAVE_DECLARE_EVENT_CLASS) + /* Do not include this file directly. Please use <sys/trace.h> instead. */ #ifndef _SYS_TRACE_DBGMSG_INDIRECT #error "trace_dbgmsg.h included directly" @@ -63,3 +66,10 @@ DEFINE_EVENT(zfs_dprintf_class, name, \ TP_ARGS(msg)) /* END CSTYLED */ DEFINE_DPRINTF_EVENT(zfs_zfs__dprintf); + +#else + +DEFINE_DTRACE_PROBE1(zfs__dprintf); + +#endif /* HAVE_DECLARE_EVENT_CLASS */ +#endif /* _KERNEL */ |