]> sourceware.org Git - systemtap.git/commitdiff
2008-01-17 David Smith <dsmith@redhat.com>
authordsmith <dsmith>
Thu, 17 Jan 2008 20:29:56 +0000 (20:29 +0000)
committerdsmith <dsmith>
Thu, 17 Jan 2008 20:29:56 +0000 (20:29 +0000)
* semko/procfs11.stp: Added test for invalid use of procfs probe
'$value' target variable.
* semko/procfs12.stp: Ditto.

testsuite/ChangeLog
testsuite/semko/procfs11.stp [new file with mode: 0755]
testsuite/semko/procfs12.stp [new file with mode: 0755]

index 97180d2cc853bfdec5489de93b4cdb31c14aff09..6dd0d8dedd4fdfe38804cbe7d09aad7249723151 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2008-01-16  David Smith  <dsmith@redhat.com>
 
        PR 5608.
diff --git a/testsuite/semko/procfs11.stp b/testsuite/semko/procfs11.stp
new file mode 100755 (executable)
index 0000000..719346f
--- /dev/null
@@ -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 (executable)
index 0000000..c8af619
--- /dev/null
@@ -0,0 +1,4 @@
+#! stap -p2
+
+# use $value as an array in a procfs probe
+probe procfs.write { print($value[0]) }
This page took 0.030829 seconds and 5 git commands to generate.