]>
git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/dtrace-old-probes/main.c
4 #define DTRACE_STRINGIFY(s) #s
5 #define DTRACE_TOSTRING(s) DTRACE_STRINGIFY(s)
13 #define DTRACE_LAB(p, n) \
14 "__dtrace_probe$" DTRACE_TOSTRING(%=__LINE__) DTRACE_STRINGIFY(_##p##___##n)
16 #if (defined __x86_64__ || defined __arm64__)
17 #define DTRACE_LABEL(p, n) \
18 ".section __DATA, __data\n\t" \
19 ".globl " DTRACE_LAB(p, n) "\n\t" \
20 DTRACE_LAB(p, n) ":" ".quad 1f""\n\t" \
24 #define DTRACE_LABEL(p, n) \
25 ".section __DATA, __data\n\t" \
26 ".globl " DTRACE_LAB(p, n) "\n\t" \
27 DTRACE_LAB(p, n) ":\n\t" ".long 1f""\n\t" \
32 #define DTRACE_CALL(p,n) \
36 #define DTRACE_CALL0ARGS(provider, name) \
38 DTRACE_CALL(provider, name) \
45 DTRACE_CALL0ARGS(__foo__
, test2
)
54 DTRACE_CALL0ARGS(__foo__
, test1
)