summaryrefslogtreecommitdiffstats
path: root/testsuite/semko/procfs12.stp
diff options
context:
space:
mode:
authordsmith <dsmith>2008-01-17 20:29:56 +0000
committerdsmith <dsmith>2008-01-17 20:29:56 +0000
commitc326a713647c9d356b9cf9a4a3a8da8370fa7a87 (patch)
treead4fdad5fbf19d70187f7e5b24fa72d3a617cfd8 /testsuite/semko/procfs12.stp
parent4ec2f7d0c190ca8564bbbe628838757737180087 (diff)
downloadsystemtap-steved-c326a713647c9d356b9cf9a4a3a8da8370fa7a87.tar.gz
systemtap-steved-c326a713647c9d356b9cf9a4a3a8da8370fa7a87.tar.xz
systemtap-steved-c326a713647c9d356b9cf9a4a3a8da8370fa7a87.zip
2008-01-17 David Smith <dsmith@redhat.com>
* semko/procfs11.stp: Added test for invalid use of procfs probe '$value' target variable. * semko/procfs12.stp: Ditto.
Diffstat (limited to 'testsuite/semko/procfs12.stp')
-rwxr-xr-xtestsuite/semko/procfs12.stp4
1 files changed, 4 insertions, 0 deletions
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]) }