summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/kprobes.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.base/kprobes.stp')
-rw-r--r--testsuite/systemtap.base/kprobes.stp21
1 files changed, 21 insertions, 0 deletions
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");
+}