summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/kmodule.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.base/kmodule.stp')
-rw-r--r--testsuite/systemtap.base/kmodule.stp24
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/kmodule.stp b/testsuite/systemtap.base/kmodule.stp
new file mode 100644
index 00000000..e8f0287f
--- /dev/null
+++ b/testsuite/systemtap.base/kmodule.stp
@@ -0,0 +1,24 @@
+/*
+ * kmodule.stp
+ *
+ * Simple function to test that systemtap can generate instument a module
+ * function, install it, and get some output.
+ */
+
+global count
+
+probe begin
+{
+ log("systemtap starting probe")
+}
+
+probe module("ext3").function("ext3_sync_file")
+{
+ ++count;
+}
+
+probe end
+{
+ log("systemtap ending probe")
+ log("count = " . sprint(count));
+}