From c326a713647c9d356b9cf9a4a3a8da8370fa7a87 Mon Sep 17 00:00:00 2001 From: dsmith Date: Thu, 17 Jan 2008 20:29:56 +0000 Subject: [PATCH] 2008-01-17 David Smith * semko/procfs11.stp: Added test for invalid use of procfs probe '$value' target variable. * semko/procfs12.stp: Ditto. --- testsuite/ChangeLog | 6 ++++++ testsuite/semko/procfs11.stp | 4 ++++ testsuite/semko/procfs12.stp | 4 ++++ 3 files changed, 14 insertions(+) create mode 100755 testsuite/semko/procfs11.stp create mode 100755 testsuite/semko/procfs12.stp diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog index 97180d2cc..6dd0d8ded 100644 --- a/testsuite/ChangeLog +++ b/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-01-17 David Smith + + * semko/procfs11.stp: Added test for invalid use of procfs probe + '$value' target variable. + * semko/procfs12.stp: Ditto. + 2008-01-16 David Smith PR 5608. diff --git a/testsuite/semko/procfs11.stp b/testsuite/semko/procfs11.stp new file mode 100755 index 000000000..719346fb6 --- /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 000000000..c8af619bf --- /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]) } -- 2.43.5