From e8fbc5e8b71db38b83a215498ab34936689c3175 Mon Sep 17 00:00:00 2001 From: graydon Date: Wed, 5 Oct 2005 00:43:14 +0000 Subject: 2005-10-04 Graydon Hoare 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. --- testsuite/buildok/twenty.stp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 testsuite/buildok/twenty.stp (limited to 'testsuite/buildok/twenty.stp') 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 +} -- cgit