Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.bpf/bpf_tests/context_vars1.stp

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 }