[Bug translator/12151] New: support /* stable */ embedded-c pragma
fche at redhat dot com
sourceware-bugzilla@sourceware.org
Fri Oct 22 00:51:00 GMT 2010
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.
More information about the Systemtap
mailing list