From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28848 invoked by alias); 9 Oct 2015 18:30:50 -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 28810 invoked by uid 48); 9 Oct 2015 18:30:46 -0000 From: "dsmith at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/19110] New: make it easier to know if the kernel exports a particular function Date: Fri, 09 Oct 2015 18:30:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q4/txt/msg00026.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=19110 Bug ID: 19110 Summary: make it easier to know if the kernel exports a particular function Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: translator Assignee: systemtap at sourceware dot org Reporter: dsmith at redhat dot com Target Milestone: --- When working on bug #6525, I needed to know whether a certain kernel function is exported or not. Currently, the way you do this is by adding a new 'exportconf' test in the translator source, which requires recompiling the translator. I wonder if we could somehow handle this differently, so that recompiling the translator isn't required. For runtime C code use, a brute force approach would be to just add a #define for everything that is exported: #define STAPCONF_FOO_EXPORTED #define STAPCONF_BAR_EXPORTED etc. For bonus points, we could provide a preprocessor directive, perhaps something like: %(exported("foo") %? ... %) Although off the top of my head I can't really think of a use for knowing if a kernel function is exported in systemtap script code. -- You are receiving this mail because: You are the assignee for the bug.