Skip to content
Advertisement

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.

Advertisement

Answer

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

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement