#! stap -p3

global foo
global baz
global zoo

function bar()
{
	return foo["hello"]+(zoo++)
}

probe begin
{
	foo["hello"] = 10
	foreach (a in foo) 
	{
		bar()
	}

	baz[1,"hello",a] = "chicken"
	baz[1,"goodbye",a] = "supreme"

	foreach ([x,y,z] in baz)
	{
		log(baz[x,y,z] . y)
	}

	log("hello from systemtap")
}


