]>
git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/data-in-code/main.c
811449a764ca065cfdb4f91f3f40708ad8006f81
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 #define DTRACE_LABEL(p, n) \
17 ".section __DATA, __data\n\t" \
18 ".globl " DTRACE_LAB(p, n) "\n\t" \
19 DTRACE_LAB(p, n) ":\n\t" ".long 1f""\n\t" \
23 #define DTRACE_CALL(p,n) \
27 #define DTRACE_CALL0ARGS(provider, name) \
29 DTRACE_CALL(provider, name) \
36 DTRACE_CALL0ARGS(__foo__
, test2
)
45 DTRACE_CALL0ARGS(__foo__
, test1
)