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/12151] New: support /* stable */ embedded-c pragma


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

           Summary: support /* stable */ embedded-c pragma
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap@sources.redhat.com
        ReportedBy: fche@redhat.com


The intent of this markup would be to allow the optimizer to
call the given embedded-c function more than once per probe
handler.  i.e:

probe foo { 
  println(pid())
  bar[pid()]=5
  println(zoo[pid(),execname()])
}

With current code, pid() would need to be called three times.
With the /* stable */ marker, it would be called once, and the
result memoized.

This would probably apply only to arity-0 functions, or perhaps
only to those with literal/stable parameters.

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


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