see the original README below
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 ...
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 [email protected]. 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.