diff options
Diffstat (limited to 'testsuite/systemtap.base/inc.stp')
-rw-r--r-- | testsuite/systemtap.base/inc.stp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/inc.stp b/testsuite/systemtap.base/inc.stp new file mode 100644 index 00000000..f37b2cee --- /dev/null +++ b/testsuite/systemtap.base/inc.stp @@ -0,0 +1,24 @@ +/* + * inc.stp + * + * Check the systemtap ++ works + */ + +global x1 + +probe begin +{ + log("systemtap starting probe"); + x1 = 41; +} + +probe end +{ + log("systemtap ending probe"); + ++x1; + if (x1 != 42 ) { + log("systemtap test failure"); + } else { + log("systemtap test success"); + } +} |