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/modules/zfs/Makefile | |
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/modules/zfs/Makefile')
-rw-r--r-- | sys/modules/zfs/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/modules/zfs/Makefile b/sys/modules/zfs/Makefile index 63da0ce2..e8f8193 100644 --- a/sys/modules/zfs/Makefile +++ b/sys/modules/zfs/Makefile @@ -4,6 +4,12 @@ KMOD= zfs SRCS= bus_if.h device_if.h vnode_if.h +.if !defined(KERNBUILDDIR) +SRCS+= opt_kdtrace.h +opt_kdtrace.h: + echo "" > ${.TARGET} +.endif + SUNW= ${.CURDIR}/../../cddl/contrib/opensolaris .PATH: ${SUNW}/common/acl |