summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/not.stp
blob: 3e1bbd50518c5e0eca63fc2ecf52370d3e11cd13 (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 the systemtap negation works
 */

global x2, x1

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

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