├── BUGS ├── CHANGELOG ├── Makefile ├── README ├── TODO ├── common ├── children.c ├── children.h ├── misc.c ├── misc.h ├── syscalls.awk ├── syscalls.h ├── trace.c ├── trace.h ├── xstringlist.c ├── xstringlist.h ├── xutils.c └── xutils.h ├── coredumper ├── Makefile ├── coredumper.1 └── coredumper.c ├── minixdb ├── Dist ├── MDB.TXT ├── Makefile ├── README ├── core.c ├── decode.c ├── gnu_sym.c ├── io.c ├── ioctl.c ├── kernel.c ├── mdb.1 ├── mdb.c ├── mdb.h ├── mdbdis86.c ├── mdbexp.c ├── misc.c ├── proto.h ├── sample ├── sym.c ├── syscalls.c └── trace.c ├── picotrace ├── Makefile ├── picotrace.1 └── picotrace.c ├── sigtracer ├── Makefile ├── sigtracer.1 └── sigtracer.c ├── singlestepper ├── Makefile ├── singlestepper.1 └── singlestepper.c ├── strace ├── .mailmap ├── AUTHORS ├── COPYING ├── CREDITS.in ├── ChangeLog-CVS ├── HACKING-scripts ├── INSTALL-git.md ├── Makefile.am ├── NEWS ├── README-configure ├── README-github_gitlab-autogenerated-archives.txt ├── README-hacking ├── README-linux-ptrace ├── README-mpers ├── README.md ├── access.c ├── affinity.c ├── aio.c ├── alpha.c ├── arch_defs.h ├── basic_filters.c ├── bind.c ├── bjm.c ├── block.c ├── bootstrap ├── bpf.c ├── bpf_attr.h ├── bpf_filter.c ├── bpf_filter.h ├── bpf_fprog.h ├── bpf_seccomp_filter.c ├── bpf_sock_filter.c ├── btrfs.c ├── build_static_example.sh ├── cacheflush.c ├── capability.c ├── caps0.h ├── caps1.h ├── chdir.c ├── chmod.c ├── ci │ ├── install-dependencies.sh │ └── run-build-and-tests.sh ├── clone.c ├── configure.ac ├── copy_file_range.c ├── copyright-year-gen ├── count.c ├── debian │ ├── .gitignore │ ├── changelog.in │ ├── compat │ ├── control │ ├── copyright │ ├── rules │ ├── source │ │ └── format │ ├── strace-udeb.install │ ├── strace.docs │ ├── strace.examples │ ├── strace.install │ ├── strace.manpages │ ├── strace64.install │ ├── strace64.manpages │ └── watch ├── defs.h ├── delay.c ├── delay.h ├── desc.c ├── dirent.c ├── dirent64.c ├── dist │ ├── INSTALL │ └── README ├── dm.c ├── dyxlat.c ├── empty.h ├── epoll.c ├── error_prints.c ├── error_prints.h ├── evdev.c ├── evdev_mpers.c ├── eventfd.c ├── execve.c ├── f_owner_ex.h ├── fadvise.c ├── fallocate.c ├── fanotify.c ├── fchownat.c ├── fcntl.c ├── fetch_bpf_fprog.c ├── fetch_indirect_syscall_args.c ├── fetch_struct_flock.c ├── fetch_struct_keyctl_kdf_params.c ├── fetch_struct_mmsghdr.c ├── fetch_struct_msghdr.c ├── fetch_struct_stat.c ├── fetch_struct_stat64.c ├── fetch_struct_statfs.c ├── fetch_struct_xfs_quotastat.c ├── file-date-gen ├── file_handle.c ├── file_ioctl.c ├── filter.h ├── filter_qualify.c ├── flock.c ├── flock.h ├── fs_x_ioctl.c ├── fstatfs.c ├── fstatfs64.c ├── futex.c ├── gcc_compat.h ├── gen_bpf_attr_check.sh ├── generate_mpers_am.sh ├── generate_sen.sh ├── get_robust_list.c ├── getcpu.c ├── getcwd.c ├── getpagesize.c ├── getrandom.c ├── git-set-file-times ├── git-version-gen ├── gitlog-to-changelog ├── hdio.c ├── hostname.c ├── inotify.c ├── inotify_ioctl.c ├── io.c ├── ioctl.c ├── ioctl_iocdef.c ├── ioctlsort.c ├── ioperm.c ├── iopl.c ├── ioprio.c ├── ipc.c ├── ipc_defs.h ├── ipc_msg.c ├── ipc_msgctl.c ├── ipc_sem.c ├── ipc_shm.c ├── ipc_shmctl.c ├── kcmp.c ├── kernel_types.h ├── kexec.c ├── keyctl.c ├── keyctl_kdf_params.h ├── kill_save_errno.h ├── kvm.c ├── largefile_wrappers.h ├── ldt.c ├── link.c ├── linux │ ├── 32 │ │ ├── ioctls_inc.h │ │ ├── ioctls_inc_align16.h │ │ ├── ioctls_inc_align32.h │ │ ├── ioctls_inc_align64.h │ │ └── syscallent.h │ ├── 64 │ │ ├── ioctls_inc.h │ │ └── syscallent.h │ ├── aarch64 │ │ ├── arch_defs_.h │ │ ├── arch_regs.c │ │ ├── arch_sigreturn.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_arch1.h │ │ ├── ioctls_inc0.h │ │ ├── ioctls_inc1.h │ │ ├── nr_prefix.c │ │ ├── raw_syscall.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── shuffle_scno.c │ │ ├── syscallent.h │ │ └── syscallent1.h │ ├── alpha │ │ ├── arch_defs_.h │ │ ├── arch_getrval2.c │ │ ├── arch_regs.c │ │ ├── arch_sigreturn.c │ │ ├── errnoent.h │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── get_syscall_result.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── signalent.h │ │ ├── syscallent.h │ │ └── userent.h │ ├── arc │ │ ├── arch_regs.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ └── syscallent.h │ ├── arch_defs_.h │ ├── arch_kvm.c │ ├── arch_regs.h │ ├── arch_rt_sigframe.c │ ├── arch_sigreturn.c │ ├── arm │ │ ├── arch_defs_.h │ │ ├── arch_regs.c │ │ ├── arch_sigreturn.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── nr_prefix.c │ │ ├── raw_syscall.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── shuffle_scno.c │ │ ├── syscallent.h │ │ └── userent.h │ ├── asm_stat.h │ ├── avr32 │ │ ├── arch_regs.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ └── userent.h │ ├── bfin │ │ ├── arch_defs_.h │ │ ├── arch_regs.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── get_syscall_result.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── rt_sigframe.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ └── userent.h │ ├── dummy.h │ ├── errnoent.h │ ├── getregs_old.h │ ├── hppa │ │ ├── arch_defs_.h │ │ ├── arch_regs.c │ │ ├── arch_rt_sigframe.c │ │ ├── errnoent.h │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── get_syscall_result.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── rt_sigframe.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── signalent.h │ │ └── syscallent.h │ ├── i386 │ │ ├── arch_defs_.h │ │ ├── arch_kvm.c │ │ ├── arch_regs.c │ │ ├── arch_rt_sigframe.c │ │ ├── arch_sigreturn.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── rt_sigframe.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ ├── userent.h │ │ └── userent0.h │ ├── ia64 │ │ ├── arch_defs_.h │ │ ├── arch_getrval2.c │ │ ├── arch_regs.c │ │ ├── arch_regs.h │ │ ├── arch_rt_sigframe.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── rt_sigframe.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ └── userent.h │ ├── inet_diag.h │ ├── m68k │ │ ├── arch_defs_.h │ │ ├── arch_regs.c │ │ ├── arch_rt_sigframe.c │ │ ├── arch_sigreturn.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── rt_sigframe.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ └── userent.h │ ├── metag │ │ ├── arch_regs.c │ │ ├── arch_rt_sigframe.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ └── syscallent.h │ ├── microblaze │ │ ├── arch_defs_.h │ │ ├── arch_regs.c │ │ ├── arch_sigreturn.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── get_syscall_result.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ └── userent.h │ ├── mips │ │ ├── .gitignore │ │ ├── arch_defs_.h │ │ ├── arch_getrval2.c │ │ ├── arch_regs.c │ │ ├── arch_sigreturn.c │ │ ├── errnoent.h │ │ ├── genstub.sh │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── rt_sigframe.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── signalent.h │ │ ├── syscallent-compat.h │ │ ├── syscallent-n32.h │ │ ├── syscallent-n64.h │ │ ├── syscallent-o32.h │ │ ├── syscallent.h │ │ └── userent.h │ ├── netlink_diag.h │ ├── nios2 │ │ ├── arch_defs_.h │ │ ├── arch_regs.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ └── syscallent.h │ ├── nr_prefix.c │ ├── or1k │ │ ├── arch_regs.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ └── userent.h │ ├── packet_diag.h │ ├── powerpc │ │ ├── arch_defs_.h │ │ ├── arch_regs.c │ │ ├── arch_rt_sigframe.c │ │ ├── arch_sigreturn.c │ │ ├── errnoent.h │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── getregs_old.c │ │ ├── getregs_old.h │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ └── userent.h │ ├── powerpc64 │ │ ├── arch_defs_.h │ │ ├── arch_regs.c │ │ ├── arch_rt_sigframe.c │ │ ├── arch_sigreturn.c │ │ ├── errnoent.h │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── getregs_old.c │ │ ├── getregs_old.h │ │ ├── ioctls_arch0.h │ │ ├── ioctls_arch1.h │ │ ├── ioctls_inc0.h │ │ ├── ioctls_inc1.h │ │ ├── raw_syscall.h │ │ ├── rt_sigframe.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ ├── syscallent1.h │ │ └── userent.h │ ├── ptrace_pokeuser.c │ ├── raw_syscall.h │ ├── riscv │ │ ├── arch_defs_.h │ │ ├── arch_regs.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_arch1.h │ │ ├── ioctls_inc0.h │ │ ├── ioctls_inc1.h │ │ ├── raw_syscall.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ └── syscallent1.h │ ├── rt_sigframe.h │ ├── s390 │ │ ├── arch_defs_.h │ │ ├── arch_regs.c │ │ ├── arch_sigreturn.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── rt_sigframe.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ ├── userent.h │ │ ├── userent0.h │ │ └── userent1.h │ ├── s390x │ │ ├── arch_defs_.h │ │ ├── arch_regs.c │ │ ├── arch_sigreturn.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_arch1.h │ │ ├── ioctls_inc0.h │ │ ├── ioctls_inc1.h │ │ ├── raw_syscall.h │ │ ├── rt_sigframe.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ ├── syscallent1.h │ │ └── userent.h │ ├── sh │ │ ├── arch_defs_.h │ │ ├── arch_getrval2.c │ │ ├── arch_regs.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── get_syscall_result.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ ├── userent.h │ │ └── userent0.h │ ├── sh64 │ │ ├── arch_defs_.h │ │ ├── arch_regs.c │ │ ├── arch_regs.h │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── get_syscall_result.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── rt_sigframe.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ └── userent.h │ ├── shuffle_scno.c │ ├── signal.h.in │ ├── signalent.h │ ├── smc_diag.h │ ├── sock_diag.h │ ├── sparc │ │ ├── arch_defs_.h │ │ ├── arch_getrval2.c │ │ ├── arch_regs.c │ │ ├── arch_sigreturn.c │ │ ├── errnoent.h │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── rt_sigframe.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── signalent.h │ │ ├── syscallent.h │ │ └── userent.h │ ├── sparc64 │ │ ├── arch_defs_.h │ │ ├── arch_getrval2.c │ │ ├── arch_regs.c │ │ ├── arch_rt_sigframe.c │ │ ├── arch_sigreturn.c │ │ ├── errnoent.h │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_arch1.h │ │ ├── ioctls_inc0.h │ │ ├── ioctls_inc1.h │ │ ├── raw_syscall.h │ │ ├── rt_sigframe.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── signalent.h │ │ ├── syscallent.h │ │ ├── syscallent1.h │ │ └── userent.h │ ├── subcall.h │ ├── syscall.h │ ├── tile │ │ ├── arch_defs_.h │ │ ├── arch_regs.c │ │ ├── arch_sigreturn.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_arch1.h │ │ ├── ioctls_inc0.h │ │ ├── ioctls_inc1.h │ │ ├── raw_syscall.h │ │ ├── rt_sigframe.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ ├── syscallent1.h │ │ └── userent.h │ ├── unix_diag.h │ ├── userent.h │ ├── userent0.h │ ├── x32 │ │ ├── arch_defs_.h │ │ ├── arch_kvm.c │ │ ├── arch_regs.c │ │ ├── arch_regs.h │ │ ├── arch_rt_sigframe.c │ │ ├── arch_sigreturn.c │ │ ├── asm_stat.h │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_arch1.h │ │ ├── ioctls_inc0.h │ │ ├── ioctls_inc1.h │ │ ├── ptrace_pokeuser.c │ │ ├── raw_syscall.h │ │ ├── rt_sigframe.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── shuffle_scno.c │ │ ├── syscallent.h │ │ ├── syscallent1.h │ │ └── userent.h │ ├── x86_64 │ │ ├── arch_defs_.h │ │ ├── arch_kvm.c │ │ ├── arch_regs.c │ │ ├── arch_regs.h │ │ ├── arch_rt_sigframe.c │ │ ├── arch_sigreturn.c │ │ ├── asm_stat.h │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── getregs_old.c │ │ ├── getregs_old.h │ │ ├── ioctls_arch0.h │ │ ├── ioctls_arch1.h │ │ ├── ioctls_arch2.h │ │ ├── ioctls_inc0.h │ │ ├── ioctls_inc1.h │ │ ├── ioctls_inc2.h │ │ ├── raw_syscall.h │ │ ├── rt_sigframe.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── shuffle_scno.c │ │ ├── syscallent.h │ │ ├── syscallent1.h │ │ ├── syscallent2.h │ │ └── userent.h │ └── xtensa │ │ ├── arch_regs.c │ │ ├── get_error.c │ │ ├── get_scno.c │ │ ├── get_syscall_args.c │ │ ├── get_syscall_result.c │ │ ├── ioctls_arch0.h │ │ ├── ioctls_inc0.h │ │ ├── raw_syscall.h │ │ ├── set_error.c │ │ ├── set_scno.c │ │ ├── syscallent.h │ │ └── userent.h ├── listen.c ├── lookup_dcookie.c ├── loop.c ├── lseek.c ├── m4 │ ├── .gitignore │ ├── ax_code_coverage.m4 │ ├── ax_prog_cc_for_build.m4 │ ├── ax_valgrind_check.m4 │ ├── gen_bpf_attr_m4.awk │ ├── gen_bpf_attr_m4.sh │ ├── mpers.m4 │ ├── st_demangle.m4 │ ├── st_libdw.m4 │ ├── st_libunwind.m4 │ ├── st_save_restore_var.m4 │ ├── st_stacktrace.m4 │ ├── st_warn_cflags.m4 │ └── warnings.m4 ├── macros.h ├── maint │ ├── README-release │ ├── errnoent.sh │ ├── gen-contributors-list.sh │ ├── gen-release-github.sh │ ├── gen-release-gitlab.sh │ ├── gen-release-notes.sh │ ├── gen-tag-message.sh │ ├── gen_xlat_defs.sh │ ├── install.texi │ ├── ioctls_gen.sh │ ├── ioctls_hex.sh │ ├── ioctls_sym.awk │ ├── ioctls_sym.sh │ ├── signalent.sh │ ├── syscallent.sh │ ├── update_copyright_years.awk │ └── update_copyright_years.sh ├── make-dist ├── make-dsc ├── mem.c ├── membarrier.c ├── memfd_create.c ├── mknod.c ├── mmap_cache.c ├── mmap_cache.h ├── mmap_notify.c ├── mmap_notify.h ├── mmsghdr.c ├── mount.c ├── mpers.awk ├── mpers.sh ├── mpers_test.sh ├── mpers_type.h ├── mq.c ├── msghdr.c ├── msghdr.h ├── mtd.c ├── native_defs.h ├── nbd_ioctl.c ├── negated_errno.h ├── net.c ├── netlink.c ├── netlink.h ├── netlink_crypto.c ├── netlink_inet_diag.c ├── netlink_kobject_uevent.c ├── netlink_kobject_uevent.h ├── netlink_netfilter.c ├── netlink_netlink_diag.c ├── netlink_packet_diag.c ├── netlink_route.c ├── netlink_route.h ├── netlink_selinux.c ├── netlink_smc_diag.c ├── netlink_sock_diag.c ├── netlink_sock_diag.h ├── netlink_unix_diag.c ├── nlattr.c ├── nlattr.h ├── nsfs.c ├── nsfs.h ├── nsig.h ├── numa.c ├── number_set.c ├── number_set.h ├── oldstat.c ├── open.c ├── or1k_atomic.c ├── pathtrace.c ├── perf.c ├── perf_event_struct.h ├── perf_ioctl.c ├── personality.c ├── pkeys.c ├── poll.c ├── prctl.c ├── print_aio_sigset.c ├── print_dev_t.c ├── print_fields.h ├── print_group_req.c ├── print_ifindex.c ├── print_instruction_pointer.c ├── print_kernel_version.c ├── print_mac.c ├── print_mq_attr.c ├── print_msgbuf.c ├── print_sg_req_info.c ├── print_sigevent.c ├── print_statfs.c ├── print_struct_stat.c ├── print_time.c ├── print_timespec.c ├── print_timeval.c ├── print_timex.c ├── printmode.c ├── printrusage.c ├── printsiginfo.c ├── printsiginfo.h ├── process.c ├── process_vm.c ├── ptp.c ├── ptrace.h ├── qemu_multiarch_testing │ ├── .gitignore │ ├── README │ ├── hdc.dir │ │ ├── init │ │ └── init2 │ ├── make-hdc-img.sh │ └── parallel-build-hdc-img.sh ├── quota.c ├── random_ioctl.c ├── readahead.c ├── readlink.c ├── reboot.c ├── regs.h ├── renameat.c ├── resource.c ├── retval.c ├── retval.h ├── riscv.c ├── rt_sigframe.c ├── rt_sigreturn.c ├── rtc.c ├── rtnl_addr.c ├── rtnl_addrlabel.c ├── rtnl_dcb.c ├── rtnl_link.c ├── rtnl_mdb.c ├── rtnl_neigh.c ├── rtnl_neightbl.c ├── rtnl_netconf.c ├── rtnl_nsid.c ├── rtnl_route.c ├── rtnl_rule.c ├── rtnl_tc.c ├── rtnl_tc_action.c ├── s390.c ├── sched.c ├── sched_attr.h ├── scno.am ├── scno.head ├── scsi.c ├── seccomp.c ├── sendfile.c ├── sg_io_v3.c ├── sg_io_v4.c ├── shutdown.c ├── sigaltstack.c ├── sigevent.h ├── signal.c ├── signalfd.c ├── sigreturn.c ├── sock.c ├── sockaddr.c ├── socketcall.c ├── socketutils.c ├── sparc.c ├── sram_alloc.c ├── stat.c ├── stat.h ├── stat64.c ├── statfs.c ├── statfs.h ├── statfs64.c ├── static_assert.h ├── statx.c ├── statx.h ├── strace-graph ├── strace-log-merge ├── strace-log-merge.1.in ├── strace.1.in ├── strace.c ├── strace.spec.in ├── strace.svg ├── string_to_uint.c ├── string_to_uint.h ├── swapon.c ├── sync_file_range.c ├── sync_file_range2.c ├── syscall.c ├── sysctl.c ├── sysent.h ├── sysent_shorthand_defs.h ├── sysent_shorthand_undefs.h ├── sysinfo.c ├── syslog.c ├── sysmips.c ├── term.c ├── test │ ├── .gitignore │ ├── Makefile │ ├── README.md │ ├── childthread.c │ ├── clone.c │ ├── leaderkill.c │ ├── many_looping_threads.c │ ├── mmap_offset_decode.c │ ├── mtd.c │ ├── procpollable.c │ ├── seccomp.c │ ├── sfd.c │ ├── sig.c │ ├── sigkill_rain.c │ ├── skodic.c │ ├── threaded_execve.c │ ├── ubi.c │ ├── wait_must_be_interruptible.c │ ├── x32_lseek.c │ └── x32_mmap.c ├── tests │ ├── .gitignore │ ├── Makefile.am │ ├── _newselect-P.c │ ├── _newselect.c │ ├── accept.c │ ├── accept4.c │ ├── accept_compat.h │ ├── access.c │ ├── acct.c │ ├── add_key.c │ ├── adjtimex.c │ ├── aio.c │ ├── aio_pgetevents.c │ ├── alarm.c │ ├── answer.c │ ├── attach-f-p-cmd.c │ ├── attach-f-p.c │ ├── attach-f-p.test │ ├── attach-p-cmd-cmd.c │ ├── attach-p-cmd-p.c │ ├── attach-p-cmd.h │ ├── attach-p-cmd.test │ ├── bexecve.test │ ├── block_reset_raise_run.c │ ├── bpf-obj_get_info_by_fd-prog-v.c │ ├── bpf-obj_get_info_by_fd-prog.c │ ├── bpf-obj_get_info_by_fd-v.c │ ├── bpf-obj_get_info_by_fd.c │ ├── bpf-success-v.c │ ├── bpf-success-v.test │ ├── bpf-success.c │ ├── bpf-success.test │ ├── bpf-v.c │ ├── bpf.c │ ├── brk.c │ ├── brk.test │ ├── btrfs-X.test │ ├── btrfs-v.test │ ├── btrfs-vX.test │ ├── btrfs-vw.test │ ├── btrfs-vwX.test │ ├── btrfs-w.test │ ├── btrfs-wX.test │ ├── btrfs.c │ ├── caps-abbrev.awk │ ├── caps-abbrev.c │ ├── caps-abbrev.test │ ├── caps.awk │ ├── caps.c │ ├── caps.test │ ├── check_sigblock.c │ ├── check_sigign.c │ ├── chmod.c │ ├── chown.c │ ├── chown32.c │ ├── chroot.c │ ├── clock.in │ ├── clock_adjtime.c │ ├── clock_nanosleep.c │ ├── clock_xettime.c │ ├── clone_parent.c │ ├── clone_parent.test │ ├── clone_ptrace.c │ ├── clone_ptrace.test │ ├── copy_file_range.c │ ├── count-f.c │ ├── count-f.expected │ ├── count-f.test │ ├── count.test │ ├── creat.c │ ├── create_nl_socket.c │ ├── delay.c │ ├── delay.test │ ├── delete_module.c │ ├── detach-running.test │ ├── detach-sleeping.test │ ├── detach-stopped.test │ ├── dev-yy.c │ ├── dup.c │ ├── dup2.c │ ├── dup3.c │ ├── epoll_create.c │ ├── epoll_create1.c │ ├── epoll_ctl.c │ ├── epoll_pwait.c │ ├── epoll_wait.c │ ├── erestartsys.c │ ├── errno2name.c │ ├── error_msg.c │ ├── eventfd.c │ ├── eventfd.expected │ ├── eventfd.test │ ├── execve-v.c │ ├── execve-v.test │ ├── execve.c │ ├── execve.test │ ├── execveat-v.c │ ├── execveat.c │ ├── faccessat.c │ ├── fadvise.h │ ├── fadvise64.c │ ├── fadvise64.test │ ├── fadvise64_64.c │ ├── fallocate.c │ ├── fanotify_init.c │ ├── fanotify_mark-Xabbrev.c │ ├── fanotify_mark-Xraw.c │ ├── fanotify_mark-Xverbose.c │ ├── fanotify_mark.c │ ├── fchdir.c │ ├── fchmod.c │ ├── fchmodat.c │ ├── fchown.c │ ├── fchown32.c │ ├── fchownat.c │ ├── fcntl-common.c │ ├── fcntl.c │ ├── fcntl64.c │ ├── fdatasync.c │ ├── fflush.c │ ├── fflush.test │ ├── file_handle.c │ ├── file_ioctl.c │ ├── fill_memory.c │ ├── filter-unavailable.c │ ├── filter-unavailable.expected │ ├── filter-unavailable.test │ ├── filtering_fd-syntax.test │ ├── filtering_syscall-syntax.test │ ├── finit_module.c │ ├── first_exec_failure.test │ ├── flock.c │ ├── fork-f.c │ ├── fstat-Xabbrev.c │ ├── fstat-Xraw.c │ ├── fstat-Xverbose.c │ ├── fstat.c │ ├── fstat64-Xabbrev.c │ ├── fstat64-Xraw.c │ ├── fstat64-Xverbose.c │ ├── fstat64.c │ ├── fstatat.c │ ├── fstatat64.c │ ├── fstatfs.c │ ├── fstatfs64.c │ ├── fstatx.c │ ├── fsync-y.c │ ├── fsync.c │ ├── ftruncate.c │ ├── ftruncate64.c │ ├── futex.c │ ├── futex.test │ ├── futimesat.c │ ├── gen_pure_executables.sh │ ├── gen_tests.in │ ├── gen_tests.sh │ ├── get_mempolicy.c │ ├── get_page_size.c │ ├── get_regs.test │ ├── get_sigset_size.c │ ├── getcpu.c │ ├── getcwd.c │ ├── getdents.c │ ├── getdents64.c │ ├── getegid.c │ ├── getegid32.c │ ├── geteuid.c │ ├── geteuid32.c │ ├── getgid.c │ ├── getgid32.c │ ├── getgroups.c │ ├── getgroups32.c │ ├── getpeername.c │ ├── getpgrp.c │ ├── getpid.c │ ├── getppid.c │ ├── getrandom.c │ ├── getresgid.c │ ├── getresgid32.c │ ├── getresugid.c │ ├── getresuid.c │ ├── getresuid32.c │ ├── getrlimit.c │ ├── getrusage.c │ ├── getsid.c │ ├── getsockname.c │ ├── gettid.c │ ├── getuid.c │ ├── getuid.test │ ├── getuid32.c │ ├── getxxid.c │ ├── group_req.c │ ├── hexdump_strdup.c │ ├── hexquote_strndup.c │ ├── ifindex.c │ ├── inet-cmsg.c │ ├── init.sh │ ├── init_delete_module.h │ ├── init_module.c │ ├── inject-nf.c │ ├── inject-nf.test │ ├── inode_of_sockfd.c │ ├── inotify.c │ ├── inotify_init1.c │ ├── int_0x80.c │ ├── interactive_block.test │ ├── ioctl.c │ ├── ioctl.test │ ├── ioctl_block.c │ ├── ioctl_dm-v.c │ ├── ioctl_dm.c │ ├── ioctl_evdev-success-v.c │ ├── ioctl_evdev-success-v.test │ ├── ioctl_evdev-success.c │ ├── ioctl_evdev-success.test │ ├── ioctl_evdev-v.c │ ├── ioctl_evdev.c │ ├── ioctl_inotify.c │ ├── ioctl_kvm_run-v.c │ ├── ioctl_kvm_run.c │ ├── ioctl_kvm_run_auxstr_vcpu.c │ ├── ioctl_kvm_run_common.c │ ├── ioctl_loop-nv.c │ ├── ioctl_loop-v.c │ ├── ioctl_loop.c │ ├── ioctl_mtd.c │ ├── ioctl_nbd.c │ ├── ioctl_nsfs.c │ ├── ioctl_perf-success.c │ ├── ioctl_perf-success.test │ ├── ioctl_perf.c │ ├── ioctl_ptp.c │ ├── ioctl_random.c │ ├── ioctl_rtc-v.c │ ├── ioctl_rtc.c │ ├── ioctl_scsi.c │ ├── ioctl_sg_io_v3.c │ ├── ioctl_sg_io_v4.c │ ├── ioctl_sock_gifconf.c │ ├── ioctl_uffdio.c │ ├── ioctl_v4l2.c │ ├── ioperm.c │ ├── iopl.c │ ├── ioprio.c │ ├── ip_mreq.c │ ├── ipc.c │ ├── ipc.sh │ ├── ipc_msg-Xabbrev.c │ ├── ipc_msg-Xraw.c │ ├── ipc_msg-Xverbose.c │ ├── ipc_msg.c │ ├── ipc_msgbuf-Xabbrev.c │ ├── ipc_msgbuf-Xraw.c │ ├── ipc_msgbuf-Xverbose.c │ ├── ipc_msgbuf.c │ ├── ipc_msgbuf.test │ ├── ipc_sem-Xabbrev.c │ ├── ipc_sem-Xraw.c │ ├── ipc_sem-Xverbose.c │ ├── ipc_sem.c │ ├── ipc_shm-Xabbrev.c │ ├── ipc_shm-Xraw.c │ ├── ipc_shm-Xverbose.c │ ├── ipc_shm.c │ ├── is_linux_mips_n64.c │ ├── kcmp-y.c │ ├── kcmp.c │ ├── kern_features-fault.test │ ├── kern_features.c │ ├── kernel_version-Xabbrev.c │ ├── kernel_version-Xraw.c │ ├── kernel_version-Xverbose.c │ ├── kernel_version.c │ ├── kexec_file_load.c │ ├── kexec_load.c │ ├── keyctl-Xabbrev.c │ ├── keyctl-Xraw.c │ ├── keyctl-Xverbose.c │ ├── keyctl.c │ ├── kill.c │ ├── ksysent.c │ ├── ksysent.sed │ ├── ksysent.test │ ├── lchown.c │ ├── lchown32.c │ ├── libmmsg.c │ ├── libsocketcall.c │ ├── link.c │ ├── linkat.c │ ├── list_sigaction_signum.c │ ├── llseek.c │ ├── llseek.test │ ├── localtime.c │ ├── localtime.test │ ├── lookup_dcookie.c │ ├── lseek.c │ ├── lseek.test │ ├── lstat.c │ ├── lstat64.c │ ├── lstatx.c │ ├── madvise.c │ ├── match.awk │ ├── mbind.c │ ├── membarrier.c │ ├── memfd_create-Xabbrev.c │ ├── memfd_create-Xraw.c │ ├── memfd_create-Xverbose.c │ ├── memfd_create.c │ ├── migrate_pages.c │ ├── mincore.c │ ├── mkdir.c │ ├── mkdirat.c │ ├── mknod.c │ ├── mknodat.c │ ├── mlock.c │ ├── mlock2.c │ ├── mlockall.c │ ├── mmap-Xabbrev.c │ ├── mmap-Xraw.c │ ├── mmap-Xverbose.c │ ├── mmap.c │ ├── mmap.test │ ├── mmap64-Xabbrev.c │ ├── mmap64-Xraw.c │ ├── mmap64-Xverbose.c │ ├── mmap64.c │ ├── mmsg-silent.c │ ├── mmsg.c │ ├── mmsg_name-v.c │ ├── mmsg_name.c │ ├── modify_ldt.c │ ├── mount-Xabbrev.c │ ├── mount-Xraw.c │ ├── mount-Xverbose.c │ ├── mount.c │ ├── move_pages.c │ ├── mq.c │ ├── mq_sendrecv-read.c │ ├── mq_sendrecv-write.c │ ├── mq_sendrecv.c │ ├── msg_control-v.c │ ├── msg_control.c │ ├── msg_name.c │ ├── munlockall.c │ ├── nanosleep.c │ ├── net-accept-connect.c │ ├── net-icmp_filter.c │ ├── net-packet_mreq.c │ ├── net-sockaddr.c │ ├── net-tpacket_req.c │ ├── net-tpacket_stats-success.c │ ├── net-tpacket_stats-success.test │ ├── net-tpacket_stats.c │ ├── net-y-unix.c │ ├── net-y-unix.test │ ├── net-yy-inet.c │ ├── net-yy-inet.test │ ├── net-yy-inet6.c │ ├── net-yy-netlink.c │ ├── net-yy-netlink.test │ ├── net-yy-unix.c │ ├── net-yy-unix.test │ ├── net.expected │ ├── net.test │ ├── netlink_audit.c │ ├── netlink_crypto.c │ ├── netlink_generic.c │ ├── netlink_inet_diag.c │ ├── netlink_kobject_uevent.c │ ├── netlink_netfilter.c │ ├── netlink_netlink_diag.c │ ├── netlink_protocol.c │ ├── netlink_route.c │ ├── netlink_selinux.c │ ├── netlink_sock_diag-v.sh │ ├── netlink_sock_diag.c │ ├── netlink_sock_diag.test │ ├── netlink_unix_diag.c │ ├── netlink_xfrm.c │ ├── newfstatat.c │ ├── nfnetlink_acct.c │ ├── nfnetlink_cthelper.c │ ├── nfnetlink_ctnetlink.c │ ├── nfnetlink_ctnetlink_exp.c │ ├── nfnetlink_cttimeout.c │ ├── nfnetlink_ipset.c │ ├── nfnetlink_nft_compat.c │ ├── nfnetlink_nftables.c │ ├── nfnetlink_osf.c │ ├── nfnetlink_queue.c │ ├── nfnetlink_ulog.c │ ├── nlattr.c │ ├── nlattr_br_port_msg.c │ ├── nlattr_crypto_user_alg.c │ ├── nlattr_dcbmsg.c │ ├── nlattr_fib_rule_hdr.c │ ├── nlattr_ifaddrlblmsg.c │ ├── nlattr_ifaddrmsg.c │ ├── nlattr_ifinfomsg.c │ ├── nlattr_ifla.h │ ├── nlattr_ifla_af_spec.c │ ├── nlattr_ifla_brport.c │ ├── nlattr_ifla_linkinfo.c │ ├── nlattr_ifla_port.c │ ├── nlattr_ifla_xdp.c │ ├── nlattr_inet_diag_msg.c │ ├── nlattr_inet_diag_req_compat.c │ ├── nlattr_inet_diag_req_v2.c │ ├── nlattr_mdba_mdb_entry.c │ ├── nlattr_mdba_router_port.c │ ├── nlattr_ndmsg.c │ ├── nlattr_ndtmsg.c │ ├── nlattr_netconfmsg.c │ ├── nlattr_netlink_diag_msg.c │ ├── nlattr_nlmsgerr.c │ ├── nlattr_packet_diag_msg.c │ ├── nlattr_rtgenmsg.c │ ├── nlattr_rtmsg.c │ ├── nlattr_smc_diag_msg.c │ ├── nlattr_tc_stats.c │ ├── nlattr_tca_stab.c │ ├── nlattr_tcamsg.c │ ├── nlattr_tcmsg.c │ ├── nlattr_unix_diag_msg.c │ ├── nsyscalls-d.c │ ├── nsyscalls-d.test │ ├── nsyscalls-nd.test │ ├── nsyscalls.c │ ├── nsyscalls.test │ ├── old_mmap-P.c │ ├── old_mmap-Xabbrev.c │ ├── old_mmap-Xraw.c │ ├── old_mmap-Xverbose.c │ ├── old_mmap-v-none.c │ ├── old_mmap.c │ ├── oldfstat.c │ ├── oldlstat.c │ ├── oldselect-P.c │ ├── oldselect-efault-P.c │ ├── oldselect-efault.c │ ├── oldselect.c │ ├── oldstat.c │ ├── open.c │ ├── openat.c │ ├── opipe.test │ ├── options-syntax.test │ ├── osf_utimes.c │ ├── overflowuid.c │ ├── pause.c │ ├── pc.c │ ├── pc.test │ ├── perf_event_open.c │ ├── perf_event_open_nonverbose.c │ ├── perf_event_open_unabbrev.c │ ├── personality-Xabbrev.c │ ├── personality-Xraw.c │ ├── personality-Xverbose.c │ ├── personality.c │ ├── personality.test │ ├── pipe.c │ ├── pipe.expected │ ├── pipe.test │ ├── pipe2.c │ ├── pipe_maxfd.c │ ├── pkey_alloc.c │ ├── pkey_free.c │ ├── pkey_mprotect.c │ ├── poll-P.c │ ├── poll-P.test │ ├── poll.c │ ├── poll.test │ ├── ppoll-P.c │ ├── ppoll-v.c │ ├── ppoll.c │ ├── prctl-arg2-intptr.c │ ├── prctl-arg2-intptr.test │ ├── prctl-dumpable.c │ ├── prctl-dumpable.test │ ├── prctl-name.c │ ├── prctl-name.test │ ├── prctl-no-args.c │ ├── prctl-no-args.test │ ├── prctl-pdeathsig.c │ ├── prctl-pdeathsig.test │ ├── prctl-seccomp-filter-v.c │ ├── prctl-seccomp-filter-v.test │ ├── prctl-seccomp-strict.c │ ├── prctl-seccomp-strict.test │ ├── prctl-securebits.c │ ├── prctl-securebits.test │ ├── prctl-spec-inject.c │ ├── prctl-spec-inject.test │ ├── prctl-tid_address.c │ ├── prctl-tid_address.test │ ├── prctl-tsc.c │ ├── prctl-tsc.test │ ├── pread64-pwrite64.c │ ├── preadv-pwritev.c │ ├── preadv.c │ ├── preadv2-pwritev2.c │ ├── print_maxfd.c │ ├── print_quoted_string.c │ ├── print_time.c │ ├── print_user_desc.c │ ├── printflags.c │ ├── printpath-umovestr-legacy.test │ ├── printpath-umovestr-peekdata.c │ ├── printpath-umovestr-undumpable.c │ ├── printpath-umovestr.c │ ├── printstr.c │ ├── printstrn-umoven-legacy.test │ ├── printstrn-umoven-peekdata.c │ ├── printstrn-umoven-undumpable.c │ ├── printstrn-umoven.c │ ├── printxval.c │ ├── prlimit64.c │ ├── process_vm_readv.c │ ├── process_vm_readv_writev.c │ ├── process_vm_writev.c │ ├── pselect6.c │ ├── ptrace.c │ ├── pure_executables.list │ ├── pwritev.c │ ├── qual_fault-exit_group.expected │ ├── qual_fault-exit_group.test │ ├── qual_fault-syntax.test │ ├── qual_fault-syscall.test │ ├── qual_fault.c │ ├── qual_fault.test │ ├── qual_inject-error-signal-syscall.test │ ├── qual_inject-error-signal.c │ ├── qual_inject-error-signal.expected │ ├── qual_inject-error-signal.test │ ├── qual_inject-retval-syscall.test │ ├── qual_inject-retval.c │ ├── qual_inject-retval.test │ ├── qual_inject-signal-syscall.test │ ├── qual_inject-signal.c │ ├── qual_inject-signal.expected │ ├── qual_inject-signal.test │ ├── qual_inject-syntax.test │ ├── qual_signal.c │ ├── qual_signal.test │ ├── qual_syscall.test │ ├── qualify_personality.sh │ ├── qualify_personality_empty.in │ ├── quotactl-success-v.c │ ├── quotactl-success-v.test │ ├── quotactl-success.c │ ├── quotactl-success.test │ ├── quotactl-v.c │ ├── quotactl-xfs-success-v.c │ ├── quotactl-xfs-success-v.test │ ├── quotactl-xfs-success.c │ ├── quotactl-xfs-success.test │ ├── quotactl-xfs-v.c │ ├── quotactl-xfs.c │ ├── quotactl.c │ ├── quotactl.h │ ├── read-write.c │ ├── readahead.c │ ├── readdir.c │ ├── readlink.c │ ├── readlinkat.c │ ├── readv.c │ ├── readv.test │ ├── reboot.c │ ├── recvfrom.c │ ├── recvmmsg-timeout.c │ ├── recvmsg.c │ ├── redirect-fds.c │ ├── redirect-fds.test │ ├── redirect.test │ ├── regex.in │ ├── remap_file_pages-Xabbrev.c │ ├── remap_file_pages-Xraw.c │ ├── remap_file_pages-Xverbose.c │ ├── remap_file_pages.c │ ├── rename.c │ ├── renameat.c │ ├── renameat2.c │ ├── request_key.c │ ├── restart_syscall.c │ ├── restart_syscall.test │ ├── riscv_flush_icache.c │ ├── rmdir.c │ ├── rt_sigaction.awk │ ├── rt_sigaction.c │ ├── rt_sigaction.test │ ├── rt_sigpending.c │ ├── rt_sigprocmask.c │ ├── rt_sigqueueinfo.c │ ├── rt_sigreturn.c │ ├── rt_sigsuspend.c │ ├── rt_sigtimedwait.c │ ├── rt_tgsigqueueinfo.c │ ├── run.sh │ ├── run_expect_termsig.c │ ├── s390_guarded_storage-v.c │ ├── s390_guarded_storage.c │ ├── s390_pci_mmio_read_write.c │ ├── s390_runtime_instr.c │ ├── s390_sthyi-v.c │ ├── s390_sthyi.c │ ├── sched.in │ ├── sched_get_priority_mxx.c │ ├── sched_rr_get_interval.c │ ├── sched_xetaffinity.c │ ├── sched_xetattr.c │ ├── sched_xetparam.c │ ├── sched_xetscheduler.c │ ├── sched_yield.c │ ├── scm_rights-fd.test │ ├── scm_rights.c │ ├── scno_tampering.sh │ ├── seccomp-filter-v.c │ ├── seccomp-filter.c │ ├── seccomp-strict.c │ ├── seccomp-strict.test │ ├── seccomp_get_action_avail.c │ ├── select-P.c │ ├── select.c │ ├── semop.c │ ├── sendfile.c │ ├── sendfile64.c │ ├── set_mempolicy.c │ ├── set_ptracer_any.c │ ├── set_sigblock.c │ ├── set_sigign.c │ ├── setdomainname.c │ ├── setfsgid.c │ ├── setfsgid32.c │ ├── setfsugid.c │ ├── setfsuid.c │ ├── setfsuid32.c │ ├── setgid.c │ ├── setgid32.c │ ├── setgroups.c │ ├── setgroups32.c │ ├── sethostname.c │ ├── setns.c │ ├── setregid.c │ ├── setregid32.c │ ├── setresgid.c │ ├── setresgid32.c │ ├── setresugid.c │ ├── setresuid.c │ ├── setresuid32.c │ ├── setreugid.c │ ├── setreuid.c │ ├── setreuid32.c │ ├── setrlimit.c │ ├── setugid.c │ ├── setuid.c │ ├── setuid32.c │ ├── shmxt.c │ ├── shutdown.c │ ├── sigaction.c │ ├── sigaltstack.c │ ├── sigaltstack.expected │ ├── sigaltstack.test │ ├── sigblock.test │ ├── sigign.test │ ├── siginfo.c │ ├── signal.c │ ├── signal2name.c │ ├── signal_receive.c │ ├── signalfd4.c │ ├── sigpending.c │ ├── sigprocmask.c │ ├── sigreturn.c │ ├── sigsuspend.c │ ├── skip_unavailable.c │ ├── sleep.c │ ├── so_linger.c │ ├── so_peercred-Xabbrev.c │ ├── so_peercred-Xraw.c │ ├── so_peercred-Xverbose.c │ ├── so_peercred.c │ ├── sock_filter-v-Xabbrev.c │ ├── sock_filter-v-Xraw.c │ ├── sock_filter-v-Xverbose.c │ ├── sock_filter-v.c │ ├── socketcall.c │ ├── sockname.c │ ├── sockopt-sol_netlink.c │ ├── splice.c │ ├── sprintrc.c │ ├── stack-fcall-0.c │ ├── stack-fcall-1.c │ ├── stack-fcall-2.c │ ├── stack-fcall-3.c │ ├── stack-fcall-mangled-0.c │ ├── stack-fcall-mangled-1.c │ ├── stack-fcall-mangled-2.c │ ├── stack-fcall-mangled-3.c │ ├── stack-fcall-mangled.c │ ├── stack-fcall.c │ ├── stack-fcall.h │ ├── stat.c │ ├── stat64.c │ ├── statfs.c │ ├── statfs64.c │ ├── statx.c │ ├── strace-C.expected │ ├── strace-C.test │ ├── strace-E.expected │ ├── strace-E.test │ ├── strace-S.test │ ├── strace-T.expected │ ├── strace-T.test │ ├── strace-V.test │ ├── strace-ff.expected │ ├── strace-ff.test │ ├── strace-k-demangle.expected │ ├── strace-k-demangle.test │ ├── strace-k.expected │ ├── strace-k.test │ ├── strace-r.expected │ ├── strace-r.test │ ├── strace-t.test │ ├── strace-tt.test │ ├── strace-ttt.test │ ├── strace.supp │ ├── sun_path.expected │ ├── sun_path.test │ ├── swap.c │ ├── sxetmask.c │ ├── symlink.c │ ├── symlinkat.c │ ├── sync.c │ ├── sync_file_range.c │ ├── sync_file_range2.c │ ├── syntax.sh │ ├── sysinfo.c │ ├── syslog.c │ ├── tail_alloc.c │ ├── tee.c │ ├── termsig.test │ ├── test_netlink.h │ ├── test_nlattr.h │ ├── test_printpath.c │ ├── test_printstrn.c │ ├── test_ucopy.c │ ├── test_ucopy.h │ ├── tests.h │ ├── threads-execve.c │ ├── threads-execve.test │ ├── time.c │ ├── timer_create.c │ ├── timer_xettime.c │ ├── timerfd_xettime.c │ ├── times-fail.c │ ├── times.c │ ├── tprintf.c │ ├── trace_fstat.in │ ├── trace_fstatfs.in │ ├── trace_lstat.in │ ├── trace_personality_32.in │ ├── trace_personality_64.in │ ├── trace_personality_regex_32.in │ ├── trace_personality_regex_64.in │ ├── trace_personality_regex_x32.in │ ├── trace_personality_x32.in │ ├── trace_question.in │ ├── trace_stat.in │ ├── trace_stat_like.in │ ├── trace_statfs.in │ ├── trace_statfs_like.in │ ├── truncate.c │ ├── truncate64.c │ ├── ugetrlimit.c │ ├── uio.c │ ├── uio.expected │ ├── uio.test │ ├── umask.c │ ├── umode_t.c │ ├── umount.c │ ├── umount.test │ ├── umount2.c │ ├── umount2.test │ ├── umoven-illptr.c │ ├── umovestr-illptr.c │ ├── umovestr.c │ ├── umovestr.expected │ ├── umovestr.test │ ├── umovestr2.c │ ├── umovestr2.test │ ├── umovestr3.c │ ├── uname.c │ ├── uname.test │ ├── unblock_reset_raise.c │ ├── unix-pair-send-recv.c │ ├── unix-pair-send-recv.expected │ ├── unix-pair-send-recv.test │ ├── unix-pair-sendto-recvfrom.c │ ├── unix-pair-sendto-recvfrom.expected │ ├── unix-pair-sendto-recvfrom.test │ ├── unlink.c │ ├── unlinkat.c │ ├── unshare.c │ ├── userfaultfd.c │ ├── ustat.c │ ├── utime.c │ ├── utimensat-Xabbrev.c │ ├── utimensat-Xraw.c │ ├── utimensat-Xverbose.c │ ├── utimensat.c │ ├── utimes.c │ ├── vfork-f.c │ ├── vhangup.c │ ├── vmsplice.c │ ├── wait4-v.c │ ├── wait4.c │ ├── waitid-v.c │ ├── waitid.c │ ├── waitpid.c │ ├── xattr-strings.c │ ├── xattr.c │ ├── xchownx.c │ ├── xet_robust_list.c │ ├── xet_thread_area_x86.c │ ├── xet_thread_area_x86.test │ ├── xetitimer.c │ ├── xetpgid.c │ ├── xetpriority.c │ ├── xettimeofday.c │ ├── xgetrlimit.c │ ├── xselect.c │ ├── xstatfs.c │ ├── xstatfs64.c │ ├── xstatfsx.c │ ├── xstatx.c │ ├── xutimes.c │ └── zeroargc.c ├── time.c ├── times.c ├── trace_event.h ├── truncate.c ├── ubi.c ├── ucopy.c ├── uid.c ├── uid16.c ├── umask.c ├── umount.c ├── uname.c ├── unwind-libdw.c ├── unwind-libunwind.c ├── unwind.c ├── unwind.h ├── upeek.c ├── upoke.c ├── userfaultfd.c ├── ustat.c ├── util.c ├── utime.c ├── utimes.c ├── v4l2.c ├── wait.c ├── xattr.c ├── xfs_quota_stat.h ├── xlat.c ├── xlat.h ├── xlat │ ├── access_flags.in │ ├── addrfams.in │ ├── adjtimex_modes.in │ ├── adjtimex_state.in │ ├── adjtimex_status.in │ ├── advise.in │ ├── af_packet_types.in │ ├── af_packet_versions.in │ ├── aio_cmds.in │ ├── archvals.in │ ├── arp_hardware_types.in │ ├── at_flags.in │ ├── at_statx_sync_types.in │ ├── atomic_ops.in │ ├── audit_arch.in │ ├── ax25_protocols.in │ ├── baud_options.in │ ├── bdaddr_types.in │ ├── blkpg_ops.in │ ├── block_ioctl_cmds.in │ ├── bluetooth_l2_cid.in │ ├── bluetooth_l2_psm.in │ ├── bootflags1.in │ ├── bootflags2.in │ ├── bootflags3.in │ ├── bpf_attach_flags.in │ ├── bpf_attach_type.in │ ├── bpf_class.in │ ├── bpf_commands.in │ ├── bpf_file_mode_flags.in │ ├── bpf_map_flags.in │ ├── bpf_map_types.in │ ├── bpf_map_update_elem_flags.in │ ├── bpf_miscop.in │ ├── bpf_mode.in │ ├── bpf_op_alu.in │ ├── bpf_op_jmp.in │ ├── bpf_prog_flags.in │ ├── bpf_prog_types.in │ ├── bpf_query_flags.in │ ├── bpf_rval.in │ ├── bpf_size.in │ ├── bpf_src.in │ ├── bsg_flags.in │ ├── bsg_protocol.in │ ├── bsg_subprotocol.in │ ├── bt_protocols.in │ ├── btrfs_balance_args.in │ ├── btrfs_balance_ctl_cmds.in │ ├── btrfs_balance_flags.in │ ├── btrfs_balance_state.in │ ├── btrfs_compress_types.in │ ├── btrfs_cont_reading_from_srcdev_mode.in │ ├── btrfs_defrag_flags.in │ ├── btrfs_dev_replace_cmds.in │ ├── btrfs_dev_replace_results.in │ ├── btrfs_dev_replace_state.in │ ├── btrfs_dev_stats_flags.in │ ├── btrfs_dev_stats_values.in │ ├── btrfs_features_compat.in │ ├── btrfs_features_compat_ro.in │ ├── btrfs_features_incompat.in │ ├── btrfs_key_types.in │ ├── btrfs_logical_ino_args_flags.in │ ├── btrfs_qgroup_ctl_cmds.in │ ├── btrfs_qgroup_inherit_flags.in │ ├── btrfs_qgroup_limit_flags.in │ ├── btrfs_qgroup_status_flags.in │ ├── btrfs_scrub_flags.in │ ├── btrfs_send_flags.in │ ├── btrfs_snap_flags_v2.in │ ├── btrfs_space_info_flags.in │ ├── btrfs_tree_objectids.in │ ├── cacheflush_scope.in │ ├── caif_protocols.in │ ├── can_protocols.in │ ├── cap.in │ ├── cap_mask0.in │ ├── cap_mask1.in │ ├── cap_version.in │ ├── clockflags.in │ ├── clocknames.in │ ├── clone_flags.in │ ├── cpuclocknames.in │ ├── crypto_nl_attrs.in │ ├── dcb_commands.in │ ├── delete_module_flags.in │ ├── dirent_types.in │ ├── dm_flags.in │ ├── ebpf_class.in │ ├── ebpf_mode.in │ ├── ebpf_op_alu.in │ ├── ebpf_op_jmp.in │ ├── ebpf_regs.in │ ├── ebpf_size.in │ ├── efd_flags.in │ ├── epollctls.in │ ├── epollevents.in │ ├── epollflags.in │ ├── ethernet_protocols.in │ ├── evdev_abs.in │ ├── evdev_autorepeat.in │ ├── evdev_ev.in │ ├── evdev_ff_status.in │ ├── evdev_ff_types.in │ ├── evdev_keycode.in │ ├── evdev_leds.in │ ├── evdev_misc.in │ ├── evdev_mtslots.in │ ├── evdev_prop.in │ ├── evdev_relative_axes.in │ ├── evdev_snd.in │ ├── evdev_switch.in │ ├── f_owner_types.in │ ├── f_seals.in │ ├── falloc_flags.in │ ├── fan_classes.in │ ├── fan_event_flags.in │ ├── fan_init_flags.in │ ├── fan_mark_flags.in │ ├── fcntlcmds.in │ ├── fdflags.in │ ├── fib_rule_actions.in │ ├── fib_rule_flags.in │ ├── fiemap_extent_flags.in │ ├── fiemap_flags.in │ ├── flockcmds.in │ ├── fsmagic.in │ ├── futexbitset.in │ ├── futexops.in │ ├── futexwakecmps.in │ ├── futexwakeops.in │ ├── gen.sh │ ├── getrandom_flags.in │ ├── getsock_ip_options.in │ ├── getsock_ipv6_options.in │ ├── getsock_options.in │ ├── hci_channels.in │ ├── hw_breakpoint_len.in │ ├── hw_breakpoint_type.in │ ├── icmpfilterflags.in │ ├── if_dqblk_valid.in │ ├── if_dqinfo_flags.in │ ├── if_dqinfo_valid.in │ ├── ifaddrflags.in │ ├── iffflags.in │ ├── in6_addr_gen_mode.in │ ├── inet6_devconf_indices.in │ ├── inet6_if_flags.in │ ├── inet_devconf_indices.in │ ├── inet_diag_attrs.in │ ├── inet_diag_bytecodes.in │ ├── inet_diag_extended_flags.in │ ├── inet_diag_req_attrs.in │ ├── inet_protocols.in │ ├── inotify_flags.in │ ├── inotify_init_flags.in │ ├── ioctl_dirs.in │ ├── ioprio_class.in │ ├── ioprio_who.in │ ├── ip_cmsg_types.in │ ├── ip_type_of_services.in │ ├── ipc_msg_flags.in │ ├── ipc_private.in │ ├── ipccalls.in │ ├── irda_protocols.in │ ├── isdn_protocols.in │ ├── itimer_which.in │ ├── kcm_protocols.in │ ├── kcmp_types.in │ ├── kexec_arch_values.in │ ├── kexec_file_load_flags.in │ ├── kexec_load_flags.in │ ├── key_perms.in │ ├── key_reqkeys.in │ ├── key_spec.in │ ├── keyctl_commands.in │ ├── kvm_cap.in │ ├── kvm_cpuid_flags.in │ ├── kvm_exit_reason.in │ ├── kvm_mem_flags.in │ ├── lockfcmds.in │ ├── loop_cmds.in │ ├── loop_crypt_type_options.in │ ├── loop_flags_options.in │ ├── lwtunnel_encap_types.in │ ├── madvise_cmds.in │ ├── mbindflags.in │ ├── mctl_sync.in │ ├── mdb_flags.in │ ├── mdb_states.in │ ├── membarrier_cmds.in │ ├── memfd_create_flags.in │ ├── mempolicyflags.in │ ├── mlock_flags.in │ ├── mlockall_flags.in │ ├── mmap_flags.in │ ├── mmap_prot.in │ ├── modem_flags.in │ ├── modetypes.in │ ├── module_init_flags.in │ ├── mount_flags.in │ ├── move_pages_flags.in │ ├── mq_attr_flags.in │ ├── mremap_flags.in │ ├── msg_flags.in │ ├── msgctl_flags.in │ ├── mtd_file_mode_options.in │ ├── mtd_flags_options.in │ ├── mtd_mode_options.in │ ├── mtd_nandecc_options.in │ ├── mtd_otp_options.in │ ├── mtd_type_options.in │ ├── multicast_router_types.in │ ├── name_to_handle_at_flags.in │ ├── nbd_ioctl_cmds.in │ ├── nbd_ioctl_flags.in │ ├── neighbor_cache_entry_flags.in │ ├── neighbor_cache_entry_states.in │ ├── netfilter_versions.in │ ├── netlink_ack_flags.in │ ├── netlink_delete_flags.in │ ├── netlink_diag_attrs.in │ ├── netlink_diag_show.in │ ├── netlink_flags.in │ ├── netlink_get_flags.in │ ├── netlink_new_flags.in │ ├── netlink_protocols.in │ ├── netlink_sk_meminfo_indices.in │ ├── netlink_socket_flags.in │ ├── netlink_states.in │ ├── netlink_types.in │ ├── nf_acct_msg_types.in │ ├── nf_cthelper_msg_types.in │ ├── nf_ctnetlink_exp_msg_types.in │ ├── nf_ctnetlink_msg_types.in │ ├── nf_cttimeout_msg_types.in │ ├── nf_ipset_msg_types.in │ ├── nf_nft_compat_msg_types.in │ ├── nf_nftables_msg_types.in │ ├── nf_osf_msg_types.in │ ├── nf_queue_msg_types.in │ ├── nf_ulog_msg_types.in │ ├── nfc_protocols.in │ ├── nl_audit_types.in │ ├── nl_crypto_types.in │ ├── nl_netfilter_msg_types.in │ ├── nl_netfilter_subsys_ids.in │ ├── nl_route_types.in │ ├── nl_selinux_types.in │ ├── nl_sock_diag_types.in │ ├── nl_xfrm_types.in │ ├── nlmsgerr_attrs.in │ ├── notifyflags.in │ ├── nt_descriptor_types.in │ ├── numa_node.in │ ├── open_access_modes.in │ ├── open_mode_flags.in │ ├── packet_diag_attrs.in │ ├── packet_diag_info_flags.in │ ├── packet_diag_show.in │ ├── packet_mreq_type.in │ ├── perf_attr_size.in │ ├── perf_branch_sample_type.in │ ├── perf_event_open_flags.in │ ├── perf_event_read_format.in │ ├── perf_event_sample_format.in │ ├── perf_hw_cache_id.in │ ├── perf_hw_cache_op_id.in │ ├── perf_hw_cache_op_result_id.in │ ├── perf_hw_id.in │ ├── perf_ioctl_cmds.in │ ├── perf_ioctl_flags.in │ ├── perf_sw_ids.in │ ├── perf_type_id.in │ ├── personality_flags.in │ ├── personality_types.in │ ├── phonet_protocols.in │ ├── pkey_access.in │ ├── policies.in │ ├── pollflags.in │ ├── pr_cap_ambient.in │ ├── pr_dumpable.in │ ├── pr_fp_mode.in │ ├── pr_mce_kill.in │ ├── pr_mce_kill_policy.in │ ├── pr_set_mm.in │ ├── pr_spec_cmds.in │ ├── pr_spec_get_store_bypass_flags.in │ ├── pr_spec_set_store_bypass_flags.in │ ├── pr_sve_vl_flags.in │ ├── pr_tsc.in │ ├── pr_unalign_flags.in │ ├── prctl_options.in │ ├── priorities.in │ ├── ptp_flags_options.in │ ├── ptrace_cmds.in │ ├── ptrace_events.in │ ├── ptrace_peeksiginfo_flags.in │ ├── ptrace_setoptions_flags.in │ ├── quota_formats.in │ ├── quotacmds.in │ ├── quotatypes.in │ ├── random_ioctl_cmds.in │ ├── rename_flags.in │ ├── resource_flags.in │ ├── resources.in │ ├── riscv_flush_icache_flags.in │ ├── route_nexthop_flags.in │ ├── routing_flags.in │ ├── routing_protocols.in │ ├── routing_scopes.in │ ├── routing_table_ids.in │ ├── routing_types.in │ ├── rtnl_addr_attrs.in │ ├── rtnl_addrlabel_attrs.in │ ├── rtnl_dcb_attrs.in │ ├── rtnl_ifla_af_spec_inet6_attrs.in │ ├── rtnl_ifla_af_spec_inet_attrs.in │ ├── rtnl_ifla_brport_attrs.in │ ├── rtnl_ifla_events.in │ ├── rtnl_ifla_info_attrs.in │ ├── rtnl_ifla_info_data_bridge_attrs.in │ ├── rtnl_ifla_info_data_tun_attrs.in │ ├── rtnl_ifla_port_attrs.in │ ├── rtnl_ifla_vf_port_attrs.in │ ├── rtnl_ifla_xdp_attached_mode.in │ ├── rtnl_ifla_xdp_attrs.in │ ├── rtnl_link_attrs.in │ ├── rtnl_mdb_attrs.in │ ├── rtnl_mdba_mdb_attrs.in │ ├── rtnl_mdba_mdb_eattr_attrs.in │ ├── rtnl_mdba_mdb_entry_attrs.in │ ├── rtnl_mdba_router_attrs.in │ ├── rtnl_mdba_router_pattr_attrs.in │ ├── rtnl_neigh_attrs.in │ ├── rtnl_neightbl_attrs.in │ ├── rtnl_neightbl_parms_attrs.in │ ├── rtnl_netconf_attrs.in │ ├── rtnl_nsid_attrs.in │ ├── rtnl_route_attrs.in │ ├── rtnl_rta_metrics_attrs.in │ ├── rtnl_rule_attrs.in │ ├── rtnl_tc_action_attrs.in │ ├── rtnl_tc_attrs.in │ ├── rtnl_tca_stab_attrs.in │ ├── rtnl_tca_stats_attrs.in │ ├── rwf_flags.in │ ├── s390_guarded_storage_commands.in │ ├── s390_runtime_instr_commands.in │ ├── s390_sthyi_function_codes.in │ ├── sa_handler_values.in │ ├── sched_flags.in │ ├── schedulers.in │ ├── scmvals.in │ ├── scsi_sg_commands.in │ ├── secbits.in │ ├── seccomp_filter_flags.in │ ├── seccomp_mode.in │ ├── seccomp_ops.in │ ├── seccomp_ret_action.in │ ├── semctl_flags.in │ ├── semop_flags.in │ ├── setns_types.in │ ├── setsock_ip_options.in │ ├── setsock_ipv6_options.in │ ├── setsock_options.in │ ├── sfd_flags.in │ ├── sg_io_dxfer_direction.in │ ├── sg_io_flags.in │ ├── sg_io_info.in │ ├── sg_scsi_reset.in │ ├── shm_flags.in │ ├── shm_resource_flags.in │ ├── shmctl_flags.in │ ├── shutdown_modes.in │ ├── sigact_flags.in │ ├── sigaltstack_flags.in │ ├── sigbus_codes.in │ ├── sigchld_codes.in │ ├── sigemt_codes.in │ ├── sigev_value.in │ ├── sigfpe_codes.in │ ├── sigill_codes.in │ ├── siginfo_codes.in │ ├── sigpoll_codes.in │ ├── sigprocmaskcmds.in │ ├── sigprof_codes.in │ ├── sigsegv_codes.in │ ├── sigsys_codes.in │ ├── sigtrap_codes.in │ ├── skf_ad.in │ ├── skf_off.in │ ├── smc_decl_codes.in │ ├── smc_diag_attrs.in │ ├── smc_diag_extended_flags.in │ ├── smc_diag_mode.in │ ├── smc_link_group_roles.in │ ├── smc_protocols.in │ ├── smc_states.in │ ├── snmp_icmp6_stats.in │ ├── snmp_ip_stats.in │ ├── sock_alg_options.in │ ├── sock_ax25_options.in │ ├── sock_bluetooth_options.in │ ├── sock_caif_options.in │ ├── sock_dccp_options.in │ ├── sock_ip_options.in │ ├── sock_ipv6_options.in │ ├── sock_ipx_options.in │ ├── sock_irda_options.in │ ├── sock_iucv_options.in │ ├── sock_kcm_options.in │ ├── sock_llc_options.in │ ├── sock_netlink_options.in │ ├── sock_nfcllcp_options.in │ ├── sock_options.in │ ├── sock_packet_options.in │ ├── sock_pnp_options.in │ ├── sock_pppol2tp_options.in │ ├── sock_raw_options.in │ ├── sock_rds_options.in │ ├── sock_rxrpc_options.in │ ├── sock_sctp_options.in │ ├── sock_shutdown_flags.in │ ├── sock_tcp_options.in │ ├── sock_tipc_options.in │ ├── sock_tls_options.in │ ├── sock_type_flags.in │ ├── sock_udp_options.in │ ├── sock_xdp_options.in │ ├── socketcalls.in │ ├── socketlayers.in │ ├── socktypes.in │ ├── sparc_kern_features.in │ ├── splice_flags.in │ ├── sram_alloc_flags.in │ ├── statfs_flags.in │ ├── statx_attrs.in │ ├── statx_masks.in │ ├── swap_flags.in │ ├── sync_file_range_flags.in │ ├── sysctl_kern.in │ ├── sysctl_net.in │ ├── sysctl_net_core.in │ ├── sysctl_net_ipv4.in │ ├── sysctl_net_ipv4_conf.in │ ├── sysctl_net_ipv4_route.in │ ├── sysctl_net_ipv6.in │ ├── sysctl_net_ipv6_route.in │ ├── sysctl_net_unix.in │ ├── sysctl_root.in │ ├── sysctl_vm.in │ ├── syslog_action_type.in │ ├── sysmips_operations.in │ ├── tcflsh_options.in │ ├── tcp_state_flags.in │ ├── tcp_states.in │ ├── tcxonc_options.in │ ├── timerfdflags.in │ ├── tun_device_types.in │ ├── ubi_volume_props.in │ ├── ubi_volume_types.in │ ├── uffd_api_features.in │ ├── uffd_api_flags.in │ ├── uffd_copy_flags.in │ ├── uffd_flags.in │ ├── uffd_register_ioctl_flags.in │ ├── uffd_register_mode_flags.in │ ├── uffd_zeropage_flags.in │ ├── umount_flags.in │ ├── unix_diag_attrs.in │ ├── unix_diag_show.in │ ├── unshare_flags.in │ ├── usagewho.in │ ├── v4l2_buf_flags.in │ ├── v4l2_buf_types.in │ ├── v4l2_capture_modes.in │ ├── v4l2_colorspaces.in │ ├── v4l2_control_classes.in │ ├── v4l2_control_flags.in │ ├── v4l2_control_id_bases.in │ ├── v4l2_control_ids.in │ ├── v4l2_control_types.in │ ├── v4l2_device_capabilities_flags.in │ ├── v4l2_fields.in │ ├── v4l2_format_description_flags.in │ ├── v4l2_frameinterval_types.in │ ├── v4l2_framesize_types.in │ ├── v4l2_input_types.in │ ├── v4l2_memories.in │ ├── v4l2_pix_fmts.in │ ├── v4l2_sdr_fmts.in │ ├── v4l2_sliced_flags.in │ ├── v4l2_streaming_capabilities.in │ ├── v4l2_tuner_audmodes.in │ ├── v4l2_tuner_capabilities.in │ ├── v4l2_tuner_rxsubchanses.in │ ├── v4l2_tuner_types.in │ ├── v4l2_vbi_flags.in │ ├── wait4_options.in │ ├── waitid_types.in │ ├── whence_codes.in │ ├── xattrflags.in │ ├── xdp_flags.in │ ├── xfs_dqblk_flags.in │ └── xfs_quota_flags.in ├── xmalloc.c ├── xmalloc.h └── xstring.h └── truss ├── Makefile ├── count.c ├── decoder.c ├── events.c ├── events.h ├── truss.1 ├── truss.c └── truss.h /BUGS: -------------------------------------------------------------------------------- 1 | KNOWN KERNEL BUGS 2 | 3 | - attaching to a sleeping process, terminates it 4 | - stopped process with SIGSTOP/SIGTSTP/SIGTTIN/SIGTTOU does not process SIGCONT from other sources 5 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # $NetBSD$ 2 | 3 | SUBDIR= coredumper \ 4 | picotrace \ 5 | sigtracer singlestepper \ 6 | truss 7 | 8 | .include 9 | -------------------------------------------------------------------------------- /common/misc.h: -------------------------------------------------------------------------------- 1 | struct systab { 2 | const char *name; 3 | int value; 4 | }; 5 | 6 | extern struct systab errnos[100 + 1]; 7 | extern struct systab signals[64 + 1]; 8 | 9 | #define MAXERRNOS 100 10 | #define MAXSIGNALS 64 11 | -------------------------------------------------------------------------------- /minixdb/sample: -------------------------------------------------------------------------------- 1 | r 10 2 | y 3 | __sendrec b 4 | B 5 | c 6 | x 2 7 | t 8 | q 9 | 10 | -------------------------------------------------------------------------------- /strace/AUTHORS: -------------------------------------------------------------------------------- 1 | See the file CREDITS. Automake likes us to have this file called AUTHORS. 2 | -------------------------------------------------------------------------------- /strace/arch_defs.h: -------------------------------------------------------------------------------- 1 | /* Architecture-specific definitions. */ 2 | #ifndef STRACE_ARCH_DEFS_H 3 | #define STRACE_ARCH_DEFS_H 4 | 5 | #include "arch_defs_.h" 6 | #include "linux/arch_defs_.h" 7 | 8 | #endif /* !STRACE_ARCH_DEFS_H */ 9 | -------------------------------------------------------------------------------- /strace/bpf_fprog.h: -------------------------------------------------------------------------------- 1 | #ifndef STRACE_BPF_FPROG_H 2 | #define STRACE_BPF_FPROG_H 3 | 4 | struct bpf_fprog { 5 | unsigned short len; 6 | kernel_ulong_t filter; 7 | }; 8 | 9 | #endif /* !STRACE_BPF_FPROG_H */ 10 | -------------------------------------------------------------------------------- /strace/caps1.h: -------------------------------------------------------------------------------- 1 | CAP_MAC_OVERRIDE, 2 | CAP_MAC_ADMIN, 3 | CAP_SYSLOG, 4 | CAP_WAKE_ALARM, 5 | CAP_BLOCK_SUSPEND, 6 | CAP_AUDIT_READ, 7 | -------------------------------------------------------------------------------- /strace/chdir.c: -------------------------------------------------------------------------------- 1 | #include "defs.h" 2 | 3 | SYS_FUNC(chdir) 4 | { 5 | printpath(tcp, tcp->u_arg[0]); 6 | 7 | return RVAL_DECODED; 8 | } 9 | -------------------------------------------------------------------------------- /strace/debian/.gitignore: -------------------------------------------------------------------------------- 1 | /changelog 2 | -------------------------------------------------------------------------------- /strace/debian/compat: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /strace/debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /strace/debian/strace-udeb.install: -------------------------------------------------------------------------------- 1 | build-udeb/strace usr/bin 2 | -------------------------------------------------------------------------------- /strace/debian/strace.docs: -------------------------------------------------------------------------------- 1 | NEWS 2 | -------------------------------------------------------------------------------- /strace/debian/strace.examples: -------------------------------------------------------------------------------- 1 | strace-graph 2 | -------------------------------------------------------------------------------- /strace/debian/strace.install: -------------------------------------------------------------------------------- 1 | build/strace usr/bin 2 | strace-log-merge usr/bin 3 | -------------------------------------------------------------------------------- /strace/debian/strace.manpages: -------------------------------------------------------------------------------- 1 | build/strace.1 2 | build/strace-log-merge.1 3 | -------------------------------------------------------------------------------- /strace/debian/strace64.install: -------------------------------------------------------------------------------- 1 | build64/strace64 usr/bin 2 | -------------------------------------------------------------------------------- /strace/debian/strace64.manpages: -------------------------------------------------------------------------------- 1 | build64/strace64.1 2 | -------------------------------------------------------------------------------- /strace/debian/watch: -------------------------------------------------------------------------------- 1 | version=3 2 | opts=pgpsigurlmangle=s/$/.asc/,uversionmangle=s/-/./g http://sf.net/strace/strace-([[:digit:].-]*)\.tar\.xz 3 | -------------------------------------------------------------------------------- /strace/empty.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krytarowski/picotrace/b2b7d9922f189021dff289d306413058b594811d/strace/empty.h -------------------------------------------------------------------------------- /strace/fstatfs.c: -------------------------------------------------------------------------------- 1 | #include "defs.h" 2 | 3 | SYS_FUNC(fstatfs) 4 | { 5 | if (entering(tcp)) { 6 | printfd(tcp, tcp->u_arg[0]); 7 | tprints(", "); 8 | } else { 9 | print_struct_statfs(tcp, tcp->u_arg[1]); 10 | } 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /strace/generate_sen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | echo 'enum {' 4 | echo 'SEN_printargs = 0,' 5 | sed -r -n '/printargs/! s/.*SEN\(([^)]+)\).*/\1/p' | 6 | LC_COLLATE=C sort -u | 7 | sed 's/.*/SEN_&,/' 8 | echo '};' 9 | -------------------------------------------------------------------------------- /strace/getcpu.c: -------------------------------------------------------------------------------- 1 | #include "defs.h" 2 | 3 | SYS_FUNC(getcpu) 4 | { 5 | if (exiting(tcp)) { 6 | printnum_int(tcp, tcp->u_arg[0], "%u"); 7 | tprints(", "); 8 | printnum_int(tcp, tcp->u_arg[1], "%u"); 9 | tprints(", "); 10 | printaddr(tcp->u_arg[2]); 11 | } 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /strace/getpagesize.c: -------------------------------------------------------------------------------- 1 | #include "defs.h" 2 | 3 | SYS_FUNC(getpagesize) 4 | { 5 | return RVAL_DECODED | RVAL_HEX; 6 | } 7 | -------------------------------------------------------------------------------- /strace/ioperm.c: -------------------------------------------------------------------------------- 1 | #include "defs.h" 2 | 3 | SYS_FUNC(ioperm) 4 | { 5 | tprintf("%#" PRI_klx ", %#" PRI_klx ", %d", 6 | tcp->u_arg[0], tcp->u_arg[1], (int) tcp->u_arg[2]); 7 | 8 | return RVAL_DECODED; 9 | } 10 | -------------------------------------------------------------------------------- /strace/iopl.c: -------------------------------------------------------------------------------- 1 | #include "defs.h" 2 | 3 | SYS_FUNC(iopl) 4 | { 5 | tprintf("%d", (int) tcp->u_arg[0]); 6 | 7 | return RVAL_DECODED; 8 | } 9 | -------------------------------------------------------------------------------- /strace/linux/32/ioctls_inc.h: -------------------------------------------------------------------------------- 1 | #if defined M68K 2 | # include "32/ioctls_inc_align16.h" 3 | #elif defined X86_64 || defined X32 \ 4 | || SIZEOF_STRUCT_I64_I32 < SIZEOF_LONG_LONG * 2 5 | # include "32/ioctls_inc_align32.h" 6 | #else 7 | # include "32/ioctls_inc_align64.h" 8 | #endif 9 | -------------------------------------------------------------------------------- /strace/linux/aarch64/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_OLD_MMAP 1 2 | #define HAVE_ARCH_OLD_SELECT 1 3 | #define HAVE_ARCH_UID16_SYSCALLS 1 4 | #define SUPPORTED_PERSONALITIES 2 5 | -------------------------------------------------------------------------------- /strace/linux/aarch64/arch_sigreturn.c: -------------------------------------------------------------------------------- 1 | #include "arm/arch_sigreturn.c" 2 | -------------------------------------------------------------------------------- /strace/linux/aarch64/ioctls_arch1.h: -------------------------------------------------------------------------------- 1 | #include "arm/ioctls_arch0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/aarch64/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "64/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/aarch64/ioctls_inc1.h: -------------------------------------------------------------------------------- 1 | #include "arm/ioctls_inc0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/aarch64/nr_prefix.c: -------------------------------------------------------------------------------- 1 | #include "../arm/nr_prefix.c" 2 | -------------------------------------------------------------------------------- /strace/linux/aarch64/syscallent1.h: -------------------------------------------------------------------------------- 1 | #include "../arm/syscallent.h" 2 | -------------------------------------------------------------------------------- /strace/linux/alpha/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_GETRVAL2 1 2 | #define HAVE_ARCH_DEDICATED_ERR_REG 1 3 | -------------------------------------------------------------------------------- /strace/linux/alpha/arch_getrval2.c: -------------------------------------------------------------------------------- 1 | long 2 | getrval2(struct tcb *tcp) 3 | { 4 | unsigned long r20; 5 | if (upeek(tcp, 20, &r20) < 0) 6 | return -1; 7 | return r20; 8 | } 9 | -------------------------------------------------------------------------------- /strace/linux/alpha/get_error.c: -------------------------------------------------------------------------------- 1 | static void 2 | arch_get_error(struct tcb *tcp, const bool check_errno) 3 | { 4 | if (alpha_a3) { 5 | tcp->u_rval = -1; 6 | tcp->u_error = alpha_r0; 7 | } else { 8 | tcp->u_rval = alpha_r0; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /strace/linux/alpha/get_syscall_result.c: -------------------------------------------------------------------------------- 1 | static int 2 | get_syscall_result_regs(struct tcb *tcp) 3 | { 4 | return (upeek(tcp, REG_A3, &alpha_a3) < 0 || 5 | upeek(tcp, REG_R0, &alpha_r0) < 0) ? -1 : 0; 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/alpha/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "64/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/alpha/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | return upoke(tcp, REG_R0, scno); 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/arc/arch_regs.c: -------------------------------------------------------------------------------- 1 | static struct user_regs_struct arc_regs; 2 | #define ARCH_REGS_FOR_GETREGSET arc_regs 3 | #define ARCH_PC_REG arc_regs.efa 4 | #define ARCH_SP_REG arc_regs.scratch.sp 5 | -------------------------------------------------------------------------------- /strace/linux/arc/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | tcp->scno = arc_regs.scratch.r8; 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /strace/linux/arc/ioctls_arch0.h: -------------------------------------------------------------------------------- 1 | /* Generated by ioctls_gen.sh from definitions found in $linux/arch/arc/include/ tree. */ 2 | -------------------------------------------------------------------------------- /strace/linux/arc/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/arc/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | arc_regs.scratch.r8 = scno; 5 | return set_regs(tcp->pid); 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/arch_regs.h: -------------------------------------------------------------------------------- 1 | /* nothing */ 2 | -------------------------------------------------------------------------------- /strace/linux/arch_sigreturn.c: -------------------------------------------------------------------------------- 1 | static void 2 | arch_sigreturn(struct tcb *tcp) 3 | { 4 | } 5 | -------------------------------------------------------------------------------- /strace/linux/arm/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_OLD_MMAP 1 2 | #define HAVE_ARCH_OLD_SELECT 1 3 | #define HAVE_ARCH_UID16_SYSCALLS 1 4 | #define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1 5 | -------------------------------------------------------------------------------- /strace/linux/arm/arch_regs.c: -------------------------------------------------------------------------------- 1 | static struct pt_regs arm_regs; 2 | 3 | #define ARCH_REGS_FOR_GETREGS arm_regs 4 | #define ARCH_PC_REG arm_regs.ARM_pc 5 | #define ARCH_SP_REG arm_regs.ARM_sp 6 | -------------------------------------------------------------------------------- /strace/linux/arm/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/avr32/arch_regs.c: -------------------------------------------------------------------------------- 1 | static struct pt_regs avr32_regs; 2 | #define ARCH_REGS_FOR_GETREGS avr32_regs 3 | #define ARCH_PC_REG avr32_regs.pc 4 | #define ARCH_SP_REG avr32_regs.sp 5 | -------------------------------------------------------------------------------- /strace/linux/avr32/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | tcp->scno = avr32_regs.r8; 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /strace/linux/avr32/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/avr32/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | avr32_regs.r8 = scno; 5 | return set_regs(tcp->pid); 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/bfin/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_OLD_SELECT 1 2 | #define HAVE_ARCH_UID16_SYSCALLS 1 3 | -------------------------------------------------------------------------------- /strace/linux/bfin/arch_regs.c: -------------------------------------------------------------------------------- 1 | static unsigned long bfin_r0; 2 | #define ARCH_PC_PEEK_ADDR PT_PC 3 | #define ARCH_SP_PEEK_ADDR PT_USP 4 | -------------------------------------------------------------------------------- /strace/linux/bfin/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | return upeek(tcp, PT_ORIG_P0, &tcp->scno) < 0 ? -1 : 1; 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/bfin/get_syscall_result.c: -------------------------------------------------------------------------------- 1 | static int 2 | get_syscall_result_regs(struct tcb *tcp) 3 | { 4 | return upeek(tcp, PT_R0, &bfin_r0) < 0 ? -1 : 0; 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/bfin/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/bfin/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | return upoke(tcp, PT_ORIG_P0, scno); 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/bfin/userent.h: -------------------------------------------------------------------------------- 1 | XLAT_UOFF(u_tsize), 2 | XLAT_UOFF(u_dsize), 3 | XLAT_UOFF(u_ssize), 4 | XLAT_UOFF(start_code), 5 | XLAT_UOFF(signal), 6 | XLAT_UOFF(u_ar0), 7 | XLAT_UOFF(magic), 8 | XLAT_UOFF(u_comm), 9 | #include "../userent0.h" 10 | -------------------------------------------------------------------------------- /strace/linux/getregs_old.h: -------------------------------------------------------------------------------- 1 | #undef HAVE_GETREGS_OLD 2 | -------------------------------------------------------------------------------- /strace/linux/hppa/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_SA_RESTORER 0 2 | -------------------------------------------------------------------------------- /strace/linux/hppa/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | return upeek(tcp, PT_GR20, &tcp->scno) < 0 ? -1 : 1; 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/hppa/get_syscall_result.c: -------------------------------------------------------------------------------- 1 | static int 2 | get_syscall_result_regs(struct tcb *tcp) 3 | { 4 | return upeek(tcp, PT_GR28, &hppa_r28) < 0 ? -1 : 0; 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/hppa/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/hppa/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | return upoke(tcp, PT_GR20, scno); 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/i386/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_OLD_MMAP 1 2 | #define HAVE_ARCH_OLD_SELECT 1 3 | #define HAVE_ARCH_UID16_SYSCALLS 1 4 | #define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1 5 | -------------------------------------------------------------------------------- /strace/linux/i386/arch_kvm.c: -------------------------------------------------------------------------------- 1 | #include "x86_64/arch_kvm.c" 2 | -------------------------------------------------------------------------------- /strace/linux/i386/arch_regs.c: -------------------------------------------------------------------------------- 1 | static struct user_regs_struct i386_regs; 2 | 3 | #define ARCH_REGS_FOR_GETREGS i386_regs 4 | #define ARCH_PC_REG i386_regs.eip 5 | #define ARCH_SP_REG i386_regs.esp 6 | 7 | #undef ARCH_MIGHT_USE_SET_REGS 8 | #define ARCH_MIGHT_USE_SET_REGS 0 9 | -------------------------------------------------------------------------------- /strace/linux/i386/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | tcp->scno = i386_regs.orig_eax; 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /strace/linux/i386/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/i386/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | return upoke(tcp, 4 * ORIG_EAX, scno); 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/ia64/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_GETRVAL2 1 2 | #define HAVE_ARCH_UID16_SYSCALLS 1 3 | #define HAVE_ARCH_SA_RESTORER 0 4 | #define HAVE_ARCH_DEDICATED_ERR_REG 1 5 | -------------------------------------------------------------------------------- /strace/linux/ia64/arch_getrval2.c: -------------------------------------------------------------------------------- 1 | long 2 | getrval2(struct tcb *tcp) 3 | { 4 | return ia64_regs.gr[9]; 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/ia64/arch_regs.c: -------------------------------------------------------------------------------- 1 | static struct pt_all_user_regs ia64_regs; 2 | 3 | #define ARCH_REGS_FOR_GETREGS ia64_regs 4 | #define ARCH_PC_REG ia64_regs.br[0] 5 | #define ARCH_SP_REG ia64_regs.gr[12] 6 | -------------------------------------------------------------------------------- /strace/linux/ia64/arch_regs.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /strace/linux/ia64/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | tcp->scno = ia64_regs.gr[15]; 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /strace/linux/ia64/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "64/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/ia64/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | ia64_regs.gr[15] = scno; 5 | 6 | return set_regs(tcp->pid); 7 | } 8 | -------------------------------------------------------------------------------- /strace/linux/m68k/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_OLD_MMAP 1 2 | #define HAVE_ARCH_OLD_SELECT 1 3 | #define HAVE_ARCH_UID16_SYSCALLS 1 4 | #define HAVE_ARCH_SA_RESTORER 1 5 | -------------------------------------------------------------------------------- /strace/linux/m68k/arch_regs.c: -------------------------------------------------------------------------------- 1 | static struct user_regs_struct m68k_regs; 2 | #define ARCH_REGS_FOR_GETREGS m68k_regs 3 | #define ARCH_PC_REG m68k_regs.pc 4 | #define ARCH_SP_REG m68k_regs.usp 5 | -------------------------------------------------------------------------------- /strace/linux/m68k/arch_rt_sigframe.c: -------------------------------------------------------------------------------- 1 | #include "i386/arch_rt_sigframe.c" 2 | -------------------------------------------------------------------------------- /strace/linux/m68k/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | tcp->scno = m68k_regs.orig_d0; 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /strace/linux/m68k/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/m68k/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | m68k_regs.orig_d0 = scno; 5 | return set_regs(tcp->pid); 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/metag/arch_regs.c: -------------------------------------------------------------------------------- 1 | static struct user_gp_regs metag_regs; 2 | #define ARCH_REGS_FOR_GETREGSET metag_regs 3 | #define ARCH_PC_REG metag_regs.pc 4 | #define ARCH_SP_REG metag_regs.ax[0][0] 5 | -------------------------------------------------------------------------------- /strace/linux/metag/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | tcp->scno = metag_regs.dx[0][1]; /* syscall number in D1Re0 (D1.0) */ 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /strace/linux/metag/ioctls_arch0.h: -------------------------------------------------------------------------------- 1 | /* Generated by ioctls_gen.sh from definitions found in $linux/arch/metag/include/ tree. */ 2 | -------------------------------------------------------------------------------- /strace/linux/metag/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/metag/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | metag_regs.dx[0][1] = scno; 5 | return set_regs(tcp->pid); 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/microblaze/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_OLD_SELECT 1 2 | #define HAVE_ARCH_UID16_SYSCALLS 1 3 | -------------------------------------------------------------------------------- /strace/linux/microblaze/arch_regs.c: -------------------------------------------------------------------------------- 1 | static unsigned long microblaze_r3; 2 | #define ARCH_PC_PEEK_ADDR PT_PC 3 | #define ARCH_SP_PEEK_ADDR PT_GPR(1) 4 | -------------------------------------------------------------------------------- /strace/linux/microblaze/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | return upeek(tcp, 0, &tcp->scno) < 0 ? -1 : 1; 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/microblaze/get_syscall_result.c: -------------------------------------------------------------------------------- 1 | static int 2 | get_syscall_result_regs(struct tcb *tcp) 3 | { 4 | return upeek(tcp, 3 * 4, µblaze_r3) < 0 ? -1 : 0; 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/microblaze/ioctls_arch0.h: -------------------------------------------------------------------------------- 1 | /* Generated by ioctls_gen.sh from definitions found in $linux/arch/microblaze/include/ tree. */ 2 | -------------------------------------------------------------------------------- /strace/linux/microblaze/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/microblaze/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | return upoke(tcp, 0, scno); 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/mips/.gitignore: -------------------------------------------------------------------------------- 1 | syscallent-n32-stub.h 2 | syscallent-n64-stub.h 3 | syscallent-o32-stub.h 4 | -------------------------------------------------------------------------------- /strace/linux/mips/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_GETRVAL2 1 2 | #define HAVE_ARCH_DEDICATED_ERR_REG 1 3 | #define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1 4 | -------------------------------------------------------------------------------- /strace/linux/mips/arch_getrval2.c: -------------------------------------------------------------------------------- 1 | long 2 | getrval2(struct tcb *tcp) 3 | { 4 | return mips_regs.uregs[3]; 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/mips/get_error.c: -------------------------------------------------------------------------------- 1 | static void 2 | arch_get_error(struct tcb *tcp, const bool check_errno) 3 | { 4 | if (mips_REG_A3) { 5 | tcp->u_rval = -1; 6 | tcp->u_error = mips_REG_V0; 7 | } else { 8 | tcp->u_rval = mips_REG_V0; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /strace/linux/mips/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #ifdef LINUX_MIPSN64 2 | # include "64/ioctls_inc.h" 3 | #else 4 | # include "32/ioctls_inc.h" 5 | #endif 6 | -------------------------------------------------------------------------------- /strace/linux/mips/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | mips_REG_V0 = scno; 5 | return set_regs(tcp->pid); 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/mips/syscallent.h: -------------------------------------------------------------------------------- 1 | #include "../dummy.h" 2 | #include "syscallent-compat.h" 3 | #include "syscallent-o32.h" 4 | #include "syscallent-n64.h" 5 | #include "syscallent-n32.h" 6 | -------------------------------------------------------------------------------- /strace/linux/nios2/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_DEDICATED_ERR_REG 1 2 | -------------------------------------------------------------------------------- /strace/linux/nios2/arch_regs.c: -------------------------------------------------------------------------------- 1 | static struct user_pt_regs nios2_regs; 2 | # define ARCH_REGS_FOR_GETREGSET nios2_regs 3 | #define ARCH_PC_REG nios2_regs.regs[PTR_EA] 4 | #define ARCH_SP_REG nios2_regs.regs[PTR_SP] 5 | -------------------------------------------------------------------------------- /strace/linux/nios2/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | tcp->scno = nios2_regs.regs[2]; 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /strace/linux/nios2/ioctls_arch0.h: -------------------------------------------------------------------------------- 1 | /* Generated by ioctls_gen.sh from definitions found in $linux/arch/nios2/include/ tree. */ 2 | -------------------------------------------------------------------------------- /strace/linux/nios2/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/nios2/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | nios2_regs.regs[2] = scno; 5 | return set_regs(tcp->pid); 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/nios2/syscallent.h: -------------------------------------------------------------------------------- 1 | #define sys_ARCH_mmap sys_mmap_pgoff 2 | #include "32/syscallent.h" 3 | /* [244 ... 259] are arch specific */ 4 | [244] = {4, 0, SEN(cacheflush), "cacheflush"}, 5 | -------------------------------------------------------------------------------- /strace/linux/or1k/arch_regs.c: -------------------------------------------------------------------------------- 1 | static struct user_regs_struct or1k_regs; 2 | #define ARCH_REGS_FOR_GETREGSET or1k_regs 3 | #define ARCH_PC_REG or1k_regs.pc 4 | #define ARCH_SP_REG or1k_regs.gpr[1] 5 | -------------------------------------------------------------------------------- /strace/linux/or1k/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | tcp->scno = or1k_regs.gpr[11]; 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /strace/linux/or1k/ioctls_arch0.h: -------------------------------------------------------------------------------- 1 | /* Generated by ioctls_gen.sh from definitions found in $linux/arch/openrisc/include/ tree. */ 2 | -------------------------------------------------------------------------------- /strace/linux/or1k/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/or1k/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | or1k_regs.gpr[11] = scno; 5 | return set_regs(tcp->pid); 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/or1k/syscallent.h: -------------------------------------------------------------------------------- 1 | #define sys_ARCH_mmap sys_mmap_pgoff 2 | #include "32/syscallent.h" 3 | /* [244 ... 259] are arch specific */ 4 | [244] = { 3, NF, SEN(or1k_atomic), "or1k_atomic" }, 5 | -------------------------------------------------------------------------------- /strace/linux/powerpc/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_OLD_SELECT 1 2 | #define HAVE_ARCH_DEDICATED_ERR_REG 1 3 | #define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1 4 | -------------------------------------------------------------------------------- /strace/linux/powerpc/arch_regs.c: -------------------------------------------------------------------------------- 1 | static struct pt_regs ppc_regs; 2 | 3 | #define ARCH_REGS_FOR_GETREGS ppc_regs 4 | #define ARCH_PC_REG ppc_regs.nip 5 | #define ARCH_SP_REG ppc_regs.gpr[1] 6 | 7 | #undef ARCH_MIGHT_USE_SET_REGS 8 | #define ARCH_MIGHT_USE_SET_REGS 0 9 | -------------------------------------------------------------------------------- /strace/linux/powerpc/errnoent.h: -------------------------------------------------------------------------------- 1 | #include "../errnoent.h" 2 | [ 58] = "EDEADLOCK", 3 | -------------------------------------------------------------------------------- /strace/linux/powerpc/get_error.c: -------------------------------------------------------------------------------- 1 | static void 2 | arch_get_error(struct tcb *tcp, const bool check_errno) 3 | { 4 | if (ppc_regs.ccr & 0x10000000) { 5 | tcp->u_rval = -1; 6 | tcp->u_error = ppc_regs.gpr[3]; 7 | } else { 8 | tcp->u_rval = ppc_regs.gpr[3]; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /strace/linux/powerpc/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | tcp->scno = ppc_regs.gpr[0]; 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /strace/linux/powerpc/getregs_old.h: -------------------------------------------------------------------------------- 1 | #include "x86_64/getregs_old.h" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | return upoke(tcp, sizeof(long) * PT_R0, scno); 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_OLD_SELECT 1 2 | #define SUPPORTED_PERSONALITIES 2 3 | #define HAVE_ARCH_DEDICATED_ERR_REG 1 4 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/arch_regs.c: -------------------------------------------------------------------------------- 1 | #include "powerpc/arch_regs.c" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/arch_sigreturn.c: -------------------------------------------------------------------------------- 1 | #include "powerpc/arch_sigreturn.c" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/errnoent.h: -------------------------------------------------------------------------------- 1 | #include "powerpc/errnoent.h" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/get_error.c: -------------------------------------------------------------------------------- 1 | #include "powerpc/get_error.c" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/get_syscall_args.c: -------------------------------------------------------------------------------- 1 | #include "powerpc/get_syscall_args.c" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/getregs_old.c: -------------------------------------------------------------------------------- 1 | #include "powerpc/getregs_old.c" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/getregs_old.h: -------------------------------------------------------------------------------- 1 | #include "powerpc/getregs_old.h" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/ioctls_arch0.h: -------------------------------------------------------------------------------- 1 | #include "powerpc/ioctls_arch0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/ioctls_arch1.h: -------------------------------------------------------------------------------- 1 | #include "powerpc/ioctls_arch0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "64/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/ioctls_inc1.h: -------------------------------------------------------------------------------- 1 | #include "powerpc/ioctls_inc0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/raw_syscall.h: -------------------------------------------------------------------------------- 1 | #include "powerpc/raw_syscall.h" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/set_error.c: -------------------------------------------------------------------------------- 1 | #include "powerpc/set_error.c" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/set_scno.c: -------------------------------------------------------------------------------- 1 | #include "powerpc/set_scno.c" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/syscallent1.h: -------------------------------------------------------------------------------- 1 | #include "powerpc/syscallent.h" 2 | -------------------------------------------------------------------------------- /strace/linux/powerpc64/userent.h: -------------------------------------------------------------------------------- 1 | #include "powerpc/userent.h" 2 | -------------------------------------------------------------------------------- /strace/linux/raw_syscall.h: -------------------------------------------------------------------------------- 1 | /* nothing */ 2 | -------------------------------------------------------------------------------- /strace/linux/riscv/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_UID16_SYSCALLS 1 2 | #define SUPPORTED_PERSONALITIES 2 3 | #define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1 4 | -------------------------------------------------------------------------------- /strace/linux/riscv/arch_regs.c: -------------------------------------------------------------------------------- 1 | static struct user_regs_struct riscv_regs; 2 | #define ARCH_REGS_FOR_GETREGSET riscv_regs 3 | #define ARCH_PC_REG riscv_regs.pc 4 | #define ARCH_SP_REG riscv_regs.sp 5 | -------------------------------------------------------------------------------- /strace/linux/riscv/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | tcp->scno = riscv_regs.a7; 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /strace/linux/riscv/ioctls_arch0.h: -------------------------------------------------------------------------------- 1 | /* Generated by ioctls_gen.sh from definitions found in $linux/arch/riscv/include/ tree. */ 2 | -------------------------------------------------------------------------------- /strace/linux/riscv/ioctls_arch1.h: -------------------------------------------------------------------------------- 1 | #include "ioctls_arch0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/riscv/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "64/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/riscv/ioctls_inc1.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/riscv/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | riscv_regs.a7 = scno; 5 | return set_regs(tcp->pid); 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/riscv/syscallent.h: -------------------------------------------------------------------------------- 1 | #include "64/syscallent.h" 2 | 3 | /* #define __NR_riscv_flush_icache (__NR_arch_specific_syscall + 15) */ 4 | [259] = { 3, TM, SEN(riscv_flush_icache), "riscv_flush_icache" }, 5 | -------------------------------------------------------------------------------- /strace/linux/riscv/syscallent1.h: -------------------------------------------------------------------------------- 1 | #include "32/syscallent.h" 2 | -------------------------------------------------------------------------------- /strace/linux/s390/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_OLD_MMAP 1 2 | #define HAVE_ARCH_OLD_MMAP_PGOFF 1 3 | #define HAVE_ARCH_UID16_SYSCALLS 1 4 | #define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1 5 | -------------------------------------------------------------------------------- /strace/linux/s390/arch_regs.c: -------------------------------------------------------------------------------- 1 | /* PTRACE_GETREGSET on S390 is available since linux v2.6.27. */ 2 | static struct user_regs_struct s390_regset; 3 | #define ARCH_REGS_FOR_GETREGSET s390_regset 4 | #define ARCH_PC_REG s390_regset.psw.addr 5 | #define ARCH_SP_REG s390_regset.gprs[15] 6 | -------------------------------------------------------------------------------- /strace/linux/s390/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/s390/set_scno.c: -------------------------------------------------------------------------------- 1 | #ifndef ARCH_REGSET 2 | # define ARCH_REGSET s390_regset 3 | #endif 4 | 5 | static int 6 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 7 | { 8 | ARCH_REGSET.gprs[2] = scno; 9 | return set_regs(tcp->pid); 10 | } 11 | -------------------------------------------------------------------------------- /strace/linux/s390x/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_OLD_MMAP 1 2 | #define HAVE_ARCH_OLD_MMAP_PGOFF 1 3 | #define HAVE_ARCH_UID16_SYSCALLS 1 4 | #define SUPPORTED_PERSONALITIES 2 5 | -------------------------------------------------------------------------------- /strace/linux/s390x/ioctls_arch1.h: -------------------------------------------------------------------------------- 1 | #include "s390/ioctls_arch0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/s390x/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "64/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/s390x/ioctls_inc1.h: -------------------------------------------------------------------------------- 1 | #include "s390/ioctls_inc0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/s390x/raw_syscall.h: -------------------------------------------------------------------------------- 1 | #include "s390/raw_syscall.h" 2 | -------------------------------------------------------------------------------- /strace/linux/s390x/rt_sigframe.h: -------------------------------------------------------------------------------- 1 | #include "s390/rt_sigframe.h" 2 | -------------------------------------------------------------------------------- /strace/linux/s390x/syscallent1.h: -------------------------------------------------------------------------------- 1 | #include "s390/syscallent.h" 2 | -------------------------------------------------------------------------------- /strace/linux/sh/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_GETRVAL2 1 2 | #define HAVE_ARCH_OLD_SELECT 1 3 | #define HAVE_ARCH_UID16_SYSCALLS 1 4 | -------------------------------------------------------------------------------- /strace/linux/sh/arch_getrval2.c: -------------------------------------------------------------------------------- 1 | long 2 | getrval2(struct tcb *tcp) 3 | { 4 | unsigned long val; 5 | if (upeek(tcp, 4*(REG_REG0+1), &val) < 0) 6 | return -1; 7 | return val; 8 | } 9 | -------------------------------------------------------------------------------- /strace/linux/sh/arch_regs.c: -------------------------------------------------------------------------------- 1 | static unsigned long sh_r0; 2 | #define ARCH_PC_PEEK_ADDR (4 * REG_PC) 3 | #define ARCH_SP_PEEK_ADDR (4 * 15) 4 | -------------------------------------------------------------------------------- /strace/linux/sh/get_syscall_result.c: -------------------------------------------------------------------------------- 1 | static int 2 | get_syscall_result_regs(struct tcb *tcp) 3 | { 4 | /* new syscall ABI returns result in R0 */ 5 | return upeek(tcp, 4 * REG_REG0, &sh_r0) < 0 ? -1 : 0; 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/sh/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/sh/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | return upoke(tcp, 4 * (REG_REG0 + 3), scno); 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/sh64/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_UID16_SYSCALLS 1 2 | -------------------------------------------------------------------------------- /strace/linux/sh64/arch_regs.c: -------------------------------------------------------------------------------- 1 | static unsigned long sh64_r9; 2 | #define ARCH_PC_PEEK_ADDR REG_PC 3 | #define ARCH_SP_PEEK_ADDR REG_GENERAL(15) 4 | -------------------------------------------------------------------------------- /strace/linux/sh64/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | if (upeek(tcp, REG_SYSCALL, &tcp->scno) < 0) 6 | return -1; 7 | tcp->scno &= 0xffff; 8 | return 1; 9 | } 10 | -------------------------------------------------------------------------------- /strace/linux/sh64/get_syscall_result.c: -------------------------------------------------------------------------------- 1 | static int 2 | get_syscall_result_regs(struct tcb *tcp) 3 | { 4 | /* ABI defines result returned in r9 */ 5 | return upeek(tcp, REG_GENERAL(9), &sh64_r9) < 0 ? -1 : 0; 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/sh64/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "64/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/sh64/raw_syscall.h: -------------------------------------------------------------------------------- 1 | #include "sh/raw_syscall.h" 2 | -------------------------------------------------------------------------------- /strace/linux/sh64/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | return upoke(tcp, REG_SYSCALL, scno); 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/shuffle_scno.c: -------------------------------------------------------------------------------- 1 | kernel_ulong_t 2 | shuffle_scno(kernel_ulong_t scno) 3 | { 4 | return scno; 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/signal.h.in: -------------------------------------------------------------------------------- 1 | /* 2 | * Workaround the infamous incompatibility between 3 | * and many libc headers by overriding with . 4 | */ 5 | #include 6 | -------------------------------------------------------------------------------- /strace/linux/sparc/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_GETRVAL2 1 2 | #define HAVE_ARCH_UID16_SYSCALLS 1 3 | #define HAVE_ARCH_SA_RESTORER 1 4 | #define HAVE_ARCH_DEDICATED_ERR_REG 1 5 | #define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1 6 | -------------------------------------------------------------------------------- /strace/linux/sparc/arch_getrval2.c: -------------------------------------------------------------------------------- 1 | long 2 | getrval2(struct tcb *tcp) 3 | { 4 | return sparc_regs.u_regs[U_REG_O1]; 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/sparc/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | tcp->scno = sparc_regs.u_regs[U_REG_G1]; 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /strace/linux/sparc/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/sparc/userent.h: -------------------------------------------------------------------------------- 1 | #include "../userent0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/sparc64/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_GETRVAL2 1 2 | #define HAVE_ARCH_UID16_SYSCALLS 1 3 | #define HAVE_ARCH_SA_RESTORER 1 4 | #define SUPPORTED_PERSONALITIES 2 5 | #define HAVE_ARCH_DEDICATED_ERR_REG 1 6 | -------------------------------------------------------------------------------- /strace/linux/sparc64/arch_getrval2.c: -------------------------------------------------------------------------------- 1 | #include "sparc/arch_getrval2.c" 2 | -------------------------------------------------------------------------------- /strace/linux/sparc64/arch_regs.c: -------------------------------------------------------------------------------- 1 | #include "sparc/arch_regs.c" 2 | #undef ARCH_PC_REG 3 | #define ARCH_PC_REG sparc_regs.tpc 4 | -------------------------------------------------------------------------------- /strace/linux/sparc64/errnoent.h: -------------------------------------------------------------------------------- 1 | #include "sparc/errnoent.h" 2 | -------------------------------------------------------------------------------- /strace/linux/sparc64/ioctls_arch1.h: -------------------------------------------------------------------------------- 1 | #include "sparc/ioctls_arch0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/sparc64/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "64/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/sparc64/ioctls_inc1.h: -------------------------------------------------------------------------------- 1 | #include "sparc/ioctls_inc0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/sparc64/set_scno.c: -------------------------------------------------------------------------------- 1 | #include "sparc/set_scno.c" 2 | -------------------------------------------------------------------------------- /strace/linux/sparc64/signalent.h: -------------------------------------------------------------------------------- 1 | #include "sparc/signalent.h" 2 | -------------------------------------------------------------------------------- /strace/linux/sparc64/syscallent1.h: -------------------------------------------------------------------------------- 1 | #include "../sparc/syscallent.h" 2 | -------------------------------------------------------------------------------- /strace/linux/sparc64/userent.h: -------------------------------------------------------------------------------- 1 | XLAT_UOFF(u_tsize), 2 | XLAT_UOFF(u_dsize), 3 | XLAT_UOFF(u_ssize), 4 | XLAT_UOFF(signal), 5 | XLAT_UOFF(magic), 6 | XLAT_UOFF(u_comm), 7 | #include "../userent0.h" 8 | -------------------------------------------------------------------------------- /strace/linux/tile/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define SUPPORTED_PERSONALITIES 2 2 | #define CAN_ARCH_BE_COMPAT_ON_64BIT_KERNEL 1 3 | 4 | #ifdef __tilepro__ 5 | # define DEFAULT_PERSONALITY 1 6 | #endif 7 | -------------------------------------------------------------------------------- /strace/linux/tile/arch_regs.c: -------------------------------------------------------------------------------- 1 | static struct pt_regs tile_regs; 2 | #define ARCH_REGS_FOR_GETREGS tile_regs 3 | #define ARCH_PC_REG tile_regs.pc 4 | #define ARCH_SP_REG tile_regs.sp 5 | -------------------------------------------------------------------------------- /strace/linux/tile/ioctls_arch0.h: -------------------------------------------------------------------------------- 1 | /* Generated by ioctls_gen.sh from definitions found in $linux/arch/tile/include/ tree. */ 2 | -------------------------------------------------------------------------------- /strace/linux/tile/ioctls_arch1.h: -------------------------------------------------------------------------------- 1 | /* Generated by ioctls_gen.sh from definitions found in $linux/arch/tile/include/ tree. */ 2 | -------------------------------------------------------------------------------- /strace/linux/tile/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "64/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/tile/ioctls_inc1.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/tile/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | tile_regs.regs[10] = scno; 5 | return set_regs(tcp->pid); 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/tile/syscallent.h: -------------------------------------------------------------------------------- 1 | #include "64/syscallent.h" 2 | /* [244 ... 259] are arch specific */ 3 | [244] = { 1, 0, SEN(printargs), "cmpxchg_badaddr" }, 4 | [245] = { 3, 0, SEN(printargs), "cacheflush" }, 5 | -------------------------------------------------------------------------------- /strace/linux/tile/syscallent1.h: -------------------------------------------------------------------------------- 1 | #define sys_ARCH_mmap sys_mmap_4koff 2 | #define ARCH_WANT_SYNC_FILE_RANGE2 1 3 | #include "32/syscallent.h" 4 | /* [244 ... 259] are arch specific */ 5 | [244] = { 1, 0, SEN(printargs), "cmpxchg_badaddr" }, 6 | [245] = { 3, 0, SEN(printargs), "cacheflush" }, 7 | -------------------------------------------------------------------------------- /strace/linux/userent.h: -------------------------------------------------------------------------------- 1 | /* nothing */ 2 | -------------------------------------------------------------------------------- /strace/linux/userent0.h: -------------------------------------------------------------------------------- 1 | { sizeof(struct user), "sizeof(struct user)" }, 2 | -------------------------------------------------------------------------------- /strace/linux/x32/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_OLD_MMAP 1 2 | #define HAVE_ARCH_OLD_SELECT 1 3 | #define HAVE_ARCH_UID16_SYSCALLS 1 4 | #define SUPPORTED_PERSONALITIES 2 5 | -------------------------------------------------------------------------------- /strace/linux/x32/arch_kvm.c: -------------------------------------------------------------------------------- 1 | #include "x86_64/arch_kvm.c" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/arch_regs.c: -------------------------------------------------------------------------------- 1 | #include "x86_64/arch_regs.c" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/arch_regs.h: -------------------------------------------------------------------------------- 1 | #include "x86_64/arch_regs.h" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/arch_rt_sigframe.c: -------------------------------------------------------------------------------- 1 | #include "x86_64/arch_rt_sigframe.c" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/arch_sigreturn.c: -------------------------------------------------------------------------------- 1 | #include "x86_64/arch_sigreturn.c" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/asm_stat.h: -------------------------------------------------------------------------------- 1 | #include "x86_64/asm_stat.h" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/get_error.c: -------------------------------------------------------------------------------- 1 | #include "x86_64/get_error.c" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/get_scno.c: -------------------------------------------------------------------------------- 1 | #include "x86_64/get_scno.c" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/get_syscall_args.c: -------------------------------------------------------------------------------- 1 | #include "x86_64/get_syscall_args.c" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/ioctls_arch0.h: -------------------------------------------------------------------------------- 1 | #include "x86_64/ioctls_arch0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/ioctls_arch1.h: -------------------------------------------------------------------------------- 1 | #include "i386/ioctls_arch0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/ioctls_inc1.h: -------------------------------------------------------------------------------- 1 | #include "i386/ioctls_inc0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/raw_syscall.h: -------------------------------------------------------------------------------- 1 | #include "x86_64/raw_syscall.h" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/rt_sigframe.h: -------------------------------------------------------------------------------- 1 | #include "x86_64/rt_sigframe.h" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/set_error.c: -------------------------------------------------------------------------------- 1 | #include "x86_64/set_error.c" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/set_scno.c: -------------------------------------------------------------------------------- 1 | #include "x86_64/set_scno.c" 2 | -------------------------------------------------------------------------------- /strace/linux/x32/shuffle_scno.c: -------------------------------------------------------------------------------- 1 | kernel_ulong_t 2 | shuffle_scno(kernel_ulong_t scno) 3 | { 4 | if (current_personality == 0 && scno != (kernel_ulong_t) -1) 5 | scno ^= __X32_SYSCALL_BIT; 6 | 7 | return scno; 8 | } 9 | -------------------------------------------------------------------------------- /strace/linux/x32/syscallent1.h: -------------------------------------------------------------------------------- 1 | /* Our second set comes from the i386 files. */ 2 | 3 | #include "../i386/syscallent.h" 4 | -------------------------------------------------------------------------------- /strace/linux/x32/userent.h: -------------------------------------------------------------------------------- 1 | #include "../x86_64/userent.h" 2 | -------------------------------------------------------------------------------- /strace/linux/x86_64/arch_defs_.h: -------------------------------------------------------------------------------- 1 | #define HAVE_ARCH_OLD_MMAP 1 2 | #define HAVE_ARCH_OLD_SELECT 1 3 | #define HAVE_ARCH_UID16_SYSCALLS 1 4 | #define SUPPORTED_PERSONALITIES 3 5 | -------------------------------------------------------------------------------- /strace/linux/x86_64/arch_rt_sigframe.c: -------------------------------------------------------------------------------- 1 | #include "i386/arch_rt_sigframe.c" 2 | -------------------------------------------------------------------------------- /strace/linux/x86_64/arch_sigreturn.c: -------------------------------------------------------------------------------- 1 | /* Only x86 personality has old sigreturn syscall. */ 2 | #include "i386/arch_sigreturn.c" 3 | -------------------------------------------------------------------------------- /strace/linux/x86_64/getregs_old.h: -------------------------------------------------------------------------------- 1 | #define HAVE_GETREGS_OLD 2 | static int getregs_old(struct tcb *); 3 | -------------------------------------------------------------------------------- /strace/linux/x86_64/ioctls_arch1.h: -------------------------------------------------------------------------------- 1 | #include "i386/ioctls_arch0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/x86_64/ioctls_arch2.h: -------------------------------------------------------------------------------- 1 | #include "ioctls_arch0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/x86_64/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "64/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/x86_64/ioctls_inc1.h: -------------------------------------------------------------------------------- 1 | #include "i386/ioctls_inc0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/x86_64/ioctls_inc2.h: -------------------------------------------------------------------------------- 1 | #include "x32/ioctls_inc0.h" 2 | -------------------------------------------------------------------------------- /strace/linux/x86_64/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | return upoke(tcp, 8 * ORIG_RAX, scno); 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/x86_64/shuffle_scno.c: -------------------------------------------------------------------------------- 1 | kernel_ulong_t 2 | shuffle_scno(kernel_ulong_t scno) 3 | { 4 | if (current_personality == 2) 5 | scno ^= __X32_SYSCALL_BIT; 6 | 7 | return scno; 8 | } 9 | -------------------------------------------------------------------------------- /strace/linux/x86_64/syscallent1.h: -------------------------------------------------------------------------------- 1 | /* Our second set comes from the i386 files. */ 2 | 3 | #include "../i386/syscallent.h" 4 | -------------------------------------------------------------------------------- /strace/linux/x86_64/syscallent2.h: -------------------------------------------------------------------------------- 1 | /* x32 personality */ 2 | #include "../x32/syscallent.h" 3 | -------------------------------------------------------------------------------- /strace/linux/xtensa/arch_regs.c: -------------------------------------------------------------------------------- 1 | static unsigned long xtensa_a2; 2 | #define ARCH_PC_PEEK_ADDR REG_PC 3 | #define ARCH_SP_PEEK_ADDR (REG_A_BASE + 1) 4 | -------------------------------------------------------------------------------- /strace/linux/xtensa/get_scno.c: -------------------------------------------------------------------------------- 1 | /* Return codes: 1 - ok, 0 - ignore, other - error. */ 2 | static int 3 | arch_get_scno(struct tcb *tcp) 4 | { 5 | return upeek(tcp, SYSCALL_NR, &tcp->scno) < 0 ? -1 : 1; 6 | } 7 | -------------------------------------------------------------------------------- /strace/linux/xtensa/get_syscall_result.c: -------------------------------------------------------------------------------- 1 | static int 2 | get_syscall_result_regs(struct tcb *tcp) 3 | { 4 | return upeek(tcp, REG_A_BASE + 2, &xtensa_a2) < 0 ? -1 : 0; 5 | } 6 | -------------------------------------------------------------------------------- /strace/linux/xtensa/ioctls_inc0.h: -------------------------------------------------------------------------------- 1 | #include "32/ioctls_inc.h" 2 | -------------------------------------------------------------------------------- /strace/linux/xtensa/set_scno.c: -------------------------------------------------------------------------------- 1 | static int 2 | arch_set_scno(struct tcb *tcp, kernel_ulong_t scno) 3 | { 4 | return upoke(tcp, SYSCALL_NR, scno); 5 | } 6 | -------------------------------------------------------------------------------- /strace/m4/.gitignore: -------------------------------------------------------------------------------- 1 | bpf_attr.m4 2 | -------------------------------------------------------------------------------- /strace/m4/st_save_restore_var.m4: -------------------------------------------------------------------------------- 1 | AC_DEFUN([st_SAVE_VAR], [dnl 2 | AS_IF([test -n "${$1+set}"], [st_saved_$1="${$1}"; unset $1]) 3 | ]) 4 | 5 | AC_DEFUN([st_RESTORE_VAR], [dnl 6 | AS_IF([test -n "${st_saved_$1+set}"], [$1="${st_saved_$1}"; unset st_saved_$1]) 7 | ]) 8 | -------------------------------------------------------------------------------- /strace/maint/gen-release-notes.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -efu 2 | 3 | echo '
'
4 | "$(dirname "$0")"/gen-tag-message.sh
5 | echo '
' 6 | -------------------------------------------------------------------------------- /strace/native_defs.h: -------------------------------------------------------------------------------- 1 | #undef MPERS_PRINTER_NAME 2 | #define MPERS_PRINTER_NAME(printer_name) printer_name 3 | 4 | #include "native_printer_decls.h" 5 | -------------------------------------------------------------------------------- /strace/printsiginfo.h: -------------------------------------------------------------------------------- 1 | #ifndef STRACE_PRINTSIGINFO_H 2 | #define STRACE_PRINTSIGINFO_H 3 | 4 | extern void printsiginfo(const siginfo_t *); 5 | 6 | #endif /* !STRACE_PRINTSIGINFO_H */ 7 | -------------------------------------------------------------------------------- /strace/qemu_multiarch_testing/.gitignore: -------------------------------------------------------------------------------- 1 | hdc.dir/strace 2 | hdc.img 3 | -------------------------------------------------------------------------------- /strace/readahead.c: -------------------------------------------------------------------------------- 1 | #include "defs.h" 2 | 3 | SYS_FUNC(readahead) 4 | { 5 | int argn; 6 | 7 | printfd(tcp, tcp->u_arg[0]); 8 | argn = printllval(tcp, ", %lld", 1); 9 | tprintf(", %" PRI_klu, tcp->u_arg[argn]); 10 | 11 | return RVAL_DECODED; 12 | } 13 | -------------------------------------------------------------------------------- /strace/regs.h: -------------------------------------------------------------------------------- 1 | #ifndef STRACE_REGS_H 2 | #define STRACE_REGS_H 3 | 4 | #include 5 | #include "arch_regs.h" 6 | 7 | #endif /* !STRACE_REGS_H */ 8 | -------------------------------------------------------------------------------- /strace/retval.h: -------------------------------------------------------------------------------- 1 | /* retval to index and visa versa. */ 2 | #ifndef STRACE_RETVAL_H 3 | #define STRACE_RETVAL_H 4 | 5 | uint16_t retval_new(kernel_long_t rval); 6 | kernel_long_t retval_get(uint16_t rval_idx); 7 | 8 | #endif /* !STRACE_RETVAL_H */ 9 | -------------------------------------------------------------------------------- /strace/scno.head: -------------------------------------------------------------------------------- 1 | #if defined __X32_SYSCALL_BIT && defined __NR_read \ 2 | && (__X32_SYSCALL_BIT & __NR_read) == __X32_SYSCALL_BIT 3 | # define SYSCALL_BIT __X32_SYSCALL_BIT 4 | #else 5 | # define SYSCALL_BIT 0 6 | #endif 7 | -------------------------------------------------------------------------------- /strace/statfs.c: -------------------------------------------------------------------------------- 1 | #include "defs.h" 2 | 3 | SYS_FUNC(statfs) 4 | { 5 | if (entering(tcp)) { 6 | printpath(tcp, tcp->u_arg[0]); 7 | tprints(", "); 8 | } else { 9 | print_struct_statfs(tcp, tcp->u_arg[1]); 10 | } 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /strace/test/.gitignore: -------------------------------------------------------------------------------- 1 | childthread 2 | clone 3 | leaderkill 4 | many_looping_threads 5 | mmap_offset_decode 6 | mtd 7 | seccomp 8 | sfd 9 | sig 10 | sigkill_rain 11 | skodic 12 | threaded_execve 13 | ubi 14 | wait_must_be_interruptible 15 | x32_lseek 16 | x32_mmap 17 | -------------------------------------------------------------------------------- /strace/tests/_newselect-P.c: -------------------------------------------------------------------------------- 1 | #define PATH_TRACING_FD 9 2 | #include "_newselect.c" 3 | -------------------------------------------------------------------------------- /strace/tests/attach-p-cmd.h: -------------------------------------------------------------------------------- 1 | static const char lockdir[] = "attach-p-cmd.test-lock"; 2 | static const char pidfile[] = "attach-p-cmd.test-pid"; 3 | -------------------------------------------------------------------------------- /strace/tests/bpf-obj_get_info_by_fd-prog-v.c: -------------------------------------------------------------------------------- 1 | #define CHECK_OBJ_PROG 1 2 | #define VERBOSE 1 3 | #include "bpf-obj_get_info_by_fd.c" 4 | -------------------------------------------------------------------------------- /strace/tests/bpf-obj_get_info_by_fd-prog.c: -------------------------------------------------------------------------------- 1 | #define CHECK_OBJ_PROG 1 2 | #include "bpf-obj_get_info_by_fd.c" 3 | -------------------------------------------------------------------------------- /strace/tests/bpf-obj_get_info_by_fd-v.c: -------------------------------------------------------------------------------- 1 | #define VERBOSE 1 2 | #include "bpf-obj_get_info_by_fd.c" 3 | -------------------------------------------------------------------------------- /strace/tests/bpf-success-v.c: -------------------------------------------------------------------------------- 1 | #define INJECT_RETVAL 42 2 | #include "bpf-v.c" 3 | -------------------------------------------------------------------------------- /strace/tests/bpf-success-v.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh -efu 2 | 3 | . "${srcdir=.}/scno_tampering.sh" 4 | 5 | run_strace -a20 -v -e trace=bpf -e inject=bpf:retval=42 ../bpf-success-v > "$EXP" 6 | match_diff "$LOG" "$EXP" 7 | -------------------------------------------------------------------------------- /strace/tests/bpf-success.c: -------------------------------------------------------------------------------- 1 | #define INJECT_RETVAL 42 2 | #include "bpf.c" 3 | -------------------------------------------------------------------------------- /strace/tests/bpf-success.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh -efu 2 | 3 | . "${srcdir=.}/scno_tampering.sh" 4 | 5 | run_strace -a20 -e trace=bpf -e inject=bpf:retval=42 ../bpf-success > "$EXP" 6 | match_diff "$LOG" "$EXP" 7 | -------------------------------------------------------------------------------- /strace/tests/bpf-v.c: -------------------------------------------------------------------------------- 1 | /* This file is part of bpf-v strace test. */ 2 | #define VERBOSE 1 3 | #include "bpf.c" 4 | -------------------------------------------------------------------------------- /strace/tests/brk.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check brk syscall decoding. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog > /dev/null 8 | run_strace -a10 -ebrk $args > "$EXP" 9 | match_grep "$LOG" "$EXP" 10 | -------------------------------------------------------------------------------- /strace/tests/caps-abbrev.c: -------------------------------------------------------------------------------- 1 | #include "caps.c" 2 | -------------------------------------------------------------------------------- /strace/tests/caps-abbrev.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check capget/capset syscalls decoding. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog 8 | run_strace -a 19 -e trace=capget,capset -e verbose=\!capget,capset $args 9 | match_awk 10 | 11 | exit 0 12 | -------------------------------------------------------------------------------- /strace/tests/caps.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check capget/capset syscalls decoding. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog 8 | run_strace -a 19 -e trace=capget,capset $args 9 | match_awk 10 | 11 | exit 0 12 | -------------------------------------------------------------------------------- /strace/tests/chown32.c: -------------------------------------------------------------------------------- 1 | #include "tests.h" 2 | #include 3 | 4 | #ifdef __NR_chown32 5 | 6 | # define SYSCALL_NR __NR_chown32 7 | # define SYSCALL_NAME "chown32" 8 | # include "xchownx.c" 9 | 10 | #else 11 | 12 | SKIP_MAIN_UNDEFINED("__NR_chown32") 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /strace/tests/clock.in: -------------------------------------------------------------------------------- 1 | clock_adjtime -a37 2 | clock_nanosleep 3 | clock_xettime -a36 4 | -------------------------------------------------------------------------------- /strace/tests/clone_parent.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh -efu 2 | # Check handling of CLONE_PARENT'ed processes. 3 | . "${srcdir=.}/clone_ptrace.test" 4 | -------------------------------------------------------------------------------- /strace/tests/count-f.expected: -------------------------------------------------------------------------------- 1 | [ ]*[^ ]+ +[^ ]+ +[^ ]+ +2080 +1024 +chdir 2 | -------------------------------------------------------------------------------- /strace/tests/count-f.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check whether -c counts through forks and clones properly 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog 8 | run_strace -q -f -c $args 9 | match_grep 10 | 11 | exit 0 12 | -------------------------------------------------------------------------------- /strace/tests/creat.c: -------------------------------------------------------------------------------- 1 | #include "tests.h" 2 | #include 3 | 4 | #ifdef __NR_creat 5 | 6 | # define TEST_SYSCALL_NR __NR_creat 7 | # define TEST_SYSCALL_STR "creat" 8 | # include "umode_t.c" 9 | 10 | #else 11 | 12 | SKIP_MAIN_UNDEFINED("__NR_creat") 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /strace/tests/dup.c: -------------------------------------------------------------------------------- 1 | #include "tests.h" 2 | #include 3 | #include 4 | 5 | int 6 | main(void) 7 | { 8 | int rc = dup(-1); 9 | printf("dup(-1) = %d %s (%m)\n", rc, errno2name()); 10 | 11 | puts("+++ exited with 0 +++"); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /strace/tests/eventfd.expected: -------------------------------------------------------------------------------- 1 | eventfd2(4294967295, EFD_SEMAPHORE|EFD_CLOEXEC|EFD_NONBLOCK) = 0 2 | +++ exited with 0 +++ 3 | -------------------------------------------------------------------------------- /strace/tests/eventfd.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check eventfd2 syscall decoding. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog 8 | run_strace -e eventfd2 $args 9 | match_diff 10 | 11 | exit 0 12 | -------------------------------------------------------------------------------- /strace/tests/execve-v.c: -------------------------------------------------------------------------------- 1 | /* This file is part of execve-v strace test. */ 2 | #define VERBOSE 1 3 | #include "execve.c" 4 | -------------------------------------------------------------------------------- /strace/tests/execveat-v.c: -------------------------------------------------------------------------------- 1 | /* This file is part of execveat-v strace test. */ 2 | #define VERBOSE 1 3 | #include "execveat.c" 4 | -------------------------------------------------------------------------------- /strace/tests/fadvise64.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check decoding of fadvise64 syscall. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog > /dev/null 8 | run_strace -e $NAME $args > "$EXP" 9 | check_prog grep 10 | grep -v "^$NAME([0123]," < "$LOG" > "$OUT" 11 | match_diff "$OUT" "$EXP" 12 | -------------------------------------------------------------------------------- /strace/tests/fanotify_mark-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "fanotify_mark.c" 2 | -------------------------------------------------------------------------------- /strace/tests/fanotify_mark-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "fanotify_mark.c" 3 | -------------------------------------------------------------------------------- /strace/tests/fanotify_mark-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "fanotify_mark.c" 3 | -------------------------------------------------------------------------------- /strace/tests/filter-unavailable.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krytarowski/picotrace/b2b7d9922f189021dff289d306413058b594811d/strace/tests/filter-unavailable.expected -------------------------------------------------------------------------------- /strace/tests/filter-unavailable.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # check that syscalls are filtered properly 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog 8 | run_strace -qq -f -echdir -esignal=none $args 9 | match_diff 10 | 11 | exit 0 12 | -------------------------------------------------------------------------------- /strace/tests/fstat-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "fstat.c" 2 | -------------------------------------------------------------------------------- /strace/tests/fstat-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "fstat.c" 3 | -------------------------------------------------------------------------------- /strace/tests/fstat-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "fstat.c" 3 | -------------------------------------------------------------------------------- /strace/tests/fstat64-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "fstat64.c" 2 | -------------------------------------------------------------------------------- /strace/tests/fstat64-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "fstat64.c" 3 | -------------------------------------------------------------------------------- /strace/tests/fstat64-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "fstat64.c" 3 | -------------------------------------------------------------------------------- /strace/tests/futex.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check futex syscall decoding. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_strace_match_diff -a27 8 | run_strace_match_diff -v -a27 9 | -------------------------------------------------------------------------------- /strace/tests/get_page_size.c: -------------------------------------------------------------------------------- 1 | #include "tests.h" 2 | #include 3 | 4 | size_t 5 | get_page_size(void) 6 | { 7 | static size_t page_size; 8 | 9 | if (!page_size) 10 | page_size = sysconf(_SC_PAGESIZE); 11 | 12 | return page_size; 13 | } 14 | -------------------------------------------------------------------------------- /strace/tests/getgroups32.c: -------------------------------------------------------------------------------- 1 | #include "tests.h" 2 | #include 3 | 4 | #ifdef __NR_getgroups32 5 | 6 | # include "getgroups.c" 7 | 8 | #else 9 | 10 | SKIP_MAIN_UNDEFINED("__NR_getgroups32") 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /strace/tests/getsid.c: -------------------------------------------------------------------------------- 1 | #include "tests.h" 2 | #include 3 | #include 4 | 5 | int 6 | main(void) 7 | { 8 | pid_t pid = getpid(); 9 | printf("getsid(%d) = %d\n", pid, getsid(pid)); 10 | 11 | puts("+++ exited with 0 +++"); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /strace/tests/gettid.c: -------------------------------------------------------------------------------- 1 | #include "tests.h" 2 | #include 3 | #include 4 | #include 5 | 6 | int 7 | main(void) 8 | { 9 | printf("gettid() = %ld\n", syscall(__NR_gettid)); 10 | puts("+++ exited with 0 +++"); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /strace/tests/getuid.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check getuid syscall decoding. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | check_prog uniq 8 | run_prog > /dev/null 9 | run_strace -qq -a9 -e$NAME $args > "$EXP" 10 | uniq < "$LOG" > "$OUT" 11 | match_diff "$OUT" "$EXP" 12 | -------------------------------------------------------------------------------- /strace/tests/ioctl.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check ioctl syscall decoding. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | check_prog grep 8 | run_prog > /dev/null 9 | run_strace -a16 -eioctl "$@" $args > "$EXP" 10 | grep -v '^ioctl([012][,<]' < "$LOG" > "$OUT" 11 | match_diff "$OUT" "$EXP" 12 | -------------------------------------------------------------------------------- /strace/tests/ioctl_dm-v.c: -------------------------------------------------------------------------------- 1 | #define VERBOSE 1 2 | #include "ioctl_dm.c" 3 | -------------------------------------------------------------------------------- /strace/tests/ioctl_evdev-success-v.c: -------------------------------------------------------------------------------- 1 | #define VERBOSE 1 2 | #include "ioctl_evdev-success.c" 3 | -------------------------------------------------------------------------------- /strace/tests/ioctl_evdev-v.c: -------------------------------------------------------------------------------- 1 | /* This file is part of ioctl_evdev-v strace test. */ 2 | #define VERBOSE 1 3 | #include "ioctl_evdev.c" 4 | -------------------------------------------------------------------------------- /strace/tests/ioctl_kvm_run-v.c: -------------------------------------------------------------------------------- 1 | #define VERBOSE 1 2 | #include "ioctl_kvm_run.c" 3 | -------------------------------------------------------------------------------- /strace/tests/ioctl_kvm_run.c: -------------------------------------------------------------------------------- 1 | #include "ioctl_kvm_run_common.c" 2 | 3 | #if need_print_KVM_RUN 4 | 5 | static void 6 | print_KVM_RUN(const int fd, const char *const dev, const unsigned int reason) 7 | { 8 | printf("ioctl(%d<%s>, KVM_RUN, 0) = 0\n", fd, dev); 9 | } 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /strace/tests/ioctl_loop-nv.c: -------------------------------------------------------------------------------- 1 | #define ABBREV 1 2 | #include "ioctl_loop.c" 3 | -------------------------------------------------------------------------------- /strace/tests/ioctl_loop-v.c: -------------------------------------------------------------------------------- 1 | #define VERBOSE 1 2 | #include "ioctl_loop.c" 3 | -------------------------------------------------------------------------------- /strace/tests/ioctl_rtc-v.c: -------------------------------------------------------------------------------- 1 | /* This file is part of ioctl_rtc-v strace test. */ 2 | #define VERBOSE 1 3 | #include "ioctl_rtc.c" 4 | -------------------------------------------------------------------------------- /strace/tests/ipc.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check decoding of ipc syscalls 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog > /dev/null 8 | run_strace -eipc "$@" $args > "$EXP" 9 | match_grep "$LOG" "$EXP" 10 | 11 | exit 0 12 | -------------------------------------------------------------------------------- /strace/tests/ipc_msg-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "ipc_msg.c" 2 | -------------------------------------------------------------------------------- /strace/tests/ipc_msg-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "ipc_msg.c" 3 | -------------------------------------------------------------------------------- /strace/tests/ipc_msg-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "ipc_msg.c" 3 | -------------------------------------------------------------------------------- /strace/tests/ipc_msgbuf-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "ipc_msgbuf.c" 2 | -------------------------------------------------------------------------------- /strace/tests/ipc_msgbuf-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "ipc_msgbuf.c" 3 | -------------------------------------------------------------------------------- /strace/tests/ipc_msgbuf-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "ipc_msgbuf.c" 3 | -------------------------------------------------------------------------------- /strace/tests/ipc_msgbuf.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check msgget, msgsnd, msgrcv, msgctl syscalls decoding. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog 8 | run_strace -a26 -v -e msgget,msgsnd,msgrcv,msgctl "$@" $args > "$EXP" 9 | match_grep "$LOG" "$EXP" 10 | 11 | exit 0 12 | -------------------------------------------------------------------------------- /strace/tests/ipc_sem-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "ipc_sem.c" 2 | -------------------------------------------------------------------------------- /strace/tests/ipc_sem-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "ipc_sem.c" 3 | -------------------------------------------------------------------------------- /strace/tests/ipc_sem-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "ipc_sem.c" 3 | -------------------------------------------------------------------------------- /strace/tests/ipc_shm-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "ipc_shm.c" 2 | -------------------------------------------------------------------------------- /strace/tests/ipc_shm-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "ipc_shm.c" 3 | -------------------------------------------------------------------------------- /strace/tests/ipc_shm-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "ipc_shm.c" 3 | -------------------------------------------------------------------------------- /strace/tests/kcmp-y.c: -------------------------------------------------------------------------------- 1 | #define VERBOSE_FD 1 2 | 3 | #include "kcmp.c" 4 | -------------------------------------------------------------------------------- /strace/tests/kernel_version-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "kernel_version.c" 2 | -------------------------------------------------------------------------------- /strace/tests/kernel_version-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "kernel_version.c" 3 | -------------------------------------------------------------------------------- /strace/tests/kernel_version-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "kernel_version.c" 3 | -------------------------------------------------------------------------------- /strace/tests/keyctl-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "keyctl.c" 2 | -------------------------------------------------------------------------------- /strace/tests/keyctl-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "keyctl.c" 3 | -------------------------------------------------------------------------------- /strace/tests/keyctl-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "keyctl.c" 3 | -------------------------------------------------------------------------------- /strace/tests/ksysent.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Validate syscallent.h 4 | 5 | ./ksysent 6 | -------------------------------------------------------------------------------- /strace/tests/lchown32.c: -------------------------------------------------------------------------------- 1 | #include "tests.h" 2 | #include 3 | 4 | #ifdef __NR_lchown32 5 | 6 | # define SYSCALL_NR __NR_lchown32 7 | # define SYSCALL_NAME "lchown32" 8 | # include "xchownx.c" 9 | 10 | #else 11 | 12 | SKIP_MAIN_UNDEFINED("__NR_lchown32") 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /strace/tests/llseek.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check _llseek syscall decoding. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | check_prog grep 8 | run_prog > /dev/null 9 | run_strace -e_llseek $args > "$EXP" 10 | grep -v '^_llseek([0-9]' < "$LOG" > "$OUT" 11 | match_diff "$OUT" "$EXP" 12 | -------------------------------------------------------------------------------- /strace/tests/lseek.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check lseek syscall decoding. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | check_prog grep 8 | run_prog > /dev/null 9 | run_strace -a30 -elseek $args > "$EXP" 10 | grep -v '^lseek([0-9]' < "$LOG" > "$OUT" 11 | match_diff "$OUT" "$EXP" 12 | -------------------------------------------------------------------------------- /strace/tests/memfd_create-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "memfd_create.c" 2 | -------------------------------------------------------------------------------- /strace/tests/memfd_create-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "memfd_create.c" 3 | -------------------------------------------------------------------------------- /strace/tests/memfd_create-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "memfd_create.c" 3 | -------------------------------------------------------------------------------- /strace/tests/mkdir.c: -------------------------------------------------------------------------------- 1 | #include "tests.h" 2 | #include 3 | 4 | #ifdef __NR_mkdir 5 | 6 | # define TEST_SYSCALL_NR __NR_mkdir 7 | # define TEST_SYSCALL_STR "mkdir" 8 | # include "umode_t.c" 9 | 10 | #else 11 | 12 | SKIP_MAIN_UNDEFINED("__NR_mkdir") 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /strace/tests/mmap-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "mmap.c" 2 | -------------------------------------------------------------------------------- /strace/tests/mmap-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "mmap.c" 3 | -------------------------------------------------------------------------------- /strace/tests/mmap-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "mmap.c" 3 | -------------------------------------------------------------------------------- /strace/tests/mmap64-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "mmap64.c" 2 | -------------------------------------------------------------------------------- /strace/tests/mmap64-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "mmap64.c" 3 | -------------------------------------------------------------------------------- /strace/tests/mmap64-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "mmap64.c" 3 | -------------------------------------------------------------------------------- /strace/tests/mmap64.c: -------------------------------------------------------------------------------- 1 | #include "mmap.c" 2 | -------------------------------------------------------------------------------- /strace/tests/mmsg_name-v.c: -------------------------------------------------------------------------------- 1 | /* This file is part of mmsg_name-v strace test. */ 2 | #define VERBOSE 1 3 | #define TEST_NAME "mmsg_name-v" 4 | #include "mmsg_name.c" 5 | -------------------------------------------------------------------------------- /strace/tests/mount-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "mount.c" 2 | -------------------------------------------------------------------------------- /strace/tests/mount-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "mount.c" 3 | -------------------------------------------------------------------------------- /strace/tests/mount-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "mount.c" 3 | -------------------------------------------------------------------------------- /strace/tests/mq_sendrecv-read.c: -------------------------------------------------------------------------------- 1 | #define DUMPIO_READ 1 2 | #define MQ_NAME "mq_sendrecv-read.sample" 3 | #include "mq_sendrecv.c" 4 | -------------------------------------------------------------------------------- /strace/tests/mq_sendrecv-write.c: -------------------------------------------------------------------------------- 1 | #define DUMPIO_WRITE 1 2 | #define MQ_NAME "mq_sendrecv-write.sample" 3 | #include "mq_sendrecv.c" 4 | -------------------------------------------------------------------------------- /strace/tests/msg_control-v.c: -------------------------------------------------------------------------------- 1 | /* This file is part of msg_control-v strace test. */ 2 | #define VERBOSE 1 3 | #include "msg_control.c" 4 | -------------------------------------------------------------------------------- /strace/tests/munlockall.c: -------------------------------------------------------------------------------- 1 | #include "tests.h" 2 | 3 | #include 4 | #include 5 | 6 | int 7 | main(void) 8 | { 9 | printf("munlockall() = %s\n", sprintrc(munlockall())); 10 | 11 | puts("+++ exited with 0 +++"); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /strace/tests/net-tpacket_stats-success.c: -------------------------------------------------------------------------------- 1 | #define INJECT_RETVAL 42 2 | #include "net-tpacket_stats.c" 3 | -------------------------------------------------------------------------------- /strace/tests/net-tpacket_stats-success.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh -efu 2 | 3 | . "${srcdir=.}/scno_tampering.sh" 4 | 5 | run_strace -e trace=getsockopt -e inject=getsockopt:retval=42 ../net-tpacket_stats-success > "$EXP" 6 | match_diff "$LOG" "$EXP" 7 | -------------------------------------------------------------------------------- /strace/tests/net.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check how network syscalls are traced. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog ../net-accept-connect net-local-stream 8 | run_strace_merge -e%network $args 9 | match_grep 10 | 11 | exit 0 12 | -------------------------------------------------------------------------------- /strace/tests/nsyscalls-d.c: -------------------------------------------------------------------------------- 1 | #define DEBUG_PRINT 1 2 | #include "nsyscalls.c" 3 | -------------------------------------------------------------------------------- /strace/tests/nsyscalls-nd.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | debug_flag= 4 | . "${srcdir=.}"/nsyscalls-d.test 5 | -------------------------------------------------------------------------------- /strace/tests/nsyscalls.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check decoding of out-of-range syscalls. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | if [ "$MIPS_ABI" = "o32" ]; then 8 | syscall=syscall 9 | else 10 | syscall=none 11 | fi 12 | 13 | run_strace_match_diff -e trace=$syscall 14 | -------------------------------------------------------------------------------- /strace/tests/old_mmap-P.c: -------------------------------------------------------------------------------- 1 | #define TEST_FD 9 2 | #define PATH_TRACING 3 | #include "old_mmap.c" 4 | -------------------------------------------------------------------------------- /strace/tests/old_mmap-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "old_mmap.c" 2 | -------------------------------------------------------------------------------- /strace/tests/old_mmap-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "old_mmap.c" 3 | -------------------------------------------------------------------------------- /strace/tests/old_mmap-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "old_mmap.c" 3 | -------------------------------------------------------------------------------- /strace/tests/old_mmap-v-none.c: -------------------------------------------------------------------------------- 1 | #include "old_mmap.c" 2 | -------------------------------------------------------------------------------- /strace/tests/oldselect-P.c: -------------------------------------------------------------------------------- 1 | #define PATH_TRACING_FD 9 2 | #include "oldselect.c" 3 | -------------------------------------------------------------------------------- /strace/tests/oldselect-efault-P.c: -------------------------------------------------------------------------------- 1 | #define PATH_TRACING_FD 9 2 | #include "oldselect-efault.c" 3 | -------------------------------------------------------------------------------- /strace/tests/perf_event_open_unabbrev.c: -------------------------------------------------------------------------------- 1 | #define VERBOSE 1 2 | #include "perf_event_open.c" 3 | -------------------------------------------------------------------------------- /strace/tests/personality-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "personality.c" 2 | -------------------------------------------------------------------------------- /strace/tests/personality-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "personality.c" 3 | -------------------------------------------------------------------------------- /strace/tests/personality-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "personality.c" 3 | -------------------------------------------------------------------------------- /strace/tests/personality.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check personality syscall decoding. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog > /dev/null 8 | run_strace -a20 -epersonality "$@" $args > "$EXP" 9 | match_grep "$LOG" "$EXP" 10 | -------------------------------------------------------------------------------- /strace/tests/pipe.expected: -------------------------------------------------------------------------------- 1 | pipe([0, 1]) = 0 2 | +++ exited with 0 +++ 3 | -------------------------------------------------------------------------------- /strace/tests/poll-P.c: -------------------------------------------------------------------------------- 1 | #define PATH_TRACING_FD 9 2 | #include "poll.c" 3 | -------------------------------------------------------------------------------- /strace/tests/ppoll-P.c: -------------------------------------------------------------------------------- 1 | #define PATH_TRACING_FD 9 2 | #include "ppoll.c" 3 | -------------------------------------------------------------------------------- /strace/tests/ppoll-v.c: -------------------------------------------------------------------------------- 1 | /* This file is part of ppoll-v strace test. */ 2 | #define VERBOSE 1 3 | #include "ppoll.c" 4 | -------------------------------------------------------------------------------- /strace/tests/qual_fault-exit_group.expected: -------------------------------------------------------------------------------- 1 | exit_group(42) = -1 ENOSYS (Function not implemented) (INJECTED) 2 | exit(42) = ? 3 | +++ exited with 42 +++ 4 | -------------------------------------------------------------------------------- /strace/tests/qual_fault-syscall.test: -------------------------------------------------------------------------------- 1 | suffix=:syscall=gettid 2 | name_override=qual_fault 3 | . "${srcdir=.}/qual_fault.test" 4 | -------------------------------------------------------------------------------- /strace/tests/qual_inject-error-signal-syscall.test: -------------------------------------------------------------------------------- 1 | suffix=:syscall=gettid 2 | name_override=qual_inject-error-signal 3 | . "${srcdir=.}/qual_inject-error-signal.test" 4 | -------------------------------------------------------------------------------- /strace/tests/qual_inject-error-signal.expected: -------------------------------------------------------------------------------- 1 | chdir(".") = -1 ENOENT (No such file or directory) (INJECTED) 2 | --- SIGUSR1 {si_signo=SIGUSR1, si_code=SI_KERNEL} --- 3 | exit_group(0) = ? 4 | +++ exited with 0 +++ 5 | -------------------------------------------------------------------------------- /strace/tests/qual_inject-retval-syscall.test: -------------------------------------------------------------------------------- 1 | suffix=:syscall=gettid 2 | name_override=qual_inject-retval 3 | . "${srcdir=.}/qual_inject-retval.test" 4 | -------------------------------------------------------------------------------- /strace/tests/qual_inject-signal-syscall.test: -------------------------------------------------------------------------------- 1 | suffix=:syscall=gettid 2 | name_override=qual_inject-signal 3 | . "${srcdir=.}/qual_inject-signal.test" 4 | -------------------------------------------------------------------------------- /strace/tests/qual_inject-signal.expected: -------------------------------------------------------------------------------- 1 | chdir(".") = 0 2 | --- SIGUSR1 {si_signo=SIGUSR1, si_code=SI_KERNEL} --- 3 | exit_group(0) = ? 4 | +++ exited with 0 +++ 5 | -------------------------------------------------------------------------------- /strace/tests/qualify_personality_empty.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krytarowski/picotrace/b2b7d9922f189021dff289d306413058b594811d/strace/tests/qualify_personality_empty.in -------------------------------------------------------------------------------- /strace/tests/quotactl-success-v.c: -------------------------------------------------------------------------------- 1 | #define INJECT_RETVAL 42 2 | #include "quotactl-v.c" 3 | -------------------------------------------------------------------------------- /strace/tests/quotactl-success-v.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh -efu 2 | 3 | . "${srcdir=.}/scno_tampering.sh" 4 | 5 | run_strace -v -e trace=quotactl -e inject=quotactl:retval=42 ../quotactl-success-v > "$EXP" 6 | match_diff "$LOG" "$EXP" 7 | -------------------------------------------------------------------------------- /strace/tests/quotactl-success.c: -------------------------------------------------------------------------------- 1 | #define INJECT_RETVAL 42 2 | #include "quotactl.c" 3 | -------------------------------------------------------------------------------- /strace/tests/quotactl-success.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh -efu 2 | 3 | . "${srcdir=.}/scno_tampering.sh" 4 | 5 | run_strace -e trace=quotactl -e inject=quotactl:retval=42 ../quotactl-success > "$EXP" 6 | match_diff "$LOG" "$EXP" 7 | -------------------------------------------------------------------------------- /strace/tests/quotactl-v.c: -------------------------------------------------------------------------------- 1 | /* This file is part of quotactl-v strace test. */ 2 | #define VERBOSE 1 3 | #include "quotactl.c" 4 | -------------------------------------------------------------------------------- /strace/tests/quotactl-xfs-success-v.c: -------------------------------------------------------------------------------- 1 | #define INJECT_RETVAL 42 2 | #include "quotactl-xfs-v.c" 3 | -------------------------------------------------------------------------------- /strace/tests/quotactl-xfs-success-v.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh -efu 2 | 3 | . "${srcdir=.}/scno_tampering.sh" 4 | 5 | run_strace -v -e trace=quotactl -e inject=quotactl:retval=42 ../quotactl-xfs-success-v > "$EXP" 6 | match_diff "$LOG" "$EXP" 7 | -------------------------------------------------------------------------------- /strace/tests/quotactl-xfs-success.c: -------------------------------------------------------------------------------- 1 | #define INJECT_RETVAL 42 2 | #include "quotactl-xfs.c" 3 | -------------------------------------------------------------------------------- /strace/tests/quotactl-xfs-success.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh -efu 2 | 3 | . "${srcdir=.}/scno_tampering.sh" 4 | 5 | run_strace -e trace=quotactl -e inject=quotactl:retval=42 ../quotactl-xfs-success > "$EXP" 6 | match_diff "$LOG" "$EXP" 7 | -------------------------------------------------------------------------------- /strace/tests/quotactl-xfs-v.c: -------------------------------------------------------------------------------- 1 | /* This file is part of quotactl-xfs-v strace test. */ 2 | #define VERBOSE 1 3 | #include "quotactl-xfs.c" 4 | -------------------------------------------------------------------------------- /strace/tests/regex.in: -------------------------------------------------------------------------------- 1 | statfs -a17 2 | statfs64 -a23 3 | -------------------------------------------------------------------------------- /strace/tests/remap_file_pages-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "remap_file_pages.c" 2 | -------------------------------------------------------------------------------- /strace/tests/remap_file_pages-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "remap_file_pages.c" 3 | -------------------------------------------------------------------------------- /strace/tests/remap_file_pages-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "remap_file_pages.c" 3 | -------------------------------------------------------------------------------- /strace/tests/rt_sigaction.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check rt_sigaction decoding. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog 8 | run_strace -ert_sigaction $args 9 | match_awk 10 | 11 | exit 0 12 | -------------------------------------------------------------------------------- /strace/tests/s390_guarded_storage-v.c: -------------------------------------------------------------------------------- 1 | #define VERBOSE 1 2 | #include "s390_guarded_storage.c" 3 | -------------------------------------------------------------------------------- /strace/tests/s390_sthyi-v.c: -------------------------------------------------------------------------------- 1 | #define VERBOSE 1 2 | #include "s390_sthyi.c" 3 | -------------------------------------------------------------------------------- /strace/tests/sched.in: -------------------------------------------------------------------------------- 1 | sched_xetaffinity -a28 2 | sched_xetparam -a23 3 | sched_rr_get_interval -a31 4 | sched_get_priority_mxx -a33 5 | sched_xetattr -a29 6 | sched_xetscheduler -a22 7 | sched_yield -a14 8 | -------------------------------------------------------------------------------- /strace/tests/select-P.c: -------------------------------------------------------------------------------- 1 | #define PATH_TRACING_FD 9 2 | #include "select.c" 3 | -------------------------------------------------------------------------------- /strace/tests/setgroups32.c: -------------------------------------------------------------------------------- 1 | #include "tests.h" 2 | #include 3 | 4 | #ifdef __NR_setgroups32 5 | 6 | # include "setgroups.c" 7 | 8 | #else 9 | 10 | SKIP_MAIN_UNDEFINED("__NR_setgroups32") 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /strace/tests/sigaltstack.expected: -------------------------------------------------------------------------------- 1 | sigaltstack({ss_sp=0xbaadf00d, ss_flags=SS_DISABLE, ss_size=3735928559}, NULL) = 0 2 | +++ exited with 0 +++ 3 | -------------------------------------------------------------------------------- /strace/tests/sigaltstack.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check sigaltstack syscall decoding. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog 8 | run_strace -e sigaltstack $args 9 | match_diff 10 | 11 | exit 0 12 | -------------------------------------------------------------------------------- /strace/tests/skip_unavailable.c: -------------------------------------------------------------------------------- 1 | #include "tests.h" 2 | 3 | #include 4 | #include 5 | 6 | void 7 | skip_if_unavailable(const char *const path) 8 | { 9 | struct stat st; 10 | 11 | if (stat(path, &st)) 12 | perror_msg_and_skip("stat: %s", path); 13 | } 14 | -------------------------------------------------------------------------------- /strace/tests/so_peercred-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "so_peercred.c" 2 | -------------------------------------------------------------------------------- /strace/tests/so_peercred-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "so_peercred.c" 3 | -------------------------------------------------------------------------------- /strace/tests/so_peercred-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "so_peercred.c" 3 | -------------------------------------------------------------------------------- /strace/tests/sock_filter-v-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "sock_filter-v.c" 2 | -------------------------------------------------------------------------------- /strace/tests/sock_filter-v-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "sock_filter-v.c" 3 | -------------------------------------------------------------------------------- /strace/tests/sock_filter-v-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "sock_filter-v.c" 3 | -------------------------------------------------------------------------------- /strace/tests/stack-fcall-0.c: -------------------------------------------------------------------------------- 1 | #include "stack-fcall.h" 2 | 3 | int f0(int i) 4 | { 5 | return f1(i) - i; 6 | } 7 | -------------------------------------------------------------------------------- /strace/tests/stack-fcall-1.c: -------------------------------------------------------------------------------- 1 | #include "stack-fcall.h" 2 | 3 | int f1(int i) 4 | { 5 | return f2(i) + i; 6 | } 7 | -------------------------------------------------------------------------------- /strace/tests/stack-fcall-2.c: -------------------------------------------------------------------------------- 1 | #include "stack-fcall.h" 2 | 3 | int f2(int i) 4 | { 5 | return f3(i) - i; 6 | } 7 | -------------------------------------------------------------------------------- /strace/tests/stack-fcall-mangled-0.c: -------------------------------------------------------------------------------- 1 | #define MANGLE 2 | #include "stack-fcall-0.c" 3 | -------------------------------------------------------------------------------- /strace/tests/stack-fcall-mangled-1.c: -------------------------------------------------------------------------------- 1 | #define MANGLE 2 | #include "stack-fcall-1.c" 3 | -------------------------------------------------------------------------------- /strace/tests/stack-fcall-mangled-2.c: -------------------------------------------------------------------------------- 1 | #define MANGLE 2 | #include "stack-fcall-2.c" 3 | -------------------------------------------------------------------------------- /strace/tests/stack-fcall-mangled-3.c: -------------------------------------------------------------------------------- 1 | #define MANGLE 2 | #include "stack-fcall-3.c" 3 | -------------------------------------------------------------------------------- /strace/tests/stack-fcall-mangled.c: -------------------------------------------------------------------------------- 1 | #define MANGLE 2 | #include "stack-fcall.c" 3 | -------------------------------------------------------------------------------- /strace/tests/stack-fcall.c: -------------------------------------------------------------------------------- 1 | #include "stack-fcall.h" 2 | 3 | int main(void) 4 | { 5 | f0(0); 6 | f0(1); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /strace/tests/stack-fcall.h: -------------------------------------------------------------------------------- 1 | #ifdef MANGLE 2 | 3 | #define f0 _ZN2ns2f0Ei 4 | #define f1 _ZN2ns2f1Ei 5 | #define f2 _ZN2ns2f2Ei 6 | #define f3 _ZN2ns2f3Ei 7 | 8 | #endif 9 | 10 | int f0(int i); 11 | int f1(int i); 12 | int f2(int i); 13 | int f3(int i); 14 | -------------------------------------------------------------------------------- /strace/tests/strace-C.expected: -------------------------------------------------------------------------------- 1 | nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 2 | \+\+\+ exited with 0 \+\+\+ 3 | [ ]*[0-9][0-9]*[.][0-9][0-9]* *0[.]0[0-9]* *[0-9][0-9]* *1 *nanosleep 4 | -------------------------------------------------------------------------------- /strace/tests/strace-C.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check -C option. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog ../sleep 0 8 | run_strace -a24 -C -enanosleep ../sleep 1 9 | match_grep 10 | -------------------------------------------------------------------------------- /strace/tests/strace-E.expected: -------------------------------------------------------------------------------- 1 | execve\("\.\./sleep", \["\.\./sleep", "0"\], \[.*"option_E_var=OPTION_E_VAL".*\]\) = 0 2 | -------------------------------------------------------------------------------- /strace/tests/strace-E.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check -E option. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog ../sleep 0 > /dev/null 8 | run_strace -E option_E_var=OPTION_E_VAL -v $args 9 | match_grep 10 | -------------------------------------------------------------------------------- /strace/tests/strace-T.expected: -------------------------------------------------------------------------------- 1 | nanosleep\(\{tv_sec=1, tv_nsec=0\}, NULL\) = 0 <(1\.[01]|0\.9)[[:digit:]]{5}> 2 | -------------------------------------------------------------------------------- /strace/tests/strace-T.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check -T option. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog ../sleep 0 8 | run_strace -a24 -T -enanosleep ../sleep 1 9 | match_grep 10 | -------------------------------------------------------------------------------- /strace/tests/strace-ff.expected: -------------------------------------------------------------------------------- 1 | exit_group(0) = ? 2 | +++ exited with 0 +++ 3 | -------------------------------------------------------------------------------- /strace/tests/strace-k-demangle.expected: -------------------------------------------------------------------------------- 1 | ^getpid .*(__kernel_vsyscall )?(__)?getpid ns::f3\(int\) ns::f2\(int\) ns::f1\(int\) ns::f0\(int\) main 2 | ^SIGURG .*(__kernel_vsyscall )?(__)?kill ns::f3\(int\) ns::f2\(int\) ns::f1\(int\) ns::f0\(int\) main 3 | -------------------------------------------------------------------------------- /strace/tests/strace-k-demangle.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Check strace -k symbol names demangling. 3 | 4 | test_prog=../stack-fcall-mangled 5 | 6 | . "${srcdir=.}"/strace-k.test 7 | -------------------------------------------------------------------------------- /strace/tests/strace-k.expected: -------------------------------------------------------------------------------- 1 | ^getpid .*(__kernel_vsyscaln )?(__)?getpid f3 f2 f1 f0 main 2 | ^SIGURG .*(__kernel_vsyscaln )?(__)?kill f3 f2 f1 f0 main 3 | -------------------------------------------------------------------------------- /strace/tests/strace-r.expected: -------------------------------------------------------------------------------- 1 | [ ]{5}0\.0{6} execve\("\.\./sleep", \["\.\./sleep", "1"\], 0x[[:xdigit:]]* /\* [[:digit:]]* vars \*/\) = 0 2 | [ ]{5}(1\.[01]|0\.9)[[:digit:]]{5} \+\+\+ exited with 0 \+\+\+ 3 | -------------------------------------------------------------------------------- /strace/tests/strace-r.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check -r option. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog ../sleep 0 8 | run_strace -r -eexecve ../sleep 1 9 | match_grep 10 | -------------------------------------------------------------------------------- /strace/tests/trace_fstatfs.in: -------------------------------------------------------------------------------- 1 | fstatfs -a18 2 | fstatfs64 -a24 3 | -------------------------------------------------------------------------------- /strace/tests/trace_lstat.in: -------------------------------------------------------------------------------- 1 | lstat -a32 2 | lstat64 -a32 3 | oldlstat -a32 4 | -------------------------------------------------------------------------------- /strace/tests/trace_personality_32.in: -------------------------------------------------------------------------------- 1 | getcwd -a18 2 | -------------------------------------------------------------------------------- /strace/tests/trace_personality_64.in: -------------------------------------------------------------------------------- 1 | getcwd -a18 2 | -------------------------------------------------------------------------------- /strace/tests/trace_personality_regex_32.in: -------------------------------------------------------------------------------- 1 | clock_adjtime -a37 2 | clock_nanosleep 3 | clock_xettime -a36 4 | -------------------------------------------------------------------------------- /strace/tests/trace_personality_regex_64.in: -------------------------------------------------------------------------------- 1 | clock_adjtime -a37 2 | clock_nanosleep 3 | clock_xettime -a36 4 | -------------------------------------------------------------------------------- /strace/tests/trace_personality_regex_x32.in: -------------------------------------------------------------------------------- 1 | clock_adjtime -a37 2 | clock_nanosleep 3 | clock_xettime -a36 4 | -------------------------------------------------------------------------------- /strace/tests/trace_personality_x32.in: -------------------------------------------------------------------------------- 1 | getcwd -a18 2 | -------------------------------------------------------------------------------- /strace/tests/trace_question.in: -------------------------------------------------------------------------------- 1 | osf_utimes -a21 2 | pkey_alloc -a17 3 | pkey_free -a13 4 | pkey_mprotect -a37 5 | -------------------------------------------------------------------------------- /strace/tests/trace_stat.in: -------------------------------------------------------------------------------- 1 | oldstat -a32 2 | stat -a32 3 | stat64 -a32 4 | -------------------------------------------------------------------------------- /strace/tests/trace_statfs.in: -------------------------------------------------------------------------------- 1 | statfs -a17 2 | statfs64 -a23 3 | -------------------------------------------------------------------------------- /strace/tests/trace_statfs_like.in: -------------------------------------------------------------------------------- 1 | statfs -a17 2 | statfs64 -a23 3 | fstatfs -a18 4 | fstatfs64 -a24 5 | ustat -a33 6 | -------------------------------------------------------------------------------- /strace/tests/uio.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check how pread/pwrite and preadv/pwritev syscalls are traced. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog 8 | run_strace -e%desc $args 9 | match_grep 10 | 11 | exit 0 12 | -------------------------------------------------------------------------------- /strace/tests/umount.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check umount syscall decoding. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | case "$STRACE_ARCH" in 8 | alpha) syscall=oldumount ;; 9 | *) syscall=umount ;; 10 | esac 11 | run_strace_match_diff -a24 -s6 -e trace=$syscall 12 | -------------------------------------------------------------------------------- /strace/tests/umount2.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Check umount2 syscall decoding. 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | case "$STRACE_ARCH" in 8 | alpha|ia64) syscall=umount ;; 9 | *) syscall=umount2 ;; 10 | esac 11 | run_strace_match_diff -s7 -e trace=$syscall 12 | -------------------------------------------------------------------------------- /strace/tests/umovestr.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # umovestr short read regression test 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog 8 | run_strace -e chdir $args 9 | match_diff 10 | 11 | exit 0 12 | -------------------------------------------------------------------------------- /strace/tests/umovestr2.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # umovestr short read regression test 4 | 5 | . "${srcdir=.}/init.sh" 6 | 7 | run_prog > /dev/null 8 | run_strace -veexecve -s262144 $args > "$EXP" 9 | check_prog sed 10 | sed 1d < "$LOG" > "$OUT" 11 | match_diff "$OUT" "$EXP" 12 | -------------------------------------------------------------------------------- /strace/tests/utimensat-Xabbrev.c: -------------------------------------------------------------------------------- 1 | #include "utimensat.c" 2 | -------------------------------------------------------------------------------- /strace/tests/utimensat-Xraw.c: -------------------------------------------------------------------------------- 1 | #define XLAT_RAW 1 2 | #include "utimensat.c" 3 | -------------------------------------------------------------------------------- /strace/tests/utimensat-Xverbose.c: -------------------------------------------------------------------------------- 1 | #define XLAT_VERBOSE 1 2 | #include "utimensat.c" 3 | -------------------------------------------------------------------------------- /strace/tests/wait4-v.c: -------------------------------------------------------------------------------- 1 | /* This file is part of wait4-v strace test. */ 2 | #define VERBOSE 1 3 | #include "wait4.c" 4 | -------------------------------------------------------------------------------- /strace/tests/waitid-v.c: -------------------------------------------------------------------------------- 1 | /* This file is part of waitid-v strace test. */ 2 | #define VERBOSE 1 3 | #include "waitid.c" 4 | -------------------------------------------------------------------------------- /strace/uid16.c: -------------------------------------------------------------------------------- 1 | #define STRACE_UID_SIZE 16 2 | #include "uid.c" 3 | -------------------------------------------------------------------------------- /strace/umask.c: -------------------------------------------------------------------------------- 1 | #include "defs.h" 2 | 3 | SYS_FUNC(umask) 4 | { 5 | print_numeric_umode_t(tcp->u_arg[0]); 6 | 7 | return RVAL_DECODED | RVAL_OCTAL; 8 | } 9 | -------------------------------------------------------------------------------- /strace/umount.c: -------------------------------------------------------------------------------- 1 | #include "defs.h" 2 | #include "xlat/umount_flags.h" 3 | 4 | SYS_FUNC(umount2) 5 | { 6 | printpath(tcp, tcp->u_arg[0]); 7 | tprints(", "); 8 | printflags(umount_flags, tcp->u_arg[1], "MNT_???"); 9 | 10 | return RVAL_DECODED; 11 | } 12 | -------------------------------------------------------------------------------- /strace/xlat/access_flags.in: -------------------------------------------------------------------------------- 1 | F_OK 2 | R_OK 3 | W_OK 4 | X_OK 5 | EFF_ONLY_OK 6 | EX_OK 7 | -------------------------------------------------------------------------------- /strace/xlat/adjtimex_state.in: -------------------------------------------------------------------------------- 1 | #value_indexed 2 | TIME_OK 0 3 | TIME_INS 1 4 | TIME_DEL 2 5 | TIME_OOP 3 6 | TIME_WAIT 4 7 | TIME_ERROR 5 8 | -------------------------------------------------------------------------------- /strace/xlat/advise.in: -------------------------------------------------------------------------------- 1 | POSIX_FADV_NORMAL 0 2 | POSIX_FADV_RANDOM 1 3 | POSIX_FADV_SEQUENTIAL 2 4 | POSIX_FADV_WILLNEED 3 5 | #if defined __s390x__ 6 | POSIX_FADV_DONTNEED 6 7 | POSIX_FADV_NOREUSE 7 8 | #else 9 | POSIX_FADV_DONTNEED 4 10 | POSIX_FADV_NOREUSE 5 11 | #endif 12 | -------------------------------------------------------------------------------- /strace/xlat/af_packet_types.in: -------------------------------------------------------------------------------- 1 | #value_indexed 2 | PACKET_HOST 0 3 | PACKET_BROADCAST 1 4 | PACKET_MULTICAST 2 5 | PACKET_OTHERHOST 3 6 | PACKET_OUTGOING 4 7 | PACKET_LOOPBACK 5 8 | PACKET_USER 6 9 | PACKET_KERNEL 7 10 | -------------------------------------------------------------------------------- /strace/xlat/af_packet_versions.in: -------------------------------------------------------------------------------- 1 | TPACKET_V1 0 2 | TPACKET_V2 1 3 | TPACKET_V3 2 4 | -------------------------------------------------------------------------------- /strace/xlat/aio_cmds.in: -------------------------------------------------------------------------------- 1 | #value_indexed 2 | IOCB_CMD_PREAD 0 3 | IOCB_CMD_PWRITE 1 4 | IOCB_CMD_FSYNC 2 5 | IOCB_CMD_FDSYNC 3 6 | IOCB_CMD_PREADX 4 7 | IOCB_CMD_POLL 5 8 | IOCB_CMD_NOOP 6 9 | IOCB_CMD_PREADV 7 10 | IOCB_CMD_PWRITEV 8 11 | -------------------------------------------------------------------------------- /strace/xlat/archvals.in: -------------------------------------------------------------------------------- 1 | ARCH_SET_GS 0x1001 2 | ARCH_SET_FS 0x1002 3 | ARCH_GET_FS 0x1003 4 | ARCH_GET_GS 0x1004 5 | ARCH_GET_CPUID 0x1011 6 | ARCH_SET_CPUID 0x1012 7 | ARCH_MAP_VDSO_X32 0x2001 8 | ARCH_MAP_VDSO_32 0x2002 9 | ARCH_MAP_VDSO_64 0x2003 10 | -------------------------------------------------------------------------------- /strace/xlat/at_flags.in: -------------------------------------------------------------------------------- 1 | AT_SYMLINK_NOFOLLOW 0x100 2 | AT_REMOVEDIR 0x200 3 | AT_SYMLINK_FOLLOW 0x400 4 | AT_NO_AUTOMOUNT 0x800 5 | AT_EMPTY_PATH 0x1000 6 | -------------------------------------------------------------------------------- /strace/xlat/at_statx_sync_types.in: -------------------------------------------------------------------------------- 1 | AT_STATX_SYNC_AS_STAT 0x0000 2 | AT_STATX_FORCE_SYNC 0x2000 3 | AT_STATX_DONT_SYNC 0x4000 4 | 5 | AT_STATX_SYNC_TYPE 0x6000 6 | -------------------------------------------------------------------------------- /strace/xlat/bdaddr_types.in: -------------------------------------------------------------------------------- 1 | #value_indexed 2 | BDADDR_BREDR 0 3 | BDADDR_LE_PUBLIC 1 4 | BDADDR_LE_RANDOM 2 5 | -------------------------------------------------------------------------------- /strace/xlat/blkpg_ops.in: -------------------------------------------------------------------------------- 1 | BLKPG_ADD_PARTITION 1 2 | BLKPG_DEL_PARTITION 2 3 | BLKPG_RESIZE_PARTITION 3 4 | -------------------------------------------------------------------------------- /strace/xlat/bootflags1.in: -------------------------------------------------------------------------------- 1 | LINUX_REBOOT_MAGIC1 0xfee1dead 2 | -------------------------------------------------------------------------------- /strace/xlat/bootflags2.in: -------------------------------------------------------------------------------- 1 | LINUX_REBOOT_MAGIC2 672274793 2 | LINUX_REBOOT_MAGIC2A 85072278 3 | LINUX_REBOOT_MAGIC2B 369367448 4 | LINUX_REBOOT_MAGIC2C 537993216 5 | -------------------------------------------------------------------------------- /strace/xlat/bpf_attach_flags.in: -------------------------------------------------------------------------------- 1 | BPF_F_ALLOW_OVERRIDE 1 2 | BPF_F_ALLOW_MULTI 2 3 | -------------------------------------------------------------------------------- /strace/xlat/bpf_class.in: -------------------------------------------------------------------------------- 1 | #value_indexed 2 | BPF_LD 0x0 3 | BPF_LDX 0x1 4 | BPF_ST 0x2 5 | BPF_STX 0x3 6 | BPF_ALU 0x4 7 | BPF_JMP 0x5 8 | BPF_RET 0x6 9 | BPF_MISC 0x7 10 | -------------------------------------------------------------------------------- /strace/xlat/bpf_file_mode_flags.in: -------------------------------------------------------------------------------- 1 | BPF_F_RDONLY (1U << 3) 2 | BPF_F_WRONLY (1U << 4) 3 | -------------------------------------------------------------------------------- /strace/xlat/bpf_map_flags.in: -------------------------------------------------------------------------------- 1 | BPF_F_NO_PREALLOC 1 2 | BPF_F_NO_COMMON_LRU 2 3 | BPF_F_NUMA_NODE 4 4 | BPF_F_RDONLY (1U << 3) 5 | BPF_F_WRONLY (1U << 4) 6 | BPF_F_STACK_BUILD_ID (1U << 5) 7 | -------------------------------------------------------------------------------- /strace/xlat/bpf_map_update_elem_flags.in: -------------------------------------------------------------------------------- 1 | #value_indexed 2 | BPF_ANY 0 3 | BPF_NOEXIST 1 4 | BPF_EXIST 2 5 | -------------------------------------------------------------------------------- /strace/xlat/bpf_miscop.in: -------------------------------------------------------------------------------- 1 | BPF_TAX 0x00 2 | BPF_TXA 0x80 3 | -------------------------------------------------------------------------------- /strace/xlat/bpf_mode.in: -------------------------------------------------------------------------------- 1 | BPF_IMM 0x00 2 | BPF_ABS 0x20 3 | BPF_IND 0x40 4 | BPF_MEM 0x60 5 | BPF_LEN 0x80 6 | BPF_MSH 0xa0 7 | BPF_XADD 0xc0 8 | -------------------------------------------------------------------------------- /strace/xlat/bpf_op_alu.in: -------------------------------------------------------------------------------- 1 | BPF_ADD 0x00 2 | BPF_SUB 0x10 3 | BPF_MUL 0x20 4 | BPF_DIV 0x30 5 | BPF_OR 0x40 6 | BPF_AND 0x50 7 | BPF_LSH 0x60 8 | BPF_RSH 0x70 9 | BPF_NEG 0x80 10 | BPF_MOD 0x90 11 | BPF_XOR 0xa0 12 | BPF_MOV 0xb0 13 | BPF_ARSH 0xc0 14 | BPF_END 0xd0 15 | -------------------------------------------------------------------------------- /strace/xlat/bpf_op_jmp.in: -------------------------------------------------------------------------------- 1 | BPF_JA 0x00 2 | BPF_JEQ 0x10 3 | BPF_JGT 0x20 4 | BPF_JGE 0x30 5 | BPF_JSET 0x40 6 | BPF_JNE 0x50 7 | BPF_JSGT 0x60 8 | BPF_JSGE 0x70 9 | BPF_CALL 0x80 10 | BPF_EXIT 0x90 11 | BPF_JLT 0xa0 12 | BPF_JLE 0xb0 13 | BPF_JSLT 0xc0 14 | BPF_JSLE 0xd0 15 | -------------------------------------------------------------------------------- /strace/xlat/bpf_prog_flags.in: -------------------------------------------------------------------------------- 1 | BPF_F_STRICT_ALIGNMENT 1 2 | -------------------------------------------------------------------------------- /strace/xlat/bpf_query_flags.in: -------------------------------------------------------------------------------- 1 | BPF_F_QUERY_EFFECTIVE (1U << 0) 2 | -------------------------------------------------------------------------------- /strace/xlat/bpf_rval.in: -------------------------------------------------------------------------------- 1 | BPF_K 0x00 2 | BPF_X 0x08 3 | BPF_A 0x10 4 | -------------------------------------------------------------------------------- /strace/xlat/bpf_size.in: -------------------------------------------------------------------------------- 1 | BPF_W 0x00 2 | BPF_H 0x08 3 | BPF_B 0x10 4 | BPF_DW 0x18 5 | -------------------------------------------------------------------------------- /strace/xlat/bpf_src.in: -------------------------------------------------------------------------------- 1 | BPF_K 0x00 2 | BPF_X 0x08 3 | -------------------------------------------------------------------------------- /strace/xlat/bsg_flags.in: -------------------------------------------------------------------------------- 1 | BSG_FLAG_Q_AT_TAIL 0x10 2 | BSG_FLAG_Q_AT_HEAD 0x20 3 | -------------------------------------------------------------------------------- /strace/xlat/bsg_protocol.in: -------------------------------------------------------------------------------- 1 | BSG_PROTOCOL_SCSI 2 | -------------------------------------------------------------------------------- /strace/xlat/bsg_subprotocol.in: -------------------------------------------------------------------------------- 1 | BSG_SUB_PROTOCOL_SCSI_CMD 2 | BSG_SUB_PROTOCOL_SCSI_TMF 3 | BSG_SUB_PROTOCOL_SCSI_TRANSPORT 4 | -------------------------------------------------------------------------------- /strace/xlat/bt_protocols.in: -------------------------------------------------------------------------------- 1 | #value_indexed 2 | BTPROTO_L2CAP 0 3 | BTPROTO_HCI 1 4 | BTPROTO_SCO 2 5 | BTPROTO_RFCOMM 3 6 | BTPROTO_BNEP 4 7 | BTPROTO_CMTP 5 8 | BTPROTO_HIDP 6 9 | BTPROTO_AVDTP 7 10 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_balance_ctl_cmds.in: -------------------------------------------------------------------------------- 1 | BTRFS_BALANCE_CTL_PAUSE 1 2 | BTRFS_BALANCE_CTL_CANCEL 2 3 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_balance_flags.in: -------------------------------------------------------------------------------- 1 | #val_type uint64_t 2 | BTRFS_BALANCE_DATA (1ULL << 0) 3 | BTRFS_BALANCE_SYSTEM (1ULL << 1) 4 | BTRFS_BALANCE_METADATA (1ULL << 2) 5 | BTRFS_BALANCE_FORCE (1ULL << 3) 6 | BTRFS_BALANCE_RESUME (1ULL << 4) 7 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_balance_state.in: -------------------------------------------------------------------------------- 1 | BTRFS_BALANCE_STATE_RUNNING (1ULL << 0) 2 | BTRFS_BALANCE_STATE_PAUSE_REQ (1ULL << 1) 3 | BTRFS_BALANCE_STATE_CANCEL_REQ (1ULL << 2) 4 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_compress_types.in: -------------------------------------------------------------------------------- 1 | BTRFS_COMPRESS_NONE 0 2 | BTRFS_COMPRESS_ZLIB 1 3 | BTRFS_COMPRESS_LZO 2 4 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_cont_reading_from_srcdev_mode.in: -------------------------------------------------------------------------------- 1 | BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_ALWAYS 0 2 | BTRFS_IOCTL_DEV_REPLACE_CONT_READING_FROM_SRCDEV_MODE_AVOID 1 3 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_defrag_flags.in: -------------------------------------------------------------------------------- 1 | #val_type uint64_t 2 | BTRFS_DEFRAG_RANGE_COMPRESS 3 | BTRFS_DEFRAG_RANGE_START_IO 4 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_dev_replace_cmds.in: -------------------------------------------------------------------------------- 1 | #val_type uint64_t 2 | BTRFS_IOCTL_DEV_REPLACE_CMD_START 3 | BTRFS_IOCTL_DEV_REPLACE_CMD_STATUS 4 | BTRFS_IOCTL_DEV_REPLACE_CMD_CANCEL 5 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_dev_replace_results.in: -------------------------------------------------------------------------------- 1 | #val_type uint64_t 2 | BTRFS_IOCTL_DEV_REPLACE_RESULT_NO_ERROR 3 | BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED 4 | BTRFS_IOCTL_DEV_REPLACE_RESULT_ALREADY_STARTED 5 | BTRFS_IOCTL_DEV_REPLACE_RESULT_SCRUB_INPROGRESS 6 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_dev_replace_state.in: -------------------------------------------------------------------------------- 1 | #val_type uint64_t 2 | BTRFS_IOCTL_DEV_REPLACE_STATE_NEVER_STARTED 3 | BTRFS_IOCTL_DEV_REPLACE_STATE_STARTED 4 | BTRFS_IOCTL_DEV_REPLACE_STATE_FINISHED 5 | BTRFS_IOCTL_DEV_REPLACE_STATE_CANCELED 6 | BTRFS_IOCTL_DEV_REPLACE_STATE_SUSPENDED 7 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_dev_stats_flags.in: -------------------------------------------------------------------------------- 1 | #val_type uint64_t 2 | BTRFS_DEV_STATS_RESET 3 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_dev_stats_values.in: -------------------------------------------------------------------------------- 1 | #val_type uint64_t 2 | #unconditional 3 | BTRFS_DEV_STAT_WRITE_ERRS 4 | BTRFS_DEV_STAT_READ_ERRS 5 | BTRFS_DEV_STAT_FLUSH_ERRS 6 | BTRFS_DEV_STAT_CORRUPTION_ERRS 7 | BTRFS_DEV_STAT_GENERATION_ERRS 8 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_features_compat.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/krytarowski/picotrace/b2b7d9922f189021dff289d306413058b594811d/strace/xlat/btrfs_features_compat.in -------------------------------------------------------------------------------- /strace/xlat/btrfs_features_compat_ro.in: -------------------------------------------------------------------------------- 1 | #val_type uint64_t 2 | BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE (1ULL << 0) 3 | BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE_VALID (1ULL << 1) 4 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_logical_ino_args_flags.in: -------------------------------------------------------------------------------- 1 | BTRFS_LOGICAL_INO_ARGS_IGNORE_OFFSET (1ULL << 0) 2 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_qgroup_ctl_cmds.in: -------------------------------------------------------------------------------- 1 | #val_type uint64_t 2 | BTRFS_QUOTA_CTL_ENABLE 3 | BTRFS_QUOTA_CTL_DISABLE 4 | BTRFS_QUOTA_CTL_RESCAN__NOTUSED 5 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_qgroup_inherit_flags.in: -------------------------------------------------------------------------------- 1 | #val_type uint64_t 2 | BTRFS_QGROUP_INHERIT_SET_LIMITS 3 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_qgroup_status_flags.in: -------------------------------------------------------------------------------- 1 | #val_type uint64_t 2 | BTRFS_QGROUP_STATUS_FLAG_ON (1ULL << 0) 3 | BTRFS_QGROUP_STATUS_FLAG_RESCAN (1ULL << 1) 4 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_scrub_flags.in: -------------------------------------------------------------------------------- 1 | #val_type uint64_t 2 | BTRFS_SCRUB_READONLY 1 3 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_send_flags.in: -------------------------------------------------------------------------------- 1 | BTRFS_SEND_FLAG_NO_FILE_DATA 0x1 2 | BTRFS_SEND_FLAG_OMIT_STREAM_HEADER 0x2 3 | BTRFS_SEND_FLAG_OMIT_END_CMD 0x4 4 | -------------------------------------------------------------------------------- /strace/xlat/btrfs_snap_flags_v2.in: -------------------------------------------------------------------------------- 1 | #val_type uint64_t 2 | BTRFS_SUBVOL_CREATE_ASYNC 3 | BTRFS_SUBVOL_RDONLY 4 | BTRFS_SUBVOL_QGROUP_INHERIT 5 | -------------------------------------------------------------------------------- /strace/xlat/cacheflush_scope.in: -------------------------------------------------------------------------------- 1 | FLUSH_SCOPE_LINE 2 | FLUSH_SCOPE_PAGE 3 | FLUSH_SCOPE_ALL 4 | -------------------------------------------------------------------------------- /strace/xlat/caif_protocols.in: -------------------------------------------------------------------------------- 1 | #value_indexed 2 | CAIFPROTO_AT 0 3 | CAIFPROTO_DATAGRAM 1 4 | CAIFPROTO_DATAGRAM_LOOP 2 5 | CAIFPROTO_UTIL 3 6 | CAIFPROTO_RFM 4 7 | CAIFPROTO_DEBUG 5 8 | -------------------------------------------------------------------------------- /strace/xlat/can_protocols.in: -------------------------------------------------------------------------------- 1 | #value_indexed 2 | CAN_RAW 1 3 | CAN_BCM 2 4 | CAN_TP16 3 5 | CAN_TP20 4 6 | CAN_MCNET 5 7 | CAN_ISOTP 6 8 | -------------------------------------------------------------------------------- /strace/xlat/cap_mask1.in: -------------------------------------------------------------------------------- 1 | #unconditional 2 | 1<