From 2531fc1e953b32d7d327da8a9b39ba540789f795 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 18 Aug 2009 20:12:57 -0400 Subject: PR10495: allow multiple probe aliases with same name * elaborate.cxx (match_node::bind): Change ->end to ->ends[] vector. (find_and_build,build_no_more): Iterate over ends[]. * elaborate.h: Corresponding changes. * testsuite/semok/thirtyfour.stp: New test. * NEWS, doc/langref.tex: Note this. --- testsuite/semok/thirtyfour.stp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 testsuite/semok/thirtyfour.stp (limited to 'testsuite/semok/thirtyfour.stp') diff --git a/testsuite/semok/thirtyfour.stp b/testsuite/semok/thirtyfour.stp new file mode 100755 index 00000000..f6147529 --- /dev/null +++ b/testsuite/semok/thirtyfour.stp @@ -0,0 +1,9 @@ +#! stap -p2 +# PR10495 + +probe foo = kernel.function("sys_open") { name = "a" } +probe foo = kernel.function("sys_close") { name = "c" } +probe foo.bar = kernel.function("sys_exit") { name = "nothing" } + +probe foo { log(name) } +probe foo.* { log(name) } -- cgit