mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
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.
This commit is contained in:
parent
b74ae45b45
commit
5439a71566
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=270990
@ -125,7 +125,7 @@ ${_YC:R}.o: ${_YC}
|
|||||||
.if ${SRCS:M*.d}
|
.if ${SRCS:M*.d}
|
||||||
LDFLAGS+= -lelf
|
LDFLAGS+= -lelf
|
||||||
LDADD+= ${LIBELF}
|
LDADD+= ${LIBELF}
|
||||||
CFLAGS+= -D_DTRACE_VERSION=1 -I${.OBJDIR}
|
CFLAGS+= -I${.OBJDIR}
|
||||||
.endif
|
.endif
|
||||||
.for _DSRC in ${SRCS:M*.d:N*/*}
|
.for _DSRC in ${SRCS:M*.d:N*/*}
|
||||||
.for _D in ${_DSRC:R}
|
.for _D in ${_DSRC:R}
|
||||||
|
@ -33,6 +33,8 @@
|
|||||||
|
|
||||||
#ifndef _KERNEL
|
#ifndef _KERNEL
|
||||||
|
|
||||||
|
#define _DTRACE_VERSION 1
|
||||||
|
|
||||||
#define DTRACE_PROBE(prov, name) { \
|
#define DTRACE_PROBE(prov, name) { \
|
||||||
extern void __dtrace_##prov##___##name(void); \
|
extern void __dtrace_##prov##___##name(void); \
|
||||||
__dtrace_##prov##___##name(); \
|
__dtrace_##prov##___##name(); \
|
||||||
|
Loading…
Reference in New Issue
Block a user