☰
Debian Codegraph
@
5.5-1
5.4-1
/
/
doc
/
SystemTap_Beginners_Guide
/
testsuite
/
systemtap.base
/
stable_function_multi.stp
☽
☼
doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/stable_function_multi.stp
code
plain
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
}