public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/16672] New: Allow brace expansion on probe points
@ 2014-03-07 19:26 jistone at redhat dot com
  2015-12-17 21:55 ` [Bug translator/16672] " flu at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: jistone at redhat dot com @ 2014-03-07 19:26 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=16672

            Bug ID: 16672
           Summary: Allow brace expansion on probe points
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: jistone at redhat dot com

As a way to improve brevity in specifying probe points, without requiring
wildcards that may be to broad, we might allow brace expansion similar to
shells.

For example:

process.function("*").{call,return}
=> process.function("*").call, process.function("*").return

process.{function("*").callees,plt}?
=> process.function("*").callees?, process.plt?

{kernel,module("nfs")}.function("nfs*")!
=> kernel.function("nfs*")!, module("nfs").function("nfs*")!

Note the distribution of '?' and '!'.  Also, if there are multiple sections of
braces, they will multiply accordingly.

The start of a brace group would only be valid syntax when it immediately
follows 'probe', '.', or ',' where we know there must be a probepoint
component, so it's not ambiguous with the brace starting a probe body.  Thus
"probe e{nd,rror}" would not be allowed.

In fact I'd suggest no token-pasting at all, so the branches of the braces must
deal in whole probe components only.  Or if not whole components, at least
whole tokens - that way we might still allow something like:

kernel.function({"foo","bar"})
=> kernel.function("foo"), kernel.function("bar")

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug translator/16672] Allow brace expansion on probe points
  2014-03-07 19:26 [Bug translator/16672] New: Allow brace expansion on probe points jistone at redhat dot com
@ 2015-12-17 21:55 ` flu at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: flu at redhat dot com @ 2015-12-17 21:55 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=16672

Felix Lu <flu at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |flu at redhat dot com
         Resolution|---                         |FIXED

--- Comment #1 from Felix Lu <flu at redhat dot com> ---
Added in commit 380d759b6aa80dd95b.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-17 21:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-07 19:26 [Bug translator/16672] New: Allow brace expansion on probe points jistone at redhat dot com
2015-12-17 21:55 ` [Bug translator/16672] " flu at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).