Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.clone/probe_by_pid.c

raw
1 #include <stdio.h>
2 #include <unistd.h>
3
4 void test_function(void)
5 {
6 (void) getpid();
7 sleep(1);
8 }
9
10 int main(void)
11 {
12 sleep(1); // so that post-prologue doesn't fall inside loop
13 while (1) {
14 test_function();
15 }
16 }