#! stap -p2 global foo function bar() { a = foo["hello"]++ return 10 } probe begin { foreach (a in foo) { bar() } log("hello from systemtap") }