From 5439a71566c99dad77c16190574cf0149d9f92c6 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Tue, 2 Sep 2014 23:43:06 +0000 Subject: 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. --- sys/sys/sdt.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys') 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(); \ -- cgit v1.2.3