From cedd10f4eeda74861f6ee61a50241e05eb27b500 Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 2 Jun 2006 23:13:38 +0000 Subject: 2006-06-02 Frank Ch. Eigler PR 2645 cont'd. * elaborate.cxx (find_and_build): Support optional wildcards too. (derive_probes): Change last argument to indicate optionalness of parent probe point (alias reference). (alias_expansion_builder): Shrink epilogue-mode alias body copying. Pass along alias reference optionality. * elaborate.h: Corresponding changes. * testsuite/semko/thirtyfive.stp, semok/twentytwo.stp: New tests. --- testsuite/semko/thirtyfive.stp | 4 ++++ testsuite/semok/twentytwo.stp | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100755 testsuite/semko/thirtyfive.stp create mode 100755 testsuite/semok/twentytwo.stp (limited to 'testsuite') diff --git a/testsuite/semko/thirtyfive.stp b/testsuite/semko/thirtyfive.stp new file mode 100755 index 00000000..e54898af --- /dev/null +++ b/testsuite/semko/thirtyfive.stp @@ -0,0 +1,4 @@ +#! stap -p2 + +probe foo.a = kernel.function("no_such_function")? { "alias a" } +probe foo.* { } diff --git a/testsuite/semok/twentytwo.stp b/testsuite/semok/twentytwo.stp new file mode 100755 index 00000000..f8f44ffb --- /dev/null +++ b/testsuite/semok/twentytwo.stp @@ -0,0 +1,10 @@ +#! stap -p2 + +probe foo.a = kernel.function("no_such_function")?, never { "alias a" } +probe foo.* { } + +probe baz.a = kernel.function("no_such_function") { "alias a" } +probe baz.* ? { } + +probe bar = kernel.function("no_such_function") { "alias b" } +probe bar ? { } -- cgit