public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/11096] New: Getting global module vars in functions
@ 2009-12-16 11:39 mjw at redhat dot com
  2009-12-16 19:49 ` [Bug translator/11096] " jistone at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: mjw at redhat dot com @ 2009-12-16 11:39 UTC (permalink / raw)
  To: systemtap

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-06-27 23:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-11096-6586@http.sourceware.org/bugzilla/>
2012-03-12 12:21 ` [Bug translator/11096] Getting global module vars in functions mjw at redhat dot com
2013-05-30 19:23 ` agentzh at gmail dot com
2013-06-27 23:43 ` agentzh at gmail dot com
2009-12-16 11:39 [Bug translator/11096] New: " mjw at redhat dot com
2009-12-16 19:49 ` [Bug translator/11096] " jistone at redhat dot com
2009-12-16 20:55 ` mjw at redhat dot com
2009-12-16 22:55 ` jistone at redhat dot com
2010-05-21 21:39 ` 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).