Debian Codegraph @

testsuite/systemtap.context/fib.stp

raw
1 global depth = 0
2 global max_depth = 0
3
4 probe process("fib").function("fib").call {
5 depth++
6 if (depth > max_depth) {
7 max_depth = depth
8 %( $# > 0 %? print_ubacktrace_brief(); printf("\n") %)
9 }
10 }
11
12 probe process("fib").function("fib").return {
13 %( $# == 0 %?
14 if (depth == max_depth) {
15 print_ubacktrace_brief()
16 printf("\n")
17 }
18 %)
19 depth--
20 }