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