This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/6929] support constant global variables
- From: "mhiramat at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 1 Oct 2008 18:38:39 -0000
- Subject: [Bug translator/6929] support constant global variables
- References: <20081001160358.6929.mhiramat@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mhiramat at redhat dot com 2008-10-01 18:38 -------
(In reply to comment #1)
> This should be straightforward. We already know when locking is unneeded for just
> such globals: bug #2341.
Sure, this request is more advanced one. We expect some formula including
immediate values are compounded to simpler formula. For example,
---
global TICKS:const=100
global HZ:const=1000
function ticktohz:long (tick) {
return tick * HZ / TICKS; # this will be translated to tick * 10
}
---
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6929
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.