aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/trace_dbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys/trace_dbuf.h')
-rw-r--r--include/sys/trace_dbuf.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/sys/trace_dbuf.h b/include/sys/trace_dbuf.h
index e97b61137..fb12e2854 100644
--- a/include/sys/trace_dbuf.h
+++ b/include/sys/trace_dbuf.h
@@ -19,7 +19,8 @@
* CDDL HEADER END
*/
-#if defined(_KERNEL) && defined(HAVE_DECLARE_EVENT_CLASS)
+#if defined(_KERNEL)
+#if defined(HAVE_DECLARE_EVENT_CLASS)
#undef TRACE_SYSTEM
#define TRACE_SYSTEM zfs
@@ -142,4 +143,10 @@ DEFINE_DBUF_EVICT_ONE_EVENT(zfs_dbuf__evict__one);
#define TRACE_INCLUDE_FILE trace_dbuf
#include <trace/define_trace.h>
-#endif /* _KERNEL && HAVE_DECLARE_EVENT_CLASS */
+#else
+
+DEFINE_DTRACE_PROBE2(blocked__read);
+DEFINE_DTRACE_PROBE2(dbuf__evict__one);
+
+#endif /* HAVE_DECLARE_EVENT_CLASS */
+#endif /* _KERNEL */