diff options
author | Ananth N Mavinakayanahalli <ananth@in.ibm.com> | 2009-04-21 17:19:15 +0530 |
---|---|---|
committer | Ananth N Mavinakayanahalli <ananth@in.ibm.com> | 2009-04-21 17:19:15 +0530 |
commit | 543b26ed48ac66743ad309ac6cb848a5d377260f (patch) | |
tree | 75d9e110f9e779cc4c5250eabeecaca6190814ea | |
parent | 94c3c803ea90e4d9447b9a28051ea4681c535d57 (diff) | |
download | systemtap-steved-543b26ed48ac66743ad309ac6cb848a5d377260f.tar.gz systemtap-steved-543b26ed48ac66743ad309ac6cb848a5d377260f.tar.xz systemtap-steved-543b26ed48ac66743ad309ac6cb848a5d377260f.zip |
Add testcases for kprobe.function family
-rw-r--r-- | testsuite/systemtap.base/kprobes.exp | 2 | ||||
-rw-r--r-- | testsuite/systemtap.base/kprobes.stp | 21 |
2 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/kprobes.exp b/testsuite/systemtap.base/kprobes.exp new file mode 100644 index 00000000..240ecd82 --- /dev/null +++ b/testsuite/systemtap.base/kprobes.exp @@ -0,0 +1,2 @@ +set test "kprobes" +stap_run $srcdir/$subdir/$test.stp diff --git a/testsuite/systemtap.base/kprobes.stp b/testsuite/systemtap.base/kprobes.stp new file mode 100644 index 00000000..62c18347 --- /dev/null +++ b/testsuite/systemtap.base/kprobes.stp @@ -0,0 +1,21 @@ +/* + * kprobes.stp + * Probe to test the functionality of kprobe-based probes + * (Dwarfless Probing) + */ + +probe begin +{ + println("\n Systemtap starting probe"); +} + +probe kprobe.function("vfs_read") +{ + printf("\n probe point hit"); + exit(); +} + +probe end +{ + println("\n Systemtap starting probe"); +} |