This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]