Skip to content

turistu/strace

 
 

Repository files navigation

This fork currently includes just small fixes for cross compiling strace for Android (>= 5 Lollipop) with the NDK, something that fails with upstream and they do not care to fix there.

You can either get the prebuilt binaries from actions/{latest run}/artifacts, or build it yourself with:

./bootstrap
ndk(){
	arch=$1; api=$2; configure=$3; shift 3
	ndk=${ANDROID_NDK:?please set the path to the NDK in the ANDROID_NDK envvar}
	case $arch in armv7a) api=eabi${api}; esac
	CC=$ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/$arch-linux-android$api-clang \
	  "$configure" --host="$arch-linux-android$api" "$@"
}
ndk aarch64 21 ./configure
make -j
adb push src/strace ...

Original README.md

strace - the linux syscall tracer

This is strace -- a diagnostic, debugging and instructional userspace utility with a traditional command-line interface for Linux. It is used to monitor and tamper with interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state. The operation of strace is made possible by the kernel feature known as ptrace.

strace is released under the terms of the GNU Lesser General Public License version 2.1 or later; see the file COPYING for details. strace test suite is released under the terms of the GNU General Public License version 2 or later; see the file tests/COPYING for details.

See the file NEWS for information on what has changed in recent versions.

Please read the file INSTALL-git for installation instructions.

Please take a look at the guide for new contributors if you want to get involved in strace development.

The user discussion and development of strace take place on the strace mailing list -- everyone is welcome to post bug reports, feature requests, comments and patches to strace-devel@lists.strace.io. The mailing list archives are available at https://lists.strace.io/pipermail/strace-devel/ and other archival sites.

The GIT repository of strace is available at GitHub and GitLab.

The latest binary strace packages are available in many repositories, including OBS, Fedora rawhide, and Sisyphus.

CI Code Coverage

About

Fixes build for android

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 94.5%
  • Shell 3.1%
  • M4 0.9%
  • Makefile 0.8%
  • Perl 0.3%
  • Awk 0.2%
  • Other 0.2%