public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/10495] New: Allow multiple, same name, probe point alias alternatives
@ 2009-08-07  9:18 mjw at redhat dot com
  2009-08-19  0:16 ` [Bug translator/10495] " fche at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: mjw at redhat dot com @ 2009-08-07  9:18 UTC (permalink / raw)
  To: systemtap

Currently the following isn't allowed:

probe memory_hog = process("alpha").function("allocated_huge") ?
{
  hogger = "alpha";
}

probe memory_hog = process("beta").function("allocated_giant") ?
{
  hogger = "beta";
}

semantic error: duplicate probe point pattern while registering probe alias
memory_hog = process("beta").function("allocated_giant")

You could write it as:

probe memory_hog = process("a").function("alpha") ?,
                   process("beta").function("allocated_giant") ?
{
  hogger = "alpha or beta";
}

But that has two drawbacks. First you cannot easily set the hogger variable.
Second you cannot use this pattern if your tapset is split over multiple files.

-- 
           Summary: Allow multiple, same name, probe point alias
                    alternatives
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mjw at redhat dot com


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

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

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

* [Bug translator/10495] Allow multiple, same name, probe point alias alternatives
  2009-08-07  9:18 [Bug translator/10495] New: Allow multiple, same name, probe point alias alternatives mjw at redhat dot com
@ 2009-08-19  0:16 ` fche at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2009-08-19  0:16 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2009-08-19 00:16 -------
commit 2531fc1

Quite possibly, some existing tapsets could make use of this.

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


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

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

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

end of thread, other threads:[~2009-08-19  0:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-07  9:18 [Bug translator/10495] New: Allow multiple, same name, probe point alias alternatives mjw at redhat dot com
2009-08-19  0:16 ` [Bug translator/10495] " 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).