From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1411 invoked by alias); 11 Mar 2008 20:20:00 -0000 Received: (qmail 32463 invoked by uid 48); 11 Mar 2008 20:19:21 -0000 Date: Tue, 11 Mar 2008 20:20:00 -0000 Message-ID: <20080311201921.32462.qmail@sourceware.org> From: "jkenisto at us dot ibm dot com" To: systemtap@sources.redhat.com In-Reply-To: <20080308010658.5899.jkenisto@us.ibm.com> References: <20080308010658.5899.jkenisto@us.ibm.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug translator/5899] $ptr->member in return probe X-Bugzilla-Reason: AssignedTo Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00420.txt.bz2 ------- Additional Comments From jkenisto at us dot ibm dot com 2008-03-11 20:19 ------- (In reply to comment #1) > I think bug #5634 can solve this issue as below: > $ptr("struct argument")->member > That feature would be useful in general, but I'm not sure how it solves this problem. Are you suggesting something like this? probe kernel.function("myfunc").return { printf("foo->bar on entry was %d\n", $foo->bar); foo2 = $foo printf("foo->bar on return was %d\n", foo2("struct foo_struct")->bar); } I don't think it would be obvious to the average user that $foo->bar gets evaluated at function entry, but foo2("struct foo_struct")->bar doesn't. BTW, I said "If I want entry_value($ptr->member), I can just save that value during my entry probe." That's kind of optimistic. The problem is, WHERE would I save that value, so I know it belongs to this particular function instance? Yeah, I could create an associative array indexed by task and (say) stack pointer (in case of recursion), but that's what this feature was created to avoid. In any case, that's just more evidence that we need to get this feature right. -- 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.