This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/11096] New: Getting global module vars in functions
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 16 Dec 2009 11:39:15 -0000
- Subject: [Bug translator/11096] New: Getting global module vars in functions
- Reply-to: sourceware-bugzilla at sourceware dot org
It is often convenient to grab a global variable value in a function. But
currently you cannot do that, so you have to grab it in a probe handler and
store it globally or pass it to the function invocation (then you can use the
address of this variable and @cast(var "struct", "module") to extract the
information in the function).
Possible syntax: @global($var, "module")
--
Summary: Getting global module vars in functions
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: mjw at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11096
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.