summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorgraydon <graydon>2005-10-05 00:43:14 +0000
committergraydon <graydon>2005-10-05 00:43:14 +0000
commite8fbc5e8b71db38b83a215498ab34936689c3175 (patch)
tree3042648c42cc4149e0c46995a8e6268948ee91a3 /testsuite
parent7fac3a3d774152d048f407c101d0d587ee0b93cc (diff)
downloadsystemtap-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-xtestsuite/buildok/twenty.stp8
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
+}