Debian Codegraph @

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

raw
1 global t
2
3 probe begin {
4 printf("BEGIN\n")
5 }
6
7 probe kernel.function("vfs_read") {
8 t["key"] = 6
9 exit()
10 }
11
12 probe end {
13 c = 0
14 foreach (k in t)
15 c++
16 printf("%d\n", c)
17 printf("END PASS\n")
18 }