diff options
author | graydon <graydon> | 2005-10-05 00:43:14 +0000 |
---|---|---|
committer | graydon <graydon> | 2005-10-05 00:43:14 +0000 |
commit | e8fbc5e8b71db38b83a215498ab34936689c3175 (patch) | |
tree | 3042648c42cc4149e0c46995a8e6268948ee91a3 /testsuite | |
parent | 7fac3a3d774152d048f407c101d0d587ee0b93cc (diff) | |
download | systemtap-steved-e8fbc5e8b71db38b83a215498ab34936689c3175.tar.gz systemtap-steved-e8fbc5e8b71db38b83a215498ab34936689c3175.tar.xz systemtap-steved-e8fbc5e8b71db38b83a215498ab34936689c3175.zip |
2005-10-04 Graydon Hoare <graydon@redhat.com>
PR 1131.
* tapsets.cxx
(target_variable_flavour_calculating_visitor::visit_target_symbol)
(var_expanding_copy_visitor::visit_target_symbol):
Require guru mode for writing to target vars.
* testsuite/buildok/twenty.stp: Test writing to target vars.
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/buildok/twenty.stp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/buildok/twenty.stp b/testsuite/buildok/twenty.stp new file mode 100755 index 00000000..aa6287c4 --- /dev/null +++ b/testsuite/buildok/twenty.stp @@ -0,0 +1,8 @@ +#! stap -gp4 + +# Test for writing to target variables, PR 1131 + +probe kernel.function("vfs_readdir") +{ + $file->f_dentry->d_name->len = 1 +} |