diff options
author | dsmith <dsmith> | 2006-11-28 21:21:53 +0000 |
---|---|---|
committer | dsmith <dsmith> | 2006-11-28 21:21:53 +0000 |
commit | 7e6c246cb403ffa693ae541d31593d3451360a51 (patch) | |
tree | 6bce06395c252a45effc9ade1d12692e688c29e9 /testsuite/semko/thirtyfour.stp | |
parent | 5e600bd67fbc68a931aea938c1685cb66eb93d3f (diff) | |
download | systemtap-steved-7e6c246cb403ffa693ae541d31593d3451360a51.tar.gz systemtap-steved-7e6c246cb403ffa693ae541d31593d3451360a51.tar.xz systemtap-steved-7e6c246cb403ffa693ae541d31593d3451360a51.zip |
2006-11-28 David Smith <dsmith@redhat.com>
* semko/thirtyfour.stp: Checks for writing to target variable in
.return probe.
* semok/twentyfour.stp: Tests read access to target variable in
.return probe.
Diffstat (limited to 'testsuite/semko/thirtyfour.stp')
-rwxr-xr-x | testsuite/semko/thirtyfour.stp | 7 |
1 files changed, 7 insertions, 0 deletions
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 } |