/* * add.stp * * Check that systemtap "addition" works */ global x3 global x1 global x2 probe begin { println("systemtap starting probe") x1 = 42; x2 = 53; } probe end { println("systemtap ending probe") x3 = x1 + x2; if (x3 != 95 ) { println("systemtap test failure") } else { println("systemtap test success") } }