☰
Debian Codegraph
@
5.5-1
5.4-1
/
/
testsuite
/
semko
/
foreachstmt03.stp
☽
☼
testsuite/semko/foreachstmt03.stp
code
plain
raw
1
#! stap -p2
2
3
# no value which is a statistic (b/c we don't have stat locals)
4
5
global array
6
7
probe begin
8
{
9
array[0] <<< 1
10
foreach (val = key in array)
11
printf("key %d, value %d\n", key, @sum(val))
12
}