linuxdebuggingsystemsystemtap

How to cross compile system tap scripts for user space application


The challenge that I faced was on identifying the process name / library name within the script.During the cross compilation the process name and library name are being referred with real path of process/library in the host (which I understood after peeked the generated .ko).

Since the real path of host and target are different, the cross compiled instrumentation is not working.


Solution

  • See also the stap --sysroot=/PATH and --sysenv=VAR=VALUE options.