Total Pageviews

Saturday, 1 June 2024

cross-stap-build

 Cross-compile Systemtap scripts.

Docker environment for simple cross-compiling Systemtap scripts.

Build

# docker build -t csb .

Example

# docker run -v /host/shared:/shared:rw csb -a arm -k /shared/arm-kernel-tree /shared/script.stp

Supported architectures

  • x86_64
  • i386
  • arm
  • aarch64
  • mips

Custom changes

  • SystemTap patch for undefined syscalls (arm).
  • Usage of debian-patched elfutils (elfutils upstream misses mips support).

Cross-compilation toolchains

Project uses following toolchains from toolchains.bootlin.com:

from https://github.com/danielpoliakov/cross-stap-build

 

No comments:

Post a Comment