4 runtime_ktrace1(runtime_ktrace_code_t code
)
6 void *ra
= __builtin_extract_return_addr(__builtin_return_address(1));
8 /* This syscall returns EINVAL when the trace isn't enabled. */
9 if (launchd_apple_internal
) {
10 syscall(180, code
, 0, 0, 0, (long)ra
);
15 runtime_ktrace0(runtime_ktrace_code_t code
)
17 void *ra
= __builtin_extract_return_addr(__builtin_return_address(0));
19 /* This syscall returns EINVAL when the trace isn't enabled. */
20 if (launchd_apple_internal
) {
21 syscall(180, code
, 0, 0, 0, (long)ra
);
26 runtime_ktrace(runtime_ktrace_code_t code
, long a
, long b
, long c
)
28 void *ra
= __builtin_extract_return_addr(__builtin_return_address(0));
30 /* This syscall returns EINVAL when the trace isn't enabled. */
31 if (launchd_apple_internal
) {
32 syscall(180, code
, a
, b
, c
, (long)ra
);