public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/14297] New: stap -l and pn() fail to expand complex wildcards
@ 2012-06-25 20:45 smakarov at redhat dot com
  2012-06-29 14:32 ` [Bug translator/14297] " smakarov at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: smakarov at redhat dot com @ 2012-06-25 20:45 UTC (permalink / raw)
  To: systemtap

http://sourceware.org/bugzilla/show_bug.cgi?id=14297

             Bug #: 14297
           Summary: stap -l and pn() fail to expand complex wildcards
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap@sourceware.org
        ReportedBy: smakarov@redhat.com
    Classification: Unclassified


Features such as stap -l and pn() currently use a series of hacks and
heuristics to obtain the name of the probe point *with* wildcard expansions
applied but *without* alias expansions or anything else that results in
tapset-internal probe points being visible. These heuristics fail when wildcard
expansion and alias expansion alternate in complicated ways, e.g.

[root:/opt/codebase/systemtap]:stap$ stap -l
'process("stap").library("*").plt("a*")'
process("stap").library("*").plt("a*")?

[root:/opt/codebase/systemtap]:stap$ stap -l "syscall.open.return.max*(30)"
syscall.open.return.max*(30)

(The latter example is not supported in current systemtap, but will be
available after enhancement PR12210 is completed.)

Essentially, because some wildcard expansion may happen after tapset-internal
probe points are revealed by the derivation, the heuristics choose a derivation
stage which still contains wildcards.

Hence, rather than the current heuristics, some kind of comprehensive and
correct mechanism for constructing the "user-friendly" probe point name needs
to be added.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

end of thread, other threads:[~2013-05-15 17:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-25 20:45 [Bug translator/14297] New: stap -l and pn() fail to expand complex wildcards smakarov at redhat dot com
2012-06-29 14:32 ` [Bug translator/14297] " smakarov at redhat dot com
2013-05-14 15:34 ` fche at redhat dot com
2013-05-15  2:13 ` fche at redhat dot com
2013-05-15  4:26 ` jistone at redhat dot com
2013-05-15  4:39 ` jistone at redhat dot com
2013-05-15 17:53 ` fche 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).