Bug 12331 - offer a --sysroot option to aid cross-compiling
Summary: offer a --sysroot option to aid cross-compiling
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 enhancement
Target Milestone: ---
Assignee: Wade Farnsworth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-17 01:31 UTC by Josh Stone
Modified: 2012-03-09 14:39 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Stone 2010-12-17 01:31:45 UTC
The idea is to provide a path prefix to find binaries that will be relative to the root on the target system.  We're already pretty good about versioning when it comes to kernel files, but we need this mechanism to access userspace paths that may be totally different on the compile host and the target.  So given:

  stap --sysroot=/foo -l 'process("/bin/ls").function("*")'

We'd actually examine /foo/bin/ls for potential probes.  But when they are used, the runtime would match the path on the target without the sysroot prefix.

This mechanism may also be useful for a compile server to isolate access from unwanted paths like autofs /net.
Comment 1 Wade Farnsworth 2012-03-09 14:39:43 UTC
Fixed in commits:

05fb3e0c90d5175acfca9cee7a6983b0c9b62f91
dc53a28abd94706dc30cc063d2700eb3deb3c5f0
77c59b0d311c786c6a0cff2b35f6436fbe349ba0