OILS / mycpp / probes.h View on Github | oilshell.org

31 lines, 28 significant
1#ifndef MYCPP_PROBES_H
2#define MYCPP_PROBES_H
3
4#include "_build/detected-cpp-config.h" // for HAVE_SYSTEMTAP_SDT
5
6#if HAVE_SYSTEMTAP_SDT
7 #include <sys/sdt.h>
8#else
9 #define DTRACE_PROBE(provider, probe)
10 #define DTRACE_PROBE1(provider, probe, parm1)
11 #define DTRACE_PROBE2(provider, probe, parm1, parm2)
12 #define DTRACE_PROBE3(provider, probe, parm1, parm2, parm3)
13 #define DTRACE_PROBE4(provider, probe, parm1, parm2, parm3, parm4)
14 #define DTRACE_PROBE5(provider, probe, parm1, parm2, parm3, parm4, parm5)
15 #define DTRACE_PROBE6(provider, probe, parm1, parm2, parm3, parm4, parm5, \
16 parm6)
17 #define DTRACE_PROBE7(provider, probe, parm1, parm2, parm3, parm4, parm5, \
18 parm6, parm7)
19 #define DTRACE_PROBE8(provider, probe, parm1, parm2, parm3, parm4, parm5, \
20 parm6, parm7, parm8)
21 #define DTRACE_PROBE9(provider, probe, parm1, parm2, parm3, parm4, parm5, \
22 parm6, parm7, parm8, parm9)
23 #define DTRACE_PROBE10(provider, probe, parm1, parm2, parm3, parm4, parm5, \
24 parm6, parm7, parm8, parm9, parm10)
25 #define DTRACE_PROBE11(provider, probe, parm1, parm2, parm3, parm4, parm5, \
26 parm6, parm7, parm8, parm9, parm10, parm11)
27 #define DTRACE_PROBE12(provider, probe, parm1, parm2, parm3, parm4, parm5, \
28 parm6, parm7, parm8, parm9, parm10, parm11, parm12)
29#endif
30
31#endif // MYCPP_PROBES_H