diff options
author | fche <fche> | 2005-08-19 22:04:42 +0000 |
---|---|---|
committer | fche <fche> | 2005-08-19 22:04:42 +0000 |
commit | c03e045877248e394ec05921b672c066bdba5696 (patch) | |
tree | c8760ab01d740665b472d7f4d6599784aa6427bf | |
parent | 35e7735cfe0cbc924c0e7143b838ab36509ce584 (diff) | |
download | systemtap-steved-c03e045877248e394ec05921b672c066bdba5696.tar.gz systemtap-steved-c03e045877248e394ec05921b672c066bdba5696.tar.xz systemtap-steved-c03e045877248e394ec05921b672c066bdba5696.zip |
none
-rwxr-xr-x | testsuite/buildok/fifteen.stp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testsuite/buildok/fifteen.stp b/testsuite/buildok/fifteen.stp new file mode 100755 index 00000000..bf4e0af3 --- /dev/null +++ b/testsuite/buildok/fifteen.stp @@ -0,0 +1,38 @@ +#! stap -p4 + +/* + * equal.stp + * + * Check the systemtap make sure that equality tests work + * install it, and get some output. + */ + +global count +global count2 + +probe begin +{ + log("systemtap starting probe") +} + +probe kernel.function("schedule") +{ + ++count; + ++count2; +} + +probe end +{ + log("systemtap ending probe") + log("count = " . string(count)); + log("count2 = " . string(count)); + if ( count == count2) { + if ( (count-1) == count2 ) { + log("systemtap test failure"); + } else { + log("systemtap test success"); + } + } else { + log("systemtap test failure"); + } +} |