Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/inc.stp

raw
1 /*
2 * inc.stp
3 *
4 * Check that systemtap ++ works
5 */
6
7 global x1
8
9 probe begin
10 {
11 println("systemtap starting probe")
12 x1 = 41
13 }
14
15 probe end
16 {
17 println("systemtap ending probe")
18 x1++
19 if (x1 == 42) {
20 ++x1
21 if (x1 != 43 ) {
22 println("systemtap test failure")
23 } else {
24 println("systemtap test success")
25 }
26 } else
27 println("systemtap test failure")
28 }