summaryrefslogtreecommitdiffstats
path: root/testsuite/semko
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/semko')
-rwxr-xr-xtestsuite/semko/procfs11.stp4
-rwxr-xr-xtestsuite/semko/procfs12.stp4
2 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/semko/procfs11.stp b/testsuite/semko/procfs11.stp
new file mode 100755
index 00000000..719346fb
--- /dev/null
+++ b/testsuite/semko/procfs11.stp
@@ -0,0 +1,4 @@
+#! stap -p2
+
+# use $value as a structure pointer in a procfs probe
+probe procfs.write { print($value->foo) }
diff --git a/testsuite/semko/procfs12.stp b/testsuite/semko/procfs12.stp
new file mode 100755
index 00000000..c8af619b
--- /dev/null
+++ b/testsuite/semko/procfs12.stp
@@ -0,0 +1,4 @@
+#! stap -p2
+
+# use $value as an array in a procfs probe
+probe procfs.write { print($value[0]) }