summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/optim.stp
blob: 711bc31bab01e9ebe593878eb273ac54ac5f7d56 (plain)
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")    }