Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/sdt_buildid.c

raw
1 #include <unistd.h>
2 #include <stdlib.h>
3 #include <stdio.h>
4
5 void bar ();
6
7 #ifndef ONLY_MAIN
8 #include "sdt_buildid_.h"
9
10 void
11 bar ()
12 {
13 printf("%s=%ld\n", "test_probe_0_semaphore", SDT_BUILDID_TEST_PROBE_0_ENABLED());
14 if (SDT_BUILDID_TEST_PROBE_0_ENABLED())
15 SDT_BUILDID_TEST_PROBE_0();
16 }
17 #endif
18
19 #ifndef NO_MAIN
20 int
21 main ()
22 {
23 bar();
24 return 0;
25 }
26 #endif