summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/not.stp
blob: 166346dfe4441e4baddceebe5bd71a1265cfed84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * neg.stp
 *
 * Check that systemtap negation works
 */

global x2, x1

probe begin
{
	println("systemtap starting probe")
	x1 = 0xaaaaaaaaaaaaaaaa
}

probe end
{
	println("systemtap ending probe")
	x2 = ~x1
	if ( x2 != 0x5555555555555555 ) {
		println("systemtap test failure")
	} else {
		println("systemtap test success")
	}
}