diff options
author | Mark Johnston <markj@FreeBSD.org> | 2014-09-02 23:43:06 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2014-09-02 23:43:06 +0000 |
commit | 5439a71566c99dad77c16190574cf0149d9f92c6 (patch) | |
tree | ac3d113c4c0b13f3739f5bb85b96ea3ce1712bae /sys | |
parent | b74ae45b4542c77ea21b8b2e5c64485932b98054 (diff) | |
download | src-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.h | 2 |
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(); \ |