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

* [Bug translator/14297] stap -l and pn() fail to expand complex wildcards
  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 ` smakarov at redhat dot com
  2013-05-14 15:34 ` fche at redhat dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: smakarov at redhat dot com @ 2012-06-29 14:32 UTC (permalink / raw)
  To: systemtap

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

Serguei Makarov <smakarov at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jistone at redhat dot com,
                   |                            |smakarov at redhat dot com

-- 
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

* [Bug translator/14297] stap -l and pn() fail to expand complex wildcards
  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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: fche at redhat dot com @ 2013-05-14 15:34 UTC (permalink / raw)
  To: systemtap

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

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fche at redhat dot com

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> 2013-05-14 15:34:08 UTC ---
The plt probes in specific synthesize probes that allow the plt("*") component
to survive into the descendent generation.  That's a related bug.

-- 
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

* [Bug translator/14297] stap -l and pn() fail to expand complex wildcards
  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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: fche at redhat dot com @ 2013-05-15  2:13 UTC (permalink / raw)
  To: systemtap

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

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> 2013-05-15 02:13:15 UTC ---
commit 8159bf5

-- 
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

* [Bug translator/14297] stap -l and pn() fail to expand complex wildcards
  2012-06-25 20:45 [Bug translator/14297] New: stap -l and pn() fail to expand complex wildcards smakarov at redhat dot com
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: jistone at redhat dot com @ 2013-05-15  4:26 UTC (permalink / raw)
  To: systemtap

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

Josh Stone <jistone at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #3 from Josh Stone <jistone at redhat dot com> 2013-05-15 04:26:46 UTC ---
This has caused a regression for aliases:

$ stap -l syscall.open
derived_probe with no locations


Less critical, the plt output seems oddly inconsistent:

$ stap -l 'process("stap").plt("write")' 
process("stap").plt("write")

$ stap -l 'process("stap").plt("writ?")' 
process("stap").plt("writ?")

$ stap -l 'process("stap").plt("writ[e]")' 
process("stap").plt("writ[e]")

$ stap -l 'process("stap").plt("writ*")' 
process("stap").plt("write").statement(4243536)?

i.e. only the last form got wildcard expanded, but that exposed the statement
address too.  I'd think we want every wildcard-expanded form to list like the
first plain one did.

(and why does the derived plt get marked '?' optional?  It seems to have been
this way forever, but I don't see the reason.)

-- 
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

* [Bug translator/14297] stap -l and pn() fail to expand complex wildcards
  2012-06-25 20:45 [Bug translator/14297] New: stap -l and pn() fail to expand complex wildcards smakarov at redhat dot com
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: jistone at redhat dot com @ 2013-05-15  4:39 UTC (permalink / raw)
  To: systemtap

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

--- Comment #4 from Josh Stone <jistone at redhat dot com> 2013-05-15 04:39:22 UTC ---
Also weird to me:

$ stap -l 'process("stap").plt' 
process("stap").plt

$ stap -l 'process("stap").pl*'
process("stap").plt("CERT_AddExtension").statement(4246512)?
process("stap").plt("CERT_AsciiToName").statement(4244352)?
process("stap").plt("CERT_ChangeCertTrust").statement(4248304)?
process("stap").plt("CERT_CreateCertificate").statement(4246528)?
...

I'd expect the "pl*" to simply expand to "plt", and then list the same way as
the first version does.  Maybe you could argue that both forms should spell out
all the names, but not with the statements IMO.

-- 
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

* [Bug translator/14297] stap -l and pn() fail to expand complex wildcards
  2012-06-25 20:45 [Bug translator/14297] New: stap -l and pn() fail to expand complex wildcards smakarov at redhat dot com
                   ` (4 preceding siblings ...)
  2013-05-15  4:39 ` jistone at redhat dot com
@ 2013-05-15 17:53 ` fche at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: fche at redhat dot com @ 2013-05-15 17:53 UTC (permalink / raw)
  To: systemtap

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

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Frank Ch. Eigler <fche at redhat dot com> 2013-05-15 17:52:58 UTC ---
commits up to 76ff513 fix & test this

-- 
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).