From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1746 invoked by alias); 22 Mar 2013 19:38:36 -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 1697 invoked by uid 48); 22 Mar 2013 19:38:29 -0000 From: "smakarov at redhat dot com" To: systemtap@sourceware.org Subject: [Bug dyninst/15053] stapdyn needs -G (setting global variables) support Date: Fri, 22 Mar 2013 19:38:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: dyninst X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: smakarov at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-q1/txt/msg00251.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15053 Serguei Makarov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smakarov at redhat dot com --- Comment #3 from Serguei Makarov 2013-03-22 19:38:29 UTC --- After much discussion, this has been narrowed down to three possibilities for implementing the customizable variables *without* taking globals out of shared memory. - (1) pass the custom values into stapdyn using putenv/getenv (!) - use a throwaway static struct to hold the default initial values, so stapdyn can override them using some kind of setter function in the module: - (2) either dynamically generate a global_setter_(val) function per-variable - (3) or dynamically generate a single* global_setter(name,val) function that works like a lookup table *) actually, two functions, one per type I'm currently testing a working patch for the third alternative. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.