diff options
author | avg <avg@FreeBSD.org> | 2014-02-17 14:47:52 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2014-02-17 14:47:52 +0000 |
commit | cc43c81b039ea4e8f8aec917d7a7cb781e320310 (patch) | |
tree | e4fcd119784fae786e9ddd3c7a0d7efe2942f013 /sys/kern/kern_sdt.c | |
parent | ad9d45d42725fe3fe3ece1c4b5d217d5fa7f3150 (diff) | |
download | FreeBSD-src-cc43c81b039ea4e8f8aec917d7a7cb781e320310.zip FreeBSD-src-cc43c81b039ea4e8f8aec917d7a7cb781e320310.tar.gz |
MFC r258625: sdt: add support for solaris/illumos style DTRACE_PROBE macros
Note: in head KDTRACE_HOOKS is defined in opt_global.h and thus there is
no need to explicitly include any header to check that option.
In this branch we have to include opt_kdtrace.h and, so, this commit
carries additional changes to accomodate for that difference.
Sponsored by: HybridCluster
Diffstat (limited to 'sys/kern/kern_sdt.c')
-rw-r--r-- | sys/kern/kern_sdt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_sdt.c b/sys/kern/kern_sdt.c index c8e1940..048a66c 100644 --- a/sys/kern/kern_sdt.c +++ b/sys/kern/kern_sdt.c @@ -31,6 +31,8 @@ #include <sys/systm.h> #include <sys/sdt.h> +SDT_PROVIDER_DEFINE(sdt); + /* * Hook for the DTrace probe function. The SDT provider will set this to * dtrace_probe() when it loads. |