Debian Codegraph @

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

raw
1 /*
2 * neg.stp
3 *
4 * Check that systemtap negation works
5 */
6
7 global x2, x1
8
9 probe begin
10 {
11 println("systemtap starting probe")
12 x1 = 0xaaaaaaaaaaaaaaaa
13 }
14
15 probe end
16 {
17 println("systemtap ending probe")
18 x2 = ~x1
19 if ( x2 != 0x5555555555555555 ) {
20 println("systemtap test failure")
21 } else {
22 println("systemtap test success")
23 }
24 }