public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/5899] New: $ptr->member in return probe
@ 2008-03-08  1:07 jkenisto at us dot ibm dot com
  2008-03-10 22:05 ` [Bug translator/5899] " mhiramat at redhat dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: jkenisto at us dot ibm dot com @ 2008-03-08  1:07 UTC (permalink / raw)
  To: systemtap

When I refer to $ptr->member in a return probe, and $ptr is a function arg, what
I get is the value of $ptr->member as it was when the function was called.  If
the function changes the contents of the object $ptr points to, usually what I
want is the value of $ptr->member when the function returns.

Because of stap's non-support for casting stap variables to pointers, I have to
resort to imbedded C to dig out the value I want.

I'd like a way to specify what I want.  For example:
entry_value($ptr->member) gets me what I get today.
entry_value($ptr)->member gets the current value of member using the value of
ptr when the function was called.
I think $ptr->member should yield either an error or (preferably) the same thing
 as entry_value($ptr)->member.  If I want entry_value($ptr->member), I can just
save that value during my entry probe.

-- 
           Summary: $ptr->member in return probe
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: jkenisto at us dot ibm dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=5899

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

end of thread, other threads:[~2009-11-12  1:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-08  1:07 [Bug translator/5899] New: $ptr->member in return probe jkenisto at us dot ibm dot com
2008-03-10 22:05 ` [Bug translator/5899] " mhiramat at redhat dot com
2008-03-11 20:20 ` jkenisto at us dot ibm dot com
2008-03-11 22:00 ` mhiramat at redhat dot com
2008-06-06 14:09 ` mark at klomp dot org
2009-01-23 18:10 ` fche at redhat dot com
2009-01-27 16:50 ` ananth at in dot ibm dot com
2009-01-28  2:39 ` jkenisto at us dot ibm dot com
2009-10-23 23:20 ` roland at gnu dot org
2009-11-12  1:27 ` jistone 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).