From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57505 invoked by alias); 21 Jul 2016 15:50:37 -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 57342 invoked by uid 48); 21 Jul 2016 15:50:24 -0000 From: "dsmith 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:50: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: dsmith 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: 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/msg00083.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D20394 --- Comment #2 from David Smith --- (In reply to Frank Ch. Eigler from comment #1) > Having a search path in @cast in a function() makes it possible that a > mismatch 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 make @cast() in a function refer to - match - the conte= xt > of the probe that invoked it. This is kind of what we do already for > @cast()s in probe handler bodies. >=20 > It's as though we want to specialize the functions invoked from a probe > handler by the probe handler, almost as if they were inlined. Then > syntactic elements inside the functions (even $vars) could conceivably be > resolved in the context of each probe where those functions are actually > called from. >=20 > What do you think? That's an interesting idea. If it is doable, I'd say it would be quite hand= y. --=20 You are receiving this mail because: You are the assignee for the bug.