Debian Codegraph @

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

raw
1 probe kernel.function("vfs_read") {
2
3 try {
4
5 printf("BEGIN\n")
6
7 try {
8
9 error("E")
10
11 } catch {
12
13 printf("CONTINUE 1\n")
14
15 try {
16
17 printf("CONTINUE 2\n")
18 error("CONTINUE 3")
19
20 } catch (msg) {
21
22 printf("%s\n", msg)
23
24 }
25
26 }
27
28 printf("CONTINUE 4\n")
29 error("CONTINUE 5")
30 printf("END FAIL\n")
31
32 } catch (msg) {
33
34 printf("%s\n", msg);
35
36 }
37
38 printf("END PASS\n")
39 exit()
40 }