summaryrefslogtreecommitdiffstats
path: root/testsuite/semko
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/semko')
-rwxr-xr-xtestsuite/semko/procfs01.stp3
-rwxr-xr-xtestsuite/semko/procfs02.stp3
-rwxr-xr-xtestsuite/semko/procfs03.stp3
-rwxr-xr-xtestsuite/semko/procfs04.stp6
-rwxr-xr-xtestsuite/semko/procfs05.stp7
5 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/semko/procfs01.stp b/testsuite/semko/procfs01.stp
new file mode 100755
index 00000000..9cdc5bbd
--- /dev/null
+++ b/testsuite/semko/procfs01.stp
@@ -0,0 +1,3 @@
+#! stap -p2
+
+probe procfs { }
diff --git a/testsuite/semko/procfs02.stp b/testsuite/semko/procfs02.stp
new file mode 100755
index 00000000..4740b8cd
--- /dev/null
+++ b/testsuite/semko/procfs02.stp
@@ -0,0 +1,3 @@
+#! stap -p2
+
+probe procfs("foo").rread { }
diff --git a/testsuite/semko/procfs03.stp b/testsuite/semko/procfs03.stp
new file mode 100755
index 00000000..b57ff68c
--- /dev/null
+++ b/testsuite/semko/procfs03.stp
@@ -0,0 +1,3 @@
+#! stap -p2
+
+probe procfs.read.write { }
diff --git a/testsuite/semko/procfs04.stp b/testsuite/semko/procfs04.stp
new file mode 100755
index 00000000..202300bb
--- /dev/null
+++ b/testsuite/semko/procfs04.stp
@@ -0,0 +1,6 @@
+#! stap -p2
+
+# write to $value in a procfs write probe
+probe procfs.write {
+ $value = "hi"
+}
diff --git a/testsuite/semko/procfs05.stp b/testsuite/semko/procfs05.stp
new file mode 100755
index 00000000..f7861f2c
--- /dev/null
+++ b/testsuite/semko/procfs05.stp
@@ -0,0 +1,7 @@
+#! stap -p2
+
+# read from $value in a procfs read probe
+probe procfs.read {
+ x = $value
+ printf("%s\n", x)
+}