summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/doubleglob.stp
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2010-03-25 14:31:45 -0700
committerJosh Stone <jistone@redhat.com>2010-03-25 14:38:53 -0700
commit122b4fcd9ca8947ab96c8efdfe4430df8ea6b341 (patch)
treeaf054be49868bb0f3e5358dcf1d80062b06e10fd /testsuite/semok/doubleglob.stp
parent4a9530fe2547894f2d2452488e62fb3f389fd4cb (diff)
downloadsystemtap-steved-122b4fcd9ca8947ab96c8efdfe4430df8ea6b341.tar.gz
systemtap-steved-122b4fcd9ca8947ab96c8efdfe4430df8ea6b341.tar.xz
systemtap-steved-122b4fcd9ca8947ab96c8efdfe4430df8ea6b341.zip
PR11399: Allow '**' to match tapsets across '.'
Normally wildcards are constrained to matching a single probe point component between the '.' separator. This patch enables '**' to match across the separator. Probe point parameters are still absolute separators though, as there's not really a meaningful semantic we could use to cross them with '**'. * elaborate.cxx (isdoubleglob): Check for '**'. (match_node::find_and_build): Recurse '**' to cross separators. * testsuite/semok/doubleglob.stp: New test of broad wildcards. * testsuite/semko/doubleglob.stp: New negative test.
Diffstat (limited to 'testsuite/semok/doubleglob.stp')
-rwxr-xr-xtestsuite/semok/doubleglob.stp6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/semok/doubleglob.stp b/testsuite/semok/doubleglob.stp
new file mode 100755
index 00000000..06065165
--- /dev/null
+++ b/testsuite/semok/doubleglob.stp
@@ -0,0 +1,6 @@
+#! stap -p2
+
+probe *sys**pen {} // [nd_]syscall.[mq_]open
+probe t**ile {} // timer.profile
+probe t**es(1) {} // timer.jiffies(1)
+probe ke**on("vfs_read") {} // kernel.function("vfs_open")