☰
Debian Codegraph
@
5.5-1
5.4-1
/
/
doc
/
SystemTap_Beginners_Guide
/
testsuite
/
systemtap.bpf
/
bpf_tests
/
context_vars1.stp
☽
☼
doc/SystemTap_Beginners_Guide/testsuite/systemtap.bpf/bpf_tests/context_vars1.stp
code
plain
raw
1
probe begin {
2
printf("BEGIN\n")
3
}
4
5
probe kernel.function("vfs_read") {
6
if ($file != 0 && $file->f_cred->usage->counter > 0 && $buf != 0)
7
exit()
8
}
9
10
probe end {
11
printf("END PASS\n")
12
}