summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.context/fib.stp
blob: 85c2fc1da96731a6fd8e84b62888c854479ed62b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
global depth = 0
global max_depth = 0

probe process("fib").function("fib").call {
    depth++
    if (depth > max_depth) {
            max_depth = depth
    }
}

probe process("fib").function("fib").return {
    if (depth == max_depth) {
            print_ubacktrace_brief()
            printf("\n")
    }
    depth--
}