From 7e6c246cb403ffa693ae541d31593d3451360a51 Mon Sep 17 00:00:00 2001 From: dsmith Date: Tue, 28 Nov 2006 21:21:53 +0000 Subject: 2006-11-28 David Smith * semko/thirtyfour.stp: Checks for writing to target variable in .return probe. * semok/twentyfour.stp: Tests read access to target variable in .return probe. --- testsuite/semko/thirtyfour.stp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'testsuite/semko') diff --git a/testsuite/semko/thirtyfour.stp b/testsuite/semko/thirtyfour.stp index 6d9a67d1..515fcfbb 100755 --- a/testsuite/semko/thirtyfour.stp +++ b/testsuite/semko/thirtyfour.stp @@ -1,3 +1,10 @@ #! stap -p2 +# can't write to target variables in .return probes + +probe kernel.function("sys_read").return +{ + $fd = 0 + printf("fd is %d\n", $fd) +} probe kernel.function("sys_open").return { $filename } -- cgit