strace v6.5 releases: diagnostic, debugging and instructional userspace utility
strace – the Linux syscall tracer
strace is a diagnostic, debugging, and instructional userspace utility 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 in process state.
System administrators, diagnosticians, and troubleshooters will find it invaluable for solving problems with programs for which the source is not readily available since they do not need to be recompiled in order to trace them.
The operation of strace is made possible by the kernel feature known as ptrace.
Some of the features
- Attach to an already running process
- Filter by type of syscall
- Trace-only system calls accessing the given path
- Perform a full hexadecimal and ASCII dump of all the data read from/written to file descriptors
- Perform a syscall fault injection
- Count time, calls, and errors for each system call
- Implemented decoding of cachestat and fchmodat2 syscalls.
- Implemented decoding of SO_PASSPIDFD and SO_PEERPIDFD socket options.
- Implemented decoding of SCM_PIDFD control messages.
- Implemented decoding of BPF_ENABLE_STATS, BPF_ITER_CREATE, BPF_LINK_DETACH,
and BPF_PROG_BIND_MAP bpf syscall commands.
- Updated decoding of BPF_OBJ_PIN and BPF_OBJ_GET bpf syscall commands.
- Updated lists of AT_*, BPF_*, IORING_*, KVM_*, MOVE_MOUNT_*, NFT_*, NT_*,
PR_*, and V4L2_* constants.
- Updated lists of ioctl commands from Linux 6.5.
git clone https://github.com/strace/strace.git cd strace ./configure && make && make install
Copyright (c) 1991, 1992 Paul Kranenburg <firstname.lastname@example.org>
Copyright (c) 1993 Branko Lankester <email@example.com>
Copyright (c) 1993 Ulrich Pegelow <firstname.lastname@example.org>
Copyright (c) 1995, 1996 Michael Elizabeth Chastain <email@example.com>
Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <firstname.lastname@example.org>
Copyright (c) 1998-2001 Wichert Akkerman <email@example.com>
Copyright (c) 2001-2018 The strace developers.
All rights reserved.