☰
Debian Codegraph
@
5.5-1
5.4-1
/
/
doc
/
SystemTap_Beginners_Guide
/
testsuite
/
systemtap.base
/
stable_function_single.stp
☽
☼
doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/stable_function_single.stp
code
plain
raw
1
// stable_function_single.stp - single variable
2
%{int hits = 0; %}
3
4
function fn1:long() %{
5
/* pure */ /* stable */
6
hits++;
7
STAP_RETURN(100);
8
%}
9
10
probe begin {
11
x = fn1()
12
println(x, " ", %{hits%})
13
exit()
14
}