From 246b383e71b24882db18311a748d713c57a2108e Mon Sep 17 00:00:00 2001 From: graydon Date: Wed, 31 Aug 2005 03:05:39 +0000 Subject: 2005-08-30 Graydon Hoare * tapsets.cxx (dwflpp::literal_stmt_for_local): Handle dwarf pointer-to-1-byte-means-char case (found in PR 1187) * parse.cxx (parse_symbol): Eliminate use of "." from target symbol parser, conflicting with string concatenation operator. * staptree.h (target_symbol::component_type) Eliminate comp_struct_pointer_member, since . and -> are considered the same now. * staptree.cxx (target_symbol::print): Likewise. * testsuite/buildok/seventeen.stp: Test solution on PR 1191. * testsuite/buildok/six.stp: Test working portion of PR 1155. * testsuite/semko/nineteen.stp: Unresolved portion of PR 1155. --- testsuite/buildok/seventeen.stp | 9 +++++++++ testsuite/buildok/six.stp | 6 +++++- testsuite/semko/nineteen.stp | 8 ++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100755 testsuite/buildok/seventeen.stp create mode 100755 testsuite/semko/nineteen.stp (limited to 'testsuite') diff --git a/testsuite/buildok/seventeen.stp b/testsuite/buildok/seventeen.stp new file mode 100755 index 00000000..6ac87815 --- /dev/null +++ b/testsuite/buildok/seventeen.stp @@ -0,0 +1,9 @@ +#! stap -p4 + +# this tests access to members of a target global variable +# (PR 1191) + +probe kernel.function("pipe_write") +{ + log (hexstring ($write_fifo_fops->llseek)) +} diff --git a/testsuite/buildok/six.stp b/testsuite/buildok/six.stp index a63ad99b..a11014fe 100755 --- a/testsuite/buildok/six.stp +++ b/testsuite/buildok/six.stp @@ -1,5 +1,9 @@ #! stap -p4 +# tests probing of an inline function: note that due to comments +# listed in PR 1155 we cannot resolve the parameters of the inline +# at the moment. + probe kernel.function("context_switch") { - log ("switch from=" . hexstring($prev) . " to=" . hexstring($next)) + log ("found an inline function") } diff --git a/testsuite/semko/nineteen.stp b/testsuite/semko/nineteen.stp new file mode 100755 index 00000000..04a9af20 --- /dev/null +++ b/testsuite/semko/nineteen.stp @@ -0,0 +1,8 @@ +#! stap -p4 + +# PR 1155: should start working when we can resolve the parameters of +# the inlines. + +probe kernel.function("context_switch") { + log ("switch from=" . hexstring($prev) . " to=" . hexstring($next)) +} -- cgit