From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2088 invoked by alias); 8 Mar 2012 14:48:39 -0000 Received: (qmail 2074 invoked by uid 22791); 8 Mar 2012 14:48:38 -0000 X-SWARE-Spam-Status: No, hits=-1.8 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; Thu, 08 Mar 2012 14:48:22 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1S5edh-0002yZ-17 from wade_farnsworth@mentor.com ; Thu, 08 Mar 2012 06:48:21 -0800 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 8 Mar 2012 06:48:20 -0800 Received: from [172.30.13.164] (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.1.289.1; Thu, 8 Mar 2012 06:48:20 -0800 Message-ID: <4F58C6B0.6020707@mentor.com> Date: Thu, 08 Mar 2012 14:48: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 v4 0/3] Introduce stap options --sysroot and --sysenv References: <4F0AFEEE.30909@mentor.com> <4F340FD7.9010205@mentor.com> <4F50DD69.1000601@mentor.com> In-Reply-To: <4F50DD69.1000601@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/msg00261.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. v4 - Add more detail to the man page for --sysroot to clarify which paths are affected. - Changed handling of paths where both sysroot and non- sysroot versions are needed so that it's clear which version we're tracking. - Store the sysenv variable as map instead of . Wade Farnsworth (3): PR12331: Introduce stap options --sysroot and --sysenv PR12331: Document --sysroot and --sysenv PR12331: Add testcase for --sysroot and --sysenv cmdline.cxx | 2 + cmdline.h | 2 + dwflpp.cxx | 4 +- hash.cxx | 3 +- main.cxx | 9 ++++ session.cxx | 59 ++++++++++++++++++++++++ session.h | 3 + setupdwfl.cxx | 37 +++++++++++++-- setupdwfl.h | 1 + stap.1 | 13 +++++ tapset-itrace.cxx | 7 ++- tapset-utrace.cxx | 7 ++- tapsets.cxx | 66 ++++++++++++++++++--------- tapsets.h | 2 + testsuite/systemtap.base/sysroot_sysenv.exp | 15 ++++++ testsuite/systemtap.base/sysroot_sysenv.stp | 3 + translate.cxx | 4 +- util.cxx | 27 +++++++++--- util.h | 3 + 19 files changed, 224 insertions(+), 43 deletions(-) create mode 100644 testsuite/systemtap.base/sysroot_sysenv.exp create mode 100644 testsuite/systemtap.base/sysroot_sysenv.stp