X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/a61fdf0a731e23ff7eb0cc86ba748fd9af5de879..HEAD:/unit-tests/test-cases/dtrace-static-probes/main.c diff --git a/unit-tests/test-cases/dtrace-static-probes/main.c b/unit-tests/test-cases/dtrace-static-probes/main.c index bbce55f..79ce4eb 100644 --- a/unit-tests/test-cases/dtrace-static-probes/main.c +++ b/unit-tests/test-cases/dtrace-static-probes/main.c @@ -10,7 +10,9 @@ typedef int weirdType2; int deadwood() { - BAR_COUNT1(2); + if ( BAR_COUNT1_ENABLED() ) + BAR_COUNT1(2); + return 0; } @@ -18,9 +20,11 @@ int main() { int a = 1; while(a) { - FOO_COUNT1(1); + if ( FOO_COUNT1_ENABLED() ) + FOO_COUNT1(1); printf("test\n"); - BAR_COUNT1(2); + if ( BAR_COUNT1_ENABLED() ) + BAR_COUNT1(2); sleep(1); }