Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/plt.stp

raw
1 global calls
2
3 probe $1 {
4 calls[$$name] += 1
5 }
6
7 %( @2 == "return" %?
8 probe $1.return {
9 calls[$$name] -= 1
10 }
11 %)
12
13
14 probe end {
15 foreach (x+ in calls)
16 printf ("%s %d\n", x, calls[x])
17 }
18