☰
Debian Codegraph
@
5.5-1
5.4-1
/
/
doc
/
SystemTap_Beginners_Guide
/
testsuite
/
systemtap.base
/
process_by_pid.c
☽
☼
doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/process_by_pid.c
code
plain
raw
1
#include "sys/sdt.h"
2
#include <unistd.h>
3
4
void sleeper () {
5
sleep(1);
6
}
7
8
int main () {
9
while (1) {
10
sleeper();
11
marker_here:
12
STAP_PROBE(tmp_test_file, while_start);
13
}
14
if (0) // suppress gcc warning about unused label
15
goto marker_here;
16
return 0;
17
}