summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2013-11-26 08:46:27 +0000
committeravg <avg@FreeBSD.org>2013-11-26 08:46:27 +0000
commit71889a5eff815ac21ca37c8402d0239ddc0239ec (patch)
tree71130e514f6da98b3b2d804eaad8f664edfb52a9 /sys/compat
parentf447b2ef4329bde3f84c0b8d1dd9d0ac291e4a9a (diff)
downloadFreeBSD-src-71889a5eff815ac21ca37c8402d0239ddc0239ec.zip
FreeBSD-src-71889a5eff815ac21ca37c8402d0239ddc0239ec.tar.gz
dtrace sdt: remove the ugly sname parameter of SDT_PROBE_DEFINE
In its stead use the Solaris / illumos approach of emulating '-' (dash) in probe names with '__' (two consecutive underscores). Reviewed by: markj MFC after: 3 weeks
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_dtrace.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/compat/linux/linux_dtrace.h b/sys/compat/linux/linux_dtrace.h
index 7ad6d6d..b713f16 100644
--- a/sys/compat/linux/linux_dtrace.h
+++ b/sys/compat/linux/linux_dtrace.h
@@ -48,27 +48,27 @@
LINUX_DTRACE, a, b, c)
#define _LIN_SDT_PROBE_DEFINE0(a, b, c, d) SDT_PROBE_DEFINE(a, \
- b, c, d, d)
+ b, c, d)
#define LIN_SDT_PROBE_DEFINE0(a, b, c) _LIN_SDT_PROBE_DEFINE0(\
LINUX_DTRACE, a, b, c)
#define _LIN_SDT_PROBE_DEFINE1(a, b, c, d, e) SDT_PROBE_DEFINE1(a, \
- b, c, d, d, e)
+ b, c, d, e)
#define LIN_SDT_PROBE_DEFINE1(a, b, c, d) _LIN_SDT_PROBE_DEFINE1(\
LINUX_DTRACE, a, b, c, d)
#define _LIN_SDT_PROBE_DEFINE2(a, b, c, d, e, f) SDT_PROBE_DEFINE2(a, \
- b, c, d, d, e, f)
+ b, c, d, e, f)
#define LIN_SDT_PROBE_DEFINE2(a, b, c, d, e) _LIN_SDT_PROBE_DEFINE2(\
LINUX_DTRACE, a, b, c, d, e)
#define _LIN_SDT_PROBE_DEFINE3(a, b, c, d, e, f, g) SDT_PROBE_DEFINE3(a, \
- b, c, d, d, e, f, g)
+ b, c, d, e, f, g)
#define LIN_SDT_PROBE_DEFINE3(a, b, c, d, e, f) _LIN_SDT_PROBE_DEFINE3(\
LINUX_DTRACE, a, b, c, d, e, f)
#define _LIN_SDT_PROBE_DEFINE4(a, b, c, d, e, f, g, h) SDT_PROBE_DEFINE4(a, \
- b, c, d, d, e, f, g, h)
+ b, c, d, e, f, g, h)
#define LIN_SDT_PROBE_DEFINE4(a, b, c, d, e, f, g) _LIN_SDT_PROBE_DEFINE4(\
LINUX_DTRACE, a, b, c, d, e, f, g)
#define _LIN_SDT_PROBE_DEFINE5(a, b, c, d, e, f, g, h, i) \
- SDT_PROBE_DEFINE5(a, b, c, d, d, e, f, g, h, i)
+ SDT_PROBE_DEFINE5(a, b, c, d, e, f, g, h, i)
#define LIN_SDT_PROBE_DEFINE5(a, b, c, d, e, f, g, h) _LIN_SDT_PROBE_DEFINE5(\
LINUX_DTRACE, a, b, c, d, e, f, g, h)
OpenPOWER on IntegriCloud