From c326a713647c9d356b9cf9a4a3a8da8370fa7a87 Mon Sep 17 00:00:00 2001 From: dsmith Date: Thu, 17 Jan 2008 20:29:56 +0000 Subject: 2008-01-17 David Smith * semko/procfs11.stp: Added test for invalid use of procfs probe '$value' target variable. * semko/procfs12.stp: Ditto. --- testsuite/semko/procfs11.stp | 4 ++++ testsuite/semko/procfs12.stp | 4 ++++ 2 files changed, 8 insertions(+) create mode 100755 testsuite/semko/procfs11.stp create mode 100755 testsuite/semko/procfs12.stp (limited to 'testsuite/semko') 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]) } -- cgit