summaryrefslogtreecommitdiffstats
path: root/testsuite/semko/fourteen.stp
blob: 686d934358136cfa9e5aaac8e6fddafe87bb9a5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! stap -p2

global foo

function bar()
{
	a = foo["hello"]++
	return 10
}

probe begin
{
	foreach (a in foo) 
	{
		bar()
	}
	log("hello from systemtap")
}