public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/12151] New: support /* stable */ embedded-c pragma
@ 2010-10-22  0:51 fche at redhat dot com
  0 siblings, 0 replies; only message in thread
From: fche at redhat dot com @ 2010-10-22  0:51 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-22  0:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-22  0:51 [Bug translator/12151] New: support /* stable */ embedded-c pragma 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).