summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/nineteen.stp
diff options
context:
space:
mode:
authorfche <fche>2005-10-18 02:28:00 +0000
committerfche <fche>2005-10-18 02:28:00 +0000
commitb4ceace28084125ffbac795974319eaffa758147 (patch)
tree2e7a2052f6e3d016860dce9f7d40b6824a295076 /testsuite/semok/nineteen.stp
parent54efe513a4b01f433dba37f3106e4907028247f0 (diff)
downloadsystemtap-steved-b4ceace28084125ffbac795974319eaffa758147.tar.gz
systemtap-steved-b4ceace28084125ffbac795974319eaffa758147.tar.xz
systemtap-steved-b4ceace28084125ffbac795974319eaffa758147.zip
2005-10-17 Frank Ch. Eigler <fche@elastic.org>
PR 1338. * parse.cx (parse_probe): Unconditionally visit parse_probe_point. (parse_probe_point): Accept "*" as component name. * stapprobes.5.in: Document this. * elaborate.cxx (derive_probes): Rewrite. Make top-level function. (match_node::find_and_build): New function to replace (find_builder): Removed. (match_key operator <): Correct one nasty typo. (match_node::bind): Refuse to bind "*" component names. (derived_probe_builder::build): Remove recursion output param. (alias_expandion_builder::build): Recurse to derive_probes instead. * elaborate.h: Corresponding changes. * tapsets.cxx: Ditto. (query_cu): Elide prologue finding for uninteresting CUs. * testsuite/semok/nineteen.stp: New test. * testsuite/semko/twentythree.stp: New test. * testsuite/semko/twentyone/two.stp: Fix -p2.
Diffstat (limited to 'testsuite/semok/nineteen.stp')
-rwxr-xr-xtestsuite/semok/nineteen.stp10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/semok/nineteen.stp b/testsuite/semok/nineteen.stp
new file mode 100755
index 00000000..dcd9fb7e
--- /dev/null
+++ b/testsuite/semok/nineteen.stp
@@ -0,0 +1,10 @@
+#! stap -p2
+
+probe foo.a = bar.a { "alias a" }
+probe foo.b = bar.b { "alias b" }
+probe bar.a = begin { "begin" }
+probe bar.b = end { "end" }
+probe baz = bar.* { "wild aliases" } # baz expands to multiple aliases
+probe foo.* { "foo" } # refers to multiple aliases
+probe bar.* { "bar" } # refers to multiple probes
+probe baz { "baz" }