summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/not.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.base/not.stp')
-rw-r--r--testsuite/systemtap.base/not.stp24
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/not.stp b/testsuite/systemtap.base/not.stp
new file mode 100644
index 00000000..3e1bbd50
--- /dev/null
+++ b/testsuite/systemtap.base/not.stp
@@ -0,0 +1,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");
+ }
+}