This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/12331] New: offer a --sysroot option to aid cross-compiling


http://sourceware.org/bugzilla/show_bug.cgi?id=12331

           Summary: offer a --sysroot option to aid cross-compiling
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: translator
        AssignedTo: systemtap@sources.redhat.com
        ReportedBy: jistone@redhat.com


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.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]