aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2014-09-02 23:43:06 +0000
committerMark Johnston <markj@FreeBSD.org>2014-09-02 23:43:06 +0000
commit5439a71566c99dad77c16190574cf0149d9f92c6 (patch)
treeac3d113c4c0b13f3739f5bb85b96ea3ce1712bae /sys
parentb74ae45b4542c77ea21b8b2e5c64485932b98054 (diff)
downloadsrc-5439a71566c99dad77c16190574cf0149d9f92c6.tar.gz
src-5439a71566c99dad77c16190574cf0149d9f92c6.zip
Define _DTRACE_VERSION in sdt.h rather than setting it manually. This is
similar to what illumos does, and makes it easier to enable USDT probes in third-party software that doesn't make use of the system makefiles.
Notes
Notes: svn path=/head/; revision=270990
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/sdt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/sdt.h b/sys/sys/sdt.h
index eda1a12b1e97..ca820f68bce1 100644
--- a/sys/sys/sdt.h
+++ b/sys/sys/sdt.h
@@ -33,6 +33,8 @@
#ifndef _KERNEL
+#define _DTRACE_VERSION 1
+
#define DTRACE_PROBE(prov, name) { \
extern void __dtrace_##prov##___##name(void); \
__dtrace_##prov##___##name(); \