Debian Codegraph @

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

raw
1 // Test nested @casts. If this script compiles and runs then the test passes.
2 probe begin {
3 printf("BEGIN\n")
4 }
5
6 probe kernel.trace("timer_start") {
7 printf("%d\n", @cast(@cast($timer, "timer_list", "kernel<linux/timer.h>")->function, "u_int8_t", "kernel<linux/types.h>")[2])
8 }
9
10 probe timer.s(1) {
11 exit()
12 }
13
14 probe end {
15 printf("END PASS\n")
16 }