summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenji Huang <wenji.huang@oracle.com>2009-04-23 00:09:12 -0400
committerWenji Huang <wenji.huang@oracle.com>2009-04-23 00:09:12 -0400
commit3add5ff43e63d4d4d5547a75a8b49fb6d6b99341 (patch)
tree06270930e2edf2a630a18c904ce9aa23fd326fb9
parent6594f3f41e1d8d9ccb1e89d6734c0fd4da121fc0 (diff)
downloadsystemtap-steved-3add5ff43e63d4d4d5547a75a8b49fb6d6b99341.tar.gz
systemtap-steved-3add5ff43e63d4d4d5547a75a8b49fb6d6b99341.tar.xz
systemtap-steved-3add5ff43e63d4d4d5547a75a8b49fb6d6b99341.zip
Tweak kprobes test case
* testsuite/systemtap.base/kprobes.exp: Add expected message. * testsuite/systemtap.base/kprobes.stp: Ditto.
-rw-r--r--testsuite/systemtap.base/kprobes.exp2
-rw-r--r--testsuite/systemtap.base/kprobes.stp5
2 files changed, 6 insertions, 1 deletions
diff --git a/testsuite/systemtap.base/kprobes.exp b/testsuite/systemtap.base/kprobes.exp
index 240ecd82..635930f8 100644
--- a/testsuite/systemtap.base/kprobes.exp
+++ b/testsuite/systemtap.base/kprobes.exp
@@ -1,2 +1,2 @@
set test "kprobes"
-stap_run $srcdir/$subdir/$test.stp
+stap_run $srcdir/$subdir/$test.stp no_load "probe point hit"
diff --git a/testsuite/systemtap.base/kprobes.stp b/testsuite/systemtap.base/kprobes.stp
index a3aad283..884b321c 100644
--- a/testsuite/systemtap.base/kprobes.stp
+++ b/testsuite/systemtap.base/kprobes.stp
@@ -3,18 +3,23 @@
* Probe to test the functionality of kprobe-based probes
* (Dwarfless Probing)
*/
+global hit_str
probe begin
{
println("systemtap starting probe");
+ hit_str = ""
}
probe kprobe.function("vfs_read")
{
+ hit_str = "probe point hit"
exit();
}
probe end
{
println("systemtap ending probe");
+ println(hit_str);
+ delete hit_str;
}