X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/fe8ab488e9161c46dd9885d58fc52996dc0249ff..04b8595b18b1b41ac7a206e4b3d51a635f8413d7:/tools/tests/zero-to-n/zero-to-n.c diff --git a/tools/tests/zero-to-n/zero-to-n.c b/tools/tests/zero-to-n/zero-to-n.c index 97910a06f..af0aedf2d 100644 --- a/tools/tests/zero-to-n/zero-to-n.c +++ b/tools/tests/zero-to-n/zero-to-n.c @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include #include #include @@ -588,7 +588,11 @@ main(int argc, char **argv) printf("Worst on this round was %.2f us.\n", ((float)worst_latencies_from_first_ns[i]) / 1000.0); } - _tmp = syscall(SYS_kdebug_trace, 0xEEEEEEEE, 0, 0, 0, 0); + _tmp = kdebug_trace(0xeeeee0 | DBG_FUNC_NONE, + worst_latencies_from_first_ns[i] >> 32, + worst_latencies_from_first_ns[i] & 0xFFFFFFFF, + traceworthy_latency_ns >> 32, + traceworthy_latency_ns & 0xFFFFFFFF); } /* Let worker threads get back to sleep... */ @@ -643,7 +647,7 @@ selfexec_with_apptype(int argc, char *argv[]) char *new_argv[argc + 1 + 1 /* NULL */]; int i; char prog[PATH_MAX]; - int32_t prog_size = PATH_MAX; + uint32_t prog_size = PATH_MAX; ret = _NSGetExecutablePath(prog, &prog_size); if (ret != 0) err(1, "_NSGetExecutablePath");