☰
Debian Codegraph
@
5.5-1
5.4-1
/
/
doc
/
SystemTap_Beginners_Guide
/
testsuite
/
systemtap.base
/
optim.stp
☽
☼
doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/optim.stp
code
plain
raw
1
global array
2
function func(i) {
3
array[i++] = 0;
4
return i;
5
}
6
function bart() { # rhbz# 300121
7
if (1) var=2 else dummy=0
8
return var
9
}
10
probe begin {
11
printf ("i=%d\n", func(0))
12
printf ("j=%d\n", bart())
13
exit ()
14
}