☰
Debian Codegraph
@
5.5-1
5.4-1
/
/
doc
/
SystemTap_Beginners_Guide
/
testsuite
/
systemtap.bpf
/
bpf_tests
/
exit3.stp
☽
☼
doc/SystemTap_Beginners_Guide/testsuite/systemtap.bpf/bpf_tests/exit3.stp
code
plain
raw
1
global count
2
probe begin {
3
printf("BEGIN\n")
4
}
5
6
probe kernel.function("vfs_read") {
7
count++
8
exit()
9
}
10
11
12
probe end {
13
if (count == 1)
14
printf("END PASS\n")
15
else
16
printf("END FAIL\n")
17
}