summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorBrad Lewis <brad.lewis@delphix.com>2019-07-08 12:20:53 -0600
committerBrian Behlendorf <behlendorf1@llnl.gov>2019-07-08 11:20:53 -0700
commitcb709642216b5ac9be10039471c3c4bc27cb7cf2 (patch)
tree9bad20f8aafa6d1a53773ef9758614b6135f4f31 /module
parent1086f54219ebcdebf05b8f6bd10142c43c1f4f3f (diff)
8659 static dtrace probes unavailable on non-GPL modules
ZFS tracing efforts are hampered by the inability to access zfs static probes(probes using DTRACE_PROBE macros). The probes are available via tracepoints for GPL modules only. The build could be modified to generate a function for each unique DTRACE_PROBE invocation. These could be then accessed via kprobes. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Matt Ahrens <matt@delphix.com> Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com> Signed-off-by: Brad Lewis <brad.lewis@delphix.com> Closes #8659 Closes #8663
Diffstat (limited to 'module')
-rw-r--r--module/zfs/rrwlock.c1
-rw-r--r--module/zfs/trace.c6
2 files changed, 5 insertions, 2 deletions
diff --git a/module/zfs/rrwlock.c b/module/zfs/rrwlock.c
index 582b40a58..32d45f674 100644
--- a/module/zfs/rrwlock.c
+++ b/module/zfs/rrwlock.c
@@ -28,6 +28,7 @@
#include <sys/refcount.h>
#include <sys/rrwlock.h>
+#include <sys/trace_rrwlock.h>
/*
* This file contains the implementation of a re-entrant read
diff --git a/module/zfs/trace.c b/module/zfs/trace.c
index eb6efe841..fe503776b 100644
--- a/module/zfs/trace.c
+++ b/module/zfs/trace.c
@@ -18,9 +18,10 @@
*
* CDDL HEADER END
*/
+
/*
- * Each Linux tracepoints subsystem must define CREATE_TRACE_POINTS in one
- * (and only one) C file, so this dummy file exists for that purpose.
+ * Each DTRACE_PROBE must define its trace point in one (and only one)
+ * source file, so this dummy file exists for that purpose.
*/
#include <sys/multilist.h>
@@ -45,6 +46,7 @@
#include <sys/trace_dmu.h>
#include <sys/trace_dnode.h>
#include <sys/trace_multilist.h>
+#include <sys/trace_rrwlock.h>
#include <sys/trace_txg.h>
#include <sys/trace_vdev.h>
#include <sys/trace_zil.h>