Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dmitry V. Levin 9630646cfa Prepare for 4.22 release 1 year ago
ci strace: handle possible NULL from localtime() call 1 year ago
debian debian: sync with 4.21-1 package 1 year ago
dist dist/README: s/linux/Linux/ 1 year ago
linux Update copyright headers 1 year ago
m4 build: generate all union bpf_attr checks automatically 1 year ago
maint Update copyright headers 1 year ago
qemu_multiarch_testing Wipe out references to defunct sourceforge 1 year ago
test Fix a few spacing style issues 2 years ago
tests Update copyright headers 1 year ago
xlat Update copyright headers 1 year ago
.gitignore Check that structures defined by bpf_attr.h match system union bpf_attr 1 year ago
.gitlab-ci.yml ci: rename travis-build.sh and travis-install.sh scripts 1 year ago
.mailmap Update .mailmap 1 year ago
.travis.yml ci: rename travis-build.sh and travis-install.sh scripts 1 year ago
AUTHORS 2002-12-22 Roland McGrath <roland@redhat.com> 17 years ago
COPYING Update copyright headers 1 year ago
CREDITS.in Wipe out references to defunct sourceforge 1 year ago
ChangeLog-CVS Generate ChangeLog from git log 10 years ago
HACKING-scripts Move errnoent.sh, signalent.sh, and syscallent.sh to maint subdirectory 2 years ago
INSTALL INSTALL: regenerate from install.texi 2 years ago
INSTALL-git.md INSTALL-git.md: enhance phrasing 1 year ago
Makefile.am unwind: split unwind code into front-end and back-end 1 year ago
NEWS Prepare for 4.22 release 1 year ago
README-hacking doc: update commit requirements 1 year ago
README-linux-ptrace README-linux-ptrace: correct the description of suppressed signals 7 years ago
README-mpers mpers: add support of conditionally compiled printers 3 years ago
README.md README.md: add references to binary strace packages 1 year ago
access.c access.c: make use of RVAL_DECODED 4 years ago
affinity.c Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2 years ago
aio.c aio: change struct iocb.aio_lio_opcode output format 2 years ago
alpha.c Update copyright headers 1 year ago
arch_defs.h arch_defs.h: fix typo in comment 1 year ago
basic_filters.c Update copyright headers 1 year ago
bind.c net: move parsers of bind, listen, and shutdown to separate files 2 years ago
bjm.c Add copyright headers 2 years ago
block.c Update copyright headers 1 year ago
bootstrap build: generate all union bpf_attr checks automatically 1 year ago
bpf.c Update copyright headers 1 year ago
bpf_attr.h bpf: add support for file mode flags 1 year ago
bpf_filter.c Update copyright headers 1 year ago
bpf_filter.h Generalize seccomp filter parser 2 years ago
bpf_fprog.h Generalize seccomp filter parser 2 years ago
bpf_seccomp_filter.c Add SECCOMP_RET_KILL_PROCESS decoding support 2 years ago
bpf_sock_filter.c Implement decoding of linux socket filter programs 2 years ago
btrfs.c btrfs: print struct btrfs_ioctl_logical_ino_args.reserved if non-zero 1 year ago
build_static_example.sh Use bootstrap script consistently 5 years ago
cacheflush.c Add copyright headers 2 years ago
capability.c Add copyright headers 2 years ago
caps0.h Move CAP_* definitions out to header files 4 years ago
caps1.h Move CAP_* definitions out to header files 4 years ago
chdir.c chdir.c: make use of RVAL_DECODED 4 years ago
chmod.c Fix printing of mode_t, umode_t, and umask types 3 years ago
clone.c Treat RVAL_DECIMAL the same way as RVAL_UDECIMAL 1 year ago
configure.ac tests: check bpf syscall decoder unconditionally 1 year ago
copy_file_range.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2 years ago
copyright-year-gen copyright-year-gen: workaround for old git versions 2 years ago
count.c Replace struct timeval with struct timespec in time measurements 1 year ago
defs.h unwind: rename public functions in an object-oriented fashion 1 year ago
delay.c strace: further optimize unblocking of the delay signal handler 1 year ago
delay.h Move delay interface from defs.h to delay.h 1 year ago
desc.c Update copyright headers 1 year ago
dirent.c Introduce print_quoted_cstring 2 years ago
dirent64.c Introduce print_quoted_cstring 2 years ago
dm.c Update copyright headers 1 year ago
dyxlat.c dyxlat: use xgrowarray 1 year ago
empty.h Add mpers support 4 years ago
epoll.c Add copyright headers 2 years ago
error_prints.c error_prints: fix potential program_invocation_name type conflict 2 years ago
error_prints.h error_prints.h: add *_func_* printing macros 1 year ago
evdev.c Update copyright headers 1 year ago
evdev_mpers.c evdev: move mpers-specific parsers to a separate file 1 year ago
eventfd.c Add copyright headers to some files which lack them 3 years ago
execve.c Add copyright headers 2 years ago
fadvise.c Add copyright headers 2 years ago
fallocate.c fallocate: change print format of offset and len arguments to signed 3 years ago
fanotify.c Add copyright headers 2 years ago
fchownat.c fchownat.c: make use of RVAL_DECODED 4 years ago
fcntl.c Add copyright headers 2 years ago
fetch_bpf_fprog.c Implement decoding of linux socket filter programs 2 years ago
fetch_indirect_syscall_args.c Transform fetch_old_mmap_args into fetch_indirect_syscall_args 1 year ago
fetch_struct_flock.c Add copyright headers 2 years ago
fetch_struct_keyctl_kdf_params.c keyctl: add support for KDF parameters decoding in KEYCTL_DH_COMPUTE 2 years ago
fetch_struct_mmsghdr.c Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2 years ago
fetch_struct_msghdr.c Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2 years ago
fetch_struct_stat.c Add copyright headers 2 years ago
fetch_struct_stat64.c Add copyright headers 2 years ago
fetch_struct_statfs.c Update copyright headers 2 years ago
file-date-gen Add script for generating date of the last commit for specific file 2 years ago
file_handle.c Add copyright headers 2 years ago
file_ioctl.c Update copyright headers 2 years ago
filter.h Update copyright headers 1 year ago
filter_qualify.c Implement injection of negative return values 1 year ago
flock.c Add copyright headers 2 years ago
flock.h Add copyright headers 2 years ago
fs_x_ioctl.c Update copyright headers 2 years ago
fstatfs.c Fix decoding of statfs family syscalls 3 years ago
fstatfs64.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2 years ago
futex.c Add copyright headers 2 years ago
gcc_compat.h Update copyright headers 1 year ago
gen_bpf_attr_check.sh bpf_attr: add more size checks 1 year ago
generate_mpers_am.sh Consistently use extended regular expressions where appropriate 3 years ago
generate_sen.sh Generate SEN numbers in a locale independent order 3 years ago
get_robust_list.c Add copyright headers to some files which lack them 3 years ago
getcpu.c getcpu.c: use printnum_int and printaddr 4 years ago
getcwd.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2 years ago
getpagesize.c Move decoder of getpagesize syscall to libstrace 1 year ago
getrandom.c getrandom: print string as hex-escaped 2 years ago
git-set-file-times Update auxiliary maintainer mode build tools 4 years ago
git-version-gen Add copyright headers 2 years ago
gitlog-to-changelog Update auxiliary maintainer mode build tools 4 years ago
hdio.c Update copyright headers 2 years ago
hostname.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2 years ago
inotify.c Add copyright headers to some files which lack them 3 years ago
io.c Fix a few spacing style issues 2 years ago
ioctl.c Update copyright headers 1 year ago
ioctl_iocdef.c ioctlsort: get ioctl definitions from host, not build 2 years ago
ioctlsort.c Fix a few spacing style issues 2 years ago
ioperm.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2 years ago
iopl.c Implement iopl syscall decoding 4 years ago
ioprio.c Update copyright headers 1 year ago
ipc.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2 years ago
ipc_defs.h Fix macros encosure in a do/while loop 2 years ago
ipc_msg.c Add copyright headers 2 years ago
ipc_msgctl.c Add copyright headers 2 years ago
ipc_sem.c Add copyright headers 2 years ago
ipc_shm.c ipc_shm: decode hugetlb page size in shmget flags 2 years ago
ipc_shmctl.c Add copyright headers 2 years ago
kcmp.c kcmp: add KCMP_EPOLL_TFD support 2 years ago
kernel_types.h ppc64: fix PRI__64 macro definition when compiled with -m32 2 years ago
kexec.c Fix a few spacing style issues 2 years ago
keyctl.c keyctl: add support for KDF parameters decoding in KEYCTL_DH_COMPUTE 2 years ago
keyctl_kdf_params.h keyctl: add support for KDF parameters decoding in KEYCTL_DH_COMPUTE 2 years ago
kvm.c kvm: decode the argument of KVM_{SET, GET}_SREGS ioctl command 1 year ago
largefile_wrappers.h Replace fopen_for_input and fopen_for_output with fopen_stream 1 year ago
ldt.c Remove RVAL_PRINT_ERR_VAL 1 year ago
link.c Add copyright headers to some files which lack them 3 years ago
listen.c net: move parsers of bind, listen, and shutdown to separate files 2 years ago
lookup_dcookie.c Add copyright headers 2 years ago
loop.c Update copyright headers 1 year ago
lseek.c Update copyright headers 1 year ago
macros.h Update copyright headers 1 year ago
make-dist make-dist: use HEAD for making distribution package 3 years ago
make-dsc Consistently use extended regular expressions where appropriate 3 years ago
mem.c Remove addflags 1 year ago
membarrier.c Add copyright headers 2 years ago
memfd_create.c memfd_create: decode hugetlb page size 2 years ago
mknod.c Add copyright headers 2 years ago
mmap_cache.c Replace fopen_for_input and fopen_for_output with fopen_stream 1 year ago
mmap_cache.h Introduce mmap_cache.h 1 year ago
mmsghdr.c Update copyright headers 1 year ago
mount.c Add copyright headers 2 years ago
mpers.awk mpers.awk: use stdint.h instead of inttypes.h 1 year ago
mpers.sh Update copyright headers 1 year ago
mpers_test.sh mpers.awk: use stdint.h instead of inttypes.h 1 year ago
mpers_type.h Provide mpers_ptr_t definition for non-mpers case 2 years ago
mq.c Update copyright headers 1 year ago
msghdr.c Pass tcp argument to get_optmem_max/read_int_from_file 1 year ago
msghdr.h Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2 years ago
mtd.c Update copyright headers 1 year ago
native_defs.h Simplify use of mpers printers 4 years ago
negated_errno.h Update copyright headers 1 year ago
net.c Update copyright headers 1 year ago
netlink.c Update copyright headers 1 year ago
netlink.h netlink: decode netlink message delete flags 2 years ago
netlink_crypto.c netlink: decode NETLINK_CRYPTO crypto_user_alg netlink attributes 2 years ago
netlink_inet_diag.c Update copyright headers 1 year ago
netlink_netfilter.c nfnetlink: introduce generic netfilter subsystem decoder 1 year ago
netlink_netlink_diag.c Update copyright headers 1 year ago
netlink_packet_diag.c Sort Ethernet protocols xlat 1 year ago
netlink_route.c netlink: add a basic rtnetlink parser of nsid messages 2 years ago
netlink_route.h netlink: add a basic rtnetlink parser of nsid messages 2 years ago
netlink_selinux.c Adjust prototypes of netlink parsing functions 2 years ago
netlink_smc_diag.c netlink_sock_diag: replace NLA_ALIGN with NLMSG_ALIGN 2 years ago
netlink_sock_diag.c Move family-specific NETLINK_SOCK_DIAG parsers to separate files 2 years ago
netlink_sock_diag.h Add terminating comment after each DECL_* macro definition 2 years ago
netlink_unix_diag.c Update copyright headers 1 year ago
nlattr.c Update copyright headers 1 year ago
nlattr.h netlink: print descriptor attributes using printfd 2 years ago
nsfs.c Imply RVAL_DECODED when RVAL_IOCTL_PARSED is returned on entering 2 years ago
nsfs.h Implement decoding of NS_* ioctl commands 2 years ago
nsig.h Introduce NSIG_BYTES 2 years ago
numa.c Fix a few spacing style issues 2 years ago
number_set.c Hide struct number_set implementation details from users 2 years ago
number_set.h alloc_number_set_array: add ATTRIBUTE_MALLOC 2 years ago
oldstat.c Add copyright headers 2 years ago
open.c Update copyright headers 1 year ago
or1k_atomic.c Fix a few spacing style issues 2 years ago
pathtrace.c Update copyright headers 1 year ago
perf.c Update copyright headers 1 year ago
perf_event_struct.h perf.c: add support for struct perf_event_attr.namespaces 1 year ago
personality.c Update copyright headers 1 year ago
pkeys.c Remove getarg_klu 2 years ago
poll.c poll.c: remove special INFTIM handling 1 year ago
prctl.c Update copyright headers 1 year ago
print_dev_t.c Move device number printing code into a separate routine 2 years ago
print_fields.h print_fields.h: introduce PRINT_FIELD_ADDR and PRINT_FIELD_ADDR64 macros 1 year ago
print_group_req.c Mpersify struct group_req 2 years ago
print_ifindex.c Introduce print_quoted_cstring 2 years ago
print_mq_attr.c Add copyright headers 2 years ago
print_msgbuf.c Add copyright headers 2 years ago
print_sg_req_info.c Imply RVAL_DECODED when RVAL_IOCTL_PARSED is returned on entering 2 years ago
print_sigevent.c Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2 years ago
print_statfs.c Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2 years ago
print_struct_stat.c Add copyright headers 2 years ago
print_time.c Add copyright headers 2 years ago
print_timespec.c Update copyright headers 1 year ago
print_timeval.c Update copyright headers 1 year ago
print_timex.c Add copyright headers 2 years ago
printmode.c Add copyright headers 2 years ago
printrusage.c Add copyright headers 2 years ago
printsiginfo.c Update copyright headers 1 year ago
printsiginfo.h Change #include guard trailing part comments 3 years ago
process.c Implement PTRACE_SECCOMP_GET_METADATA ptrace request decoding 1 year ago
process_vm.c Add copyright headers 2 years ago
ptp.c Update copyright headers 1 year ago
ptrace.h Update copyright headers 1 year ago
quota.c Update copyright headers 1 year ago
readahead.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2 years ago
readlink.c Add copyright headers 2 years ago
reboot.c reboot.c: limit printing of the fourth argument to 255 bytes 1 year ago
regs.h m68k: fix build 1 year ago
renameat.c renameat.c: make use of RVAL_DECODED 4 years ago
resource.c Update copyright headers 1 year ago
retval.c Turn struct inject_data.rval into an index 1 year ago
retval.h Turn struct inject_data.rval into an index 1 year ago
riscv.c Implement decoding of riscv_flush_icache syscall 1 year ago
rt_sigframe.c Update copyright headers 1 year ago
rt_sigreturn.c Implement proper decoding of rt_sigreturn syscall 2 years ago
rtc.c Update copyright headers 1 year ago
rtnl_addr.c Update copyright headers 1 year ago
rtnl_addrlabel.c Update copyright headers 1 year ago
rtnl_dcb.c Update copyright headers 1 year ago
rtnl_link.c rtnl_link: add decoding of new IFLA_* attributes 1 year ago
rtnl_mdb.c Update copyright headers 1 year ago
rtnl_neigh.c Update copyright headers 1 year ago
rtnl_neightbl.c rtnl_neightbl: enhance decoding of struct ndt_stats 2 years ago
rtnl_netconf.c rtnl_netconf: decode netconfmsg netlink attributes 2 years ago
rtnl_nsid.c netlink: print descriptor attributes using printfd 2 years ago
rtnl_route.c Update copyright headers 1 year ago
rtnl_rule.c Update copyright headers 1 year ago
rtnl_tc.c rtnl_tc: support new TCA_* attributes 1 year ago
rtnl_tc_action.c rtnl_tc_action: decode tcamsg netlink attributes 2 years ago
s390.c Move is_filled and IS_ZERO to macros.h, rename IS_ZERO to IS_ARRAY_ZERO 1 year ago
sched.c Update copyright headers 1 year ago
sched_attr.h Move definition of struct sched_attr to a separate header file 2 years ago
scno.am Add ksysent.h and scno.h to BUILT_SOURCES 2 years ago
scno.head Generate scno.h without invoking a generated executable helper 2 years ago
scsi.c Imply RVAL_DECODED when RVAL_IOCTL_PARSED is returned on entering 2 years ago
seccomp.c seccomp: decode SECCOMP_GET_ACTION_AVAIL operation 2 years ago
sendfile.c Add copyright headers 2 years ago
sg_io_v3.c Imply RVAL_DECODED when RVAL_IOCTL_PARSED is returned on entering 2 years ago
sg_io_v4.c Imply RVAL_DECODED when RVAL_IOCTL_PARSED is returned on entering 2 years ago
shutdown.c net: move parsers of bind, listen, and shutdown to separate files 2 years ago
sigaltstack.c Add copyright headers 2 years ago
sigevent.h Change #include guard trailing part comments 3 years ago
signal.c Update copyright headers 1 year ago
signalfd.c Add copyright headers 2 years ago
sigreturn.c Include <sys/ptrace.h> early 1 year ago
sock.c Imply RVAL_DECODED when RVAL_IOCTL_PARSED is returned on entering 2 years ago
sockaddr.c Update copyright headers 1 year ago
socketcall.c Do not print too many arguments of socketcall syscall 3 years ago
socketutils.c util.c: add support for additional escape characters in string_quote 1 year ago
sparc.c sparc, sparc64: implement kern_features decoder 1 year ago
sram_alloc.c Use printflags64 instead of printflags_long 2 years ago
stat.c Add copyright headers 2 years ago
stat.h Add copyright headers 2 years ago
stat64.c Add copyright headers 2 years ago
statfs.c Fix decoding of statfs family syscalls 3 years ago
statfs.h Change #include guard trailing part comments 3 years ago
statfs64.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2 years ago
static_assert.h Introduce static_assert 1 year ago
statx.c Unify different generic PRINT_FIELD_* implementations 2 years ago
statx.h Fix a few spacing style issues 2 years ago
strace-graph Unify capitalisation of (c) in copyright notices 2 years ago
strace-log-merge Update copyright headers 1 year ago
strace-log-merge.1.in Wipe out references to defunct sourceforge 1 year ago
strace.1.in strace.c: add support for opening output file in append mode 1 year ago
strace.c strace.c: add support for opening output file in append mode 1 year ago
strace.spec.in strace.spec.in: add gcc to build requirements 1 year ago
strace.svg Add strace mascot 1 year ago
string_to_uint.c Update copyright headers 1 year ago
string_to_uint.h Update copyright headers 1 year ago
swapon.c swap: always print priority value 2 years ago
sync_file_range.c Add copyright headers 2 years ago
sync_file_range2.c Add copyright headers 2 years ago
syscall.c unwind: rename public functions in an object-oriented fashion 1 year ago
sysctl.c Fix a few spacing style issues 2 years ago
sysent.h Add pure syscall flag 1 year ago
sysent_shorthand_defs.h Add pure syscall flag 1 year ago
sysent_shorthand_undefs.h Make sysent_shorthand_defs.h suitable for tests 2 years ago
sysinfo.c Add copyright headers 2 years ago
syslog.c Add copyright headers 2 years ago
sysmips.c Introduce print_quoted_cstring 2 years ago
term.c Update copyright headers 1 year ago
time.c Update copyright headers 1 year ago
times.c Update copyright headers 1 year ago
trace_event.h Move enum trace_event into a separate header 1 year ago
truncate.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2 years ago
ubi.c Remove linux/ubi-user.h 1 year ago
ucopy.c Update copyright headers 1 year ago
uid.c Treat RVAL_DECIMAL the same way as RVAL_UDECIMAL 1 year ago
uid16.c Fix decoding of 16-bit *chown and [gs]et*[gu]id syscalls 4 years ago
umask.c Fix printing of mode_t, umode_t, and umask types 3 years ago
umount.c Update umount2 flags 3 years ago
uname.c Update copyright headers 2 years ago
unwind-libunwind.c unwind: split unwind code into front-end and back-end 1 year ago
unwind.c unwind: split unwind code into front-end and back-end 1 year ago
unwind.h unwind: split unwind code into front-end and back-end 1 year ago
upeek.c Change the first argument of upeek from pid to tcp 1 year ago
upoke.c Update copyright headers 1 year ago
userfaultfd.c Imply RVAL_DECODED when RVAL_IOCTL_PARSED is returned on entering 2 years ago
ustat.c Implement decoding of ustat syscall 2 years ago
util.c util.c: amend sprinttime_ex description a bit 1 year ago
utime.c Always print raw values of time data fields 2 years ago
utimes.c Add copyright headers 2 years ago
v4l2.c build: prepare for -Wimplicit-fallthrough=5 1 year ago
wait.c Update copyright headers 1 year ago
xattr.c Automatically replace PRI_kr[dux] with PRI_kl[dux] 2 years ago
xlat.c Remove addflags 1 year ago
xlat.h Change #include guard trailing part comments 3 years ago
xmalloc.c xmalloc.c: introduce xgrowarray helper function 1 year ago
xmalloc.h Define macros for renaming xmalloc and xcalloc 1 year ago
xstring.h xstring.h: rephrase xappendstr description a bit 1 year ago

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 a Berkeley-style license at the request of Paul Kranenburg; see the file 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.

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.

Build Status Code Coverage