This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[PATCH v4 0/3] Introduce stap options --sysroot and --sysenv
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<string, string> instead of
<string, char*>.
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