S

strace

strace is a diagnostic, debugging and instructional userspace utility for Linux

  • Dmitry V. Levin's avatar
    i386, x32: use upoke() instead of set_regs() · c40270dd
    Dmitry V. Levin authored
    This brings i386 and x32 in line with x86_64
    and removes redundant HAVE_GETREGS_OLD checks.
    Besides that, use of PTRACE_GET_SYSCALL_INFO would require
    an extra get_regs() invocation before set_regs().
    
    * syscall.c (ARCH_MIGHT_USE_SET_REGS): Define to 1.
    [HAVE_GETREGS_OLD] (ARCH_MIGHT_USE_SET_REGS): Redefine to 0.
    (ptrace_setregset_or_setregs): Check ARCH_MIGHT_USE_SET_REGS instead
    of HAVE_GETREGS_OLD.
    * linux/i386/arch_regs.c (ARCH_MIGHT_USE_SET_REGS): Redefine to 0.
    * linux/powerpc/arch_regs.c: Likewise.
    * linux/x86_64/arch_regs.c: Likewise.
    * linux/i386/set_error.c (arch_set_error, arch_set_success)
    [!HAVE_GETREGS_OLD]: Remove.
    * linux/i386/set_scno.c (arch_set_scno) [!HAVE_GETREGS_OLD]: Remove.
    * linux/powerpc/set_error.c (arch_set_error, arch_set_success)
    [!HAVE_GETREGS_OLD]: Remove.
    * linux/powerpc/set_scno.c (arch_set_scno) [!HAVE_GETREGS_OLD]: Remove.
    * linux/x86_64/set_error.c [!HAVE_GETREGS_OLD]: Remove.
    * linux/x86_64/set_scno.c: Likewise.
    c40270dd
Name
Last commit
Last update
ci Loading commit data...
debian Loading commit data...
dist Loading commit data...
linux Loading commit data...
m4 Loading commit data...
maint Loading commit data...
qemu_multiarch_testing Loading commit data...
test Loading commit data...
tests Loading commit data...
xlat Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
CREDITS.in Loading commit data...
ChangeLog-CVS Loading commit data...
HACKING-scripts Loading commit data...
INSTALL-git.md Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README-configure Loading commit data...
README-github_gitlab-autogenerated-archives.txt Loading commit data...
README-hacking Loading commit data...
README-linux-ptrace Loading commit data...
README-mpers Loading commit data...
README.md Loading commit data...
access.c Loading commit data...
affinity.c Loading commit data...
aio.c Loading commit data...
alpha.c Loading commit data...
arch_defs.h Loading commit data...
basic_filters.c Loading commit data...
bind.c Loading commit data...
bjm.c Loading commit data...
block.c Loading commit data...
bootstrap Loading commit data...
bpf.c Loading commit data...
bpf_attr.h Loading commit data...
bpf_filter.c Loading commit data...
bpf_filter.h Loading commit data...
bpf_fprog.h Loading commit data...
bpf_seccomp_filter.c Loading commit data...
bpf_sock_filter.c Loading commit data...
btrfs.c Loading commit data...
build_static_example.sh Loading commit data...
cacheflush.c Loading commit data...
capability.c Loading commit data...
caps0.h Loading commit data...
caps1.h Loading commit data...
chdir.c Loading commit data...
chmod.c Loading commit data...
clone.c Loading commit data...
configure.ac Loading commit data...
copy_file_range.c Loading commit data...
copyright-year-gen Loading commit data...
count.c Loading commit data...
defs.h Loading commit data...
delay.c Loading commit data...
delay.h Loading commit data...
desc.c Loading commit data...
dirent.c Loading commit data...
dirent64.c Loading commit data...
dm.c Loading commit data...
dyxlat.c Loading commit data...
empty.h Loading commit data...
epoll.c Loading commit data...
error_prints.c Loading commit data...
error_prints.h Loading commit data...
evdev.c Loading commit data...
evdev_mpers.c Loading commit data...
eventfd.c Loading commit data...
execve.c Loading commit data...
f_owner_ex.h Loading commit data...
fadvise.c Loading commit data...
fallocate.c Loading commit data...
fanotify.c Loading commit data...
fchownat.c Loading commit data...
fcntl.c Loading commit data...
fetch_bpf_fprog.c Loading commit data...
fetch_indirect_syscall_args.c Loading commit data...
fetch_struct_flock.c Loading commit data...
fetch_struct_keyctl_kdf_params.c Loading commit data...
fetch_struct_mmsghdr.c Loading commit data...
fetch_struct_msghdr.c Loading commit data...
fetch_struct_stat.c Loading commit data...
fetch_struct_stat64.c Loading commit data...
fetch_struct_statfs.c Loading commit data...
fetch_struct_xfs_quotastat.c Loading commit data...
file-date-gen Loading commit data...
file_handle.c Loading commit data...
file_ioctl.c Loading commit data...
filter.h Loading commit data...
filter_qualify.c Loading commit data...
flock.c Loading commit data...
flock.h Loading commit data...
fs_x_ioctl.c Loading commit data...
fstatfs.c Loading commit data...
fstatfs64.c Loading commit data...
futex.c Loading commit data...
gcc_compat.h Loading commit data...
gen_bpf_attr_check.sh Loading commit data...
generate_mpers_am.sh Loading commit data...
generate_sen.sh Loading commit data...
get_robust_list.c Loading commit data...
getcpu.c Loading commit data...
getcwd.c Loading commit data...
getpagesize.c Loading commit data...
getrandom.c Loading commit data...
git-set-file-times Loading commit data...
git-version-gen Loading commit data...
gitlog-to-changelog Loading commit data...
hdio.c Loading commit data...
hostname.c Loading commit data...
inotify.c Loading commit data...
inotify_ioctl.c Loading commit data...
io.c Loading commit data...
ioctl.c Loading commit data...
ioctl_iocdef.c Loading commit data...
ioctlsort.c Loading commit data...
ioperm.c Loading commit data...
iopl.c Loading commit data...
ioprio.c Loading commit data...
ipc.c Loading commit data...
ipc_defs.h Loading commit data...
ipc_msg.c Loading commit data...
ipc_msgctl.c Loading commit data...
ipc_sem.c Loading commit data...
ipc_shm.c Loading commit data...
ipc_shmctl.c Loading commit data...
kcmp.c Loading commit data...
kernel_types.h Loading commit data...
kexec.c Loading commit data...
keyctl.c Loading commit data...
keyctl_kdf_params.h Loading commit data...
kill_save_errno.h Loading commit data...
kvm.c Loading commit data...
largefile_wrappers.h Loading commit data...
ldt.c Loading commit data...
link.c Loading commit data...
listen.c Loading commit data...
lookup_dcookie.c Loading commit data...
loop.c Loading commit data...
lseek.c Loading commit data...
macros.h Loading commit data...
make-dist Loading commit data...
make-dsc Loading commit data...
mem.c Loading commit data...
membarrier.c Loading commit data...
memfd_create.c Loading commit data...
mknod.c Loading commit data...
mmap_cache.c Loading commit data...
mmap_cache.h Loading commit data...
mmap_notify.c Loading commit data...
mmap_notify.h Loading commit data...
mmsghdr.c Loading commit data...
mount.c Loading commit data...
mpers.awk Loading commit data...
mpers.sh Loading commit data...
mpers_test.sh Loading commit data...
mpers_type.h Loading commit data...
mq.c Loading commit data...
msghdr.c Loading commit data...
msghdr.h Loading commit data...
mtd.c Loading commit data...
native_defs.h Loading commit data...
nbd_ioctl.c Loading commit data...
negated_errno.h Loading commit data...
net.c Loading commit data...
netlink.c Loading commit data...
netlink.h Loading commit data...
netlink_crypto.c Loading commit data...
netlink_inet_diag.c Loading commit data...
netlink_kobject_uevent.c Loading commit data...
netlink_kobject_uevent.h Loading commit data...
netlink_netfilter.c Loading commit data...
netlink_netlink_diag.c Loading commit data...
netlink_packet_diag.c Loading commit data...
netlink_route.c Loading commit data...
netlink_route.h Loading commit data...
netlink_selinux.c Loading commit data...
netlink_smc_diag.c Loading commit data...
netlink_sock_diag.c Loading commit data...
netlink_sock_diag.h Loading commit data...
netlink_unix_diag.c Loading commit data...
nlattr.c Loading commit data...
nlattr.h Loading commit data...
nsfs.c Loading commit data...
nsfs.h Loading commit data...
nsig.h Loading commit data...
numa.c Loading commit data...
number_set.c Loading commit data...
number_set.h Loading commit data...
oldstat.c Loading commit data...
open.c Loading commit data...
or1k_atomic.c Loading commit data...
pathtrace.c Loading commit data...
perf.c Loading commit data...
perf_event_struct.h Loading commit data...
perf_ioctl.c Loading commit data...
personality.c Loading commit data...
pkeys.c Loading commit data...
poll.c Loading commit data...
prctl.c Loading commit data...
print_aio_sigset.c Loading commit data...
print_dev_t.c Loading commit data...
print_fields.h Loading commit data...
print_group_req.c Loading commit data...
print_ifindex.c Loading commit data...
print_instruction_pointer.c Loading commit data...
print_mac.c Loading commit data...
print_mq_attr.c Loading commit data...
print_msgbuf.c Loading commit data...
print_sg_req_info.c Loading commit data...
print_sigevent.c Loading commit data...
print_statfs.c Loading commit data...
print_struct_stat.c Loading commit data...
print_time.c Loading commit data...
print_timespec.c Loading commit data...
print_timeval.c Loading commit data...
print_timex.c Loading commit data...
printmode.c Loading commit data...
printrusage.c Loading commit data...
printsiginfo.c Loading commit data...
printsiginfo.h Loading commit data...
process.c Loading commit data...
process_vm.c Loading commit data...
ptp.c Loading commit data...
ptrace.h Loading commit data...
quota.c Loading commit data...
random_ioctl.c Loading commit data...
readahead.c Loading commit data...
readlink.c Loading commit data...
reboot.c Loading commit data...
regs.h Loading commit data...
renameat.c Loading commit data...
resource.c Loading commit data...
retval.c Loading commit data...
retval.h Loading commit data...
riscv.c Loading commit data...
rt_sigframe.c Loading commit data...
rt_sigreturn.c Loading commit data...
rtc.c Loading commit data...
rtnl_addr.c Loading commit data...
rtnl_addrlabel.c Loading commit data...
rtnl_dcb.c Loading commit data...
rtnl_link.c Loading commit data...
rtnl_mdb.c Loading commit data...
rtnl_neigh.c Loading commit data...
rtnl_neightbl.c Loading commit data...
rtnl_netconf.c Loading commit data...
rtnl_nsid.c Loading commit data...
rtnl_route.c Loading commit data...
rtnl_rule.c Loading commit data...
rtnl_tc.c Loading commit data...
rtnl_tc_action.c Loading commit data...
s390.c Loading commit data...
sched.c Loading commit data...
sched_attr.h Loading commit data...
scno.am Loading commit data...
scno.head Loading commit data...
scsi.c Loading commit data...
seccomp.c Loading commit data...
sendfile.c Loading commit data...
sg_io_v3.c Loading commit data...
sg_io_v4.c Loading commit data...
shutdown.c Loading commit data...
sigaltstack.c Loading commit data...
sigevent.h Loading commit data...
signal.c Loading commit data...
signalfd.c Loading commit data...
sigreturn.c Loading commit data...
sock.c Loading commit data...
sockaddr.c Loading commit data...
socketcall.c Loading commit data...
socketutils.c Loading commit data...
sparc.c Loading commit data...
sram_alloc.c Loading commit data...
stat.c Loading commit data...
stat.h Loading commit data...
stat64.c Loading commit data...
statfs.c Loading commit data...
statfs.h Loading commit data...
statfs64.c Loading commit data...
static_assert.h Loading commit data...
statx.c Loading commit data...
statx.h Loading commit data...
strace-graph Loading commit data...
strace-log-merge Loading commit data...
strace-log-merge.1.in Loading commit data...
strace.1.in Loading commit data...
strace.c Loading commit data...
strace.spec.in Loading commit data...
strace.svg Loading commit data...
string_to_uint.c Loading commit data...
string_to_uint.h Loading commit data...
swapon.c Loading commit data...
sync_file_range.c Loading commit data...
sync_file_range2.c Loading commit data...
syscall.c Loading commit data...
sysctl.c Loading commit data...
sysent.h Loading commit data...
sysent_shorthand_defs.h Loading commit data...
sysent_shorthand_undefs.h Loading commit data...
sysinfo.c Loading commit data...
syslog.c Loading commit data...
sysmips.c Loading commit data...
term.c Loading commit data...
time.c Loading commit data...
times.c Loading commit data...
trace_event.h Loading commit data...
truncate.c Loading commit data...
ubi.c Loading commit data...
ucopy.c Loading commit data...
uid.c Loading commit data...
uid16.c Loading commit data...
umask.c Loading commit data...
umount.c Loading commit data...
uname.c Loading commit data...
unwind-libdw.c Loading commit data...
unwind-libunwind.c Loading commit data...
unwind.c Loading commit data...
unwind.h Loading commit data...
upeek.c Loading commit data...
upoke.c Loading commit data...
userfaultfd.c Loading commit data...
ustat.c Loading commit data...
util.c Loading commit data...
utime.c Loading commit data...
utimes.c Loading commit data...
v4l2.c Loading commit data...
wait.c Loading commit data...
xattr.c Loading commit data...
xfs_quota_stat.h Loading commit data...
xlat.c Loading commit data...
xlat.h Loading commit data...
xmalloc.c Loading commit data...
xmalloc.h Loading commit data...
xstring.h Loading commit data...