From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20631 invoked by alias); 2 Mar 2012 14:47:26 -0000 Received: (qmail 20554 invoked by uid 22791); 2 Mar 2012 14:47:23 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Mar 2012 14:47:08 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1S3TlD-0000BC-3J from wade_farnsworth@mentor.com ; Fri, 02 Mar 2012 06:47:07 -0800 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 2 Mar 2012 06:47:06 -0800 Received: from [172.30.13.232] (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.1.289.1; Fri, 2 Mar 2012 06:47:06 -0800 Message-ID: <4F50DD69.1000601@mentor.com> Date: Fri, 02 Mar 2012 14:47:00 -0000 From: Wade Farnsworth User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: , Subject: [PATCH v3 0/3] PR12331: Introduce stap options --sysroot and --sysenv References: <4F0AFEEE.30909@mentor.com> <4F340FD7.9010205@mentor.com> In-Reply-To: <4F340FD7.9010205@mentor.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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: 2012-q1/txt/msg00225.txt.bz2 This patchset introduces --sysroot and --sysenv options for stap, which improve functionality in environments where the compiling system differs from the one running the probes. See Patch 1/3's description for more details on what has been implemented. v2: Implemented several improvements per Josh Stone's comments. v3: Further improvements per Josh Stone. Include documentation and test cases for the new options. Wade Farnsworth (3): PR12331: Introduce stap options --sysroot and --sysenv PR12331: Document --sysroot and --sysenv PR12331: Add testcase for --sysroot and --sysenv NEWS | 3 + cmdline.cxx | 2 + cmdline.h | 2 + dwflpp.cxx | 4 +- hash.cxx | 3 +- main.cxx | 9 ++++ session.cxx | 62 +++++++++++++++++++++++++++ session.h | 3 + setupdwfl.cxx | 37 ++++++++++++++-- setupdwfl.h | 1 + stap.1 | 11 +++++ tapset-itrace.cxx | 3 +- tapset-utrace.cxx | 3 +- tapsets.cxx | 54 +++++++++++++++++------ tapsets.h | 1 + testsuite/systemtap.base/sysroot_sysenv.exp | 15 ++++++ testsuite/systemtap.base/sysroot_sysenv.stp | 3 + translate.cxx | 4 +- util.cxx | 26 +++++++++--- util.h | 3 + 20 files changed, 216 insertions(+), 33 deletions(-) create mode 100644 testsuite/systemtap.base/sysroot_sysenv.exp create mode 100644 testsuite/systemtap.base/sysroot_sysenv.stp