[Bug translator/10495] New: Allow multiple, same name, probe point alias alternatives

mjw at redhat dot com sourceware-bugzilla@sourceware.org
Fri Aug 7 09:18:00 GMT 2009


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.



More information about the Systemtap mailing list