summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorfche <fche>2006-06-02 23:13:38 +0000
committerfche <fche>2006-06-02 23:13:38 +0000
commitcedd10f4eeda74861f6ee61a50241e05eb27b500 (patch)
tree6f77a80d855ea6a36c55ce5fadd7a5fa7bf37fc2 /testsuite
parentb6b2628a5b1c35e54c71fe200cc03d57cb72668e (diff)
downloadsystemtap-steved-cedd10f4eeda74861f6ee61a50241e05eb27b500.tar.gz
systemtap-steved-cedd10f4eeda74861f6ee61a50241e05eb27b500.tar.xz
systemtap-steved-cedd10f4eeda74861f6ee61a50241e05eb27b500.zip
2006-06-02 Frank Ch. Eigler <fche@elastic.org>
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.
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/semko/thirtyfive.stp4
-rwxr-xr-xtestsuite/semok/twentytwo.stp10
2 files changed, 14 insertions, 0 deletions
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 ? { }