From c03e045877248e394ec05921b672c066bdba5696 Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 19 Aug 2005 22:04:42 +0000 Subject: [PATCH] none --- testsuite/buildok/fifteen.stp | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 testsuite/buildok/fifteen.stp diff --git a/testsuite/buildok/fifteen.stp b/testsuite/buildok/fifteen.stp new file mode 100755 index 000000000..bf4e0af36 --- /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"); + } +} -- 2.43.5