This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/12151] New: support /* stable */ embedded-c pragma
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: Fri, 22 Oct 2010 00:51:33 +0000
- Subject: [Bug translator/12151] New: support /* stable */ embedded-c pragma
- Auto-submitted: auto-generated
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.