summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/kprobes.stp
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-04-23 14:16:36 -0400
committerDave Brolley <brolley@redhat.com>2009-04-23 14:16:36 -0400
commitfb6d28283bd7ea63364a008d32c53687a694642f (patch)
treeaa2d8faf381be8ba016cf4fb18a4d01da464ac60 /testsuite/systemtap.base/kprobes.stp
parente8aa2f848123598fa8c2110804b250cba1286271 (diff)
parent819ec23db74427d0249596959c938673f424f831 (diff)
downloadsystemtap-steved-fb6d28283bd7ea63364a008d32c53687a694642f.tar.gz
systemtap-steved-fb6d28283bd7ea63364a008d32c53687a694642f.tar.xz
systemtap-steved-fb6d28283bd7ea63364a008d32c53687a694642f.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Conflicts: Makefile.in
Diffstat (limited to 'testsuite/systemtap.base/kprobes.stp')
-rw-r--r--testsuite/systemtap.base/kprobes.stp10
1 files changed, 7 insertions, 3 deletions
diff --git a/testsuite/systemtap.base/kprobes.stp b/testsuite/systemtap.base/kprobes.stp
index 62c18347..884b321c 100644
--- a/testsuite/systemtap.base/kprobes.stp
+++ b/testsuite/systemtap.base/kprobes.stp
@@ -3,19 +3,23 @@
* Probe to test the functionality of kprobe-based probes
* (Dwarfless Probing)
*/
+global hit_str
probe begin
{
- println("\n Systemtap starting probe");
+ println("systemtap starting probe");
+ hit_str = ""
}
probe kprobe.function("vfs_read")
{
- printf("\n probe point hit");
+ hit_str = "probe point hit"
exit();
}
probe end
{
- println("\n Systemtap starting probe");
+ println("systemtap ending probe");
+ println(hit_str);
+ delete hit_str;
}