Skip to content

danielpoliakov/cross-stap-build

Repository files navigation

CrossStapBuild - 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: