1 2 3 4 5 6 7 8 9 10 11 12
global array function func(i) { array[i++] = 0; return i; } probe begin(1) { if (func(0) == 1) log ("systemtap test success") exit() } probe begin { log("systemtap starting probe") } probe end { log("systemtap ending probe") }