Debian Codegraph @

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

raw
1 global count
2
3 probe error(1) {
4
5 count++
6
7 }
8
9 probe error(2) {
10
11 count++
12
13 }
14
15 probe error(5) {
16
17 if (count == 2)
18 printf("END PASS\n")
19 else
20 printf("END FAIL\n")
21
22 }
23
24 probe begin(1) {
25
26 printf("BEGIN\n")
27 error("CONTINUE")
28
29 }