Debian Codegraph @

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

raw
1 // stable_function_multi.stp - multiple variables
2
3 %{int hits = 0; %}
4
5 function fn1:long() %{
6 /* pure */ /* stable */
7 hits++;
8 STAP_RETURN(400);
9 %}
10
11 probe begin {
12 x = fn1()
13 y = fn1()
14 println(x, " ", y, " ", %{hits%})
15 exit()
16 }