X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/2f2f92e40575142405a1caa9bcf847f7ad011c92..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 old mode 100755 new mode 100644 index 8a417e9..79ce4eb --- a/unit-tests/test-cases/dtrace-static-probes/main.c +++ b/unit-tests/test-cases/dtrace-static-probes/main.c @@ -10,7 +10,8 @@ typedef int weirdType2; int deadwood() { - BAR_COUNT1(2); + if ( BAR_COUNT1_ENABLED() ) + BAR_COUNT1(2); return 0; } @@ -19,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); }