From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4687 invoked by alias); 21 Jul 2016 15:06:16 -0000 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 Received: (qmail 4572 invoked by uid 48); 21 Jul 2016 15:06:03 -0000 From: "fche at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/20394] inconsistency in exe/library paths searching between @cast() and process.library.function probes Date: Thu, 21 Jul 2016 15:06:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fche at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2016-q3/txt/msg00081.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D20394 Frank Ch. Eigler changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fche at redhat dot com --- Comment #1 from Frank Ch. Eigler --- Having a search path in @cast in a function() makes it possible that a mism= atch will exist between the probe (whose $context variable is being passed) and = the @cast (who interprets that pointer). What you seem to really want is to ma= ke @cast() in a function refer to - match - the context of the probe that invo= ked it. This is kind of what we do already for @cast()s in probe handler bodie= s. It's as though we want to specialize the functions invoked from a probe han= dler by the probe handler, almost as if they were inlined. Then syntactic eleme= nts inside the functions (even $vars) could conceivably be resolved in the cont= ext of each probe where those functions are actually called from. What do you think? --=20 You are receiving this mail because: You are the assignee for the bug.