• Miloš Stojanović's avatar
    linux-user: add strace support for uinfo structure of rt_sigqueueinfo() and rt_tgsigqueueinfo() · ba9fcea1
    Miloš Stojanović authored
    This commit adds support for printing the content of the target_siginfo_t
    structure in a similar way to how it is printed by the host strace. The
    pointer to this structure is sent as the last argument of the
    rt_sigqueueinfo() and rt_tgsigqueueinfo() system calls.
    For this purpose, print_siginfo() is used and the get_target_siginfo()
    function is implemented in order to get the information obtained from
    the pointer into the form that print_siginfo() expects.
    
    The get_target_siginfo() function is based on
    host_to_target_siginfo_noswap() in linux-user mode, but here both
    arguments are pointers to target_siginfo_t, so instead of converting
    the information to siginfo_t it just extracts and copies it to a
    target_siginfo_t structure.
    
    Prior to this commit, typical strace output used to look like this:
    8307 rt_sigqueueinfo(8307,50,0x00000040007ff6b0) = 0
    
    After this commit, it looks like this:
    8307 rt_sigqueueinfo(8307,50,{si_signo=50, si_code=SI_QUEUE, si_pid=8307,
    si_uid=1000, si_sigval=17716762128}) = 0
    Signed-off-by: 's avatarMiloš Stojanović <Milos.Stojanovic@rt-rk.com>
    Signed-off-by: 's avatarRiku Voipio <riku.voipio@linaro.org>
    ba9fcea1
Name
Last commit
Last update
..
aarch64 Loading commit data...
alpha Loading commit data...
arm Loading commit data...
cris Loading commit data...
host Loading commit data...
hppa Loading commit data...
i386 Loading commit data...
m68k Loading commit data...
microblaze Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
nios2 Loading commit data...
openrisc Loading commit data...
ppc Loading commit data...
s390x Loading commit data...
sh4 Loading commit data...
sparc Loading commit data...
sparc64 Loading commit data...
tilegx Loading commit data...
unicore32 Loading commit data...
x86_64 Loading commit data...
Makefile.objs Loading commit data...
elfload.c Loading commit data...
errno_defs.h Loading commit data...
flat.h Loading commit data...
flatload.c Loading commit data...
ioctls.h Loading commit data...
linux_loop.h Loading commit data...
linuxload.c Loading commit data...
m68k-sim.c Loading commit data...
main.c Loading commit data...
mmap.c Loading commit data...
qemu.h Loading commit data...
safe-syscall.S Loading commit data...
signal.c Loading commit data...
socket.h Loading commit data...
strace.c Loading commit data...
strace.list Loading commit data...
syscall.c Loading commit data...
syscall_defs.h Loading commit data...
syscall_types.h Loading commit data...
target_flat.h Loading commit data...
trace-events Loading commit data...
uaccess.c Loading commit data...
uname.c Loading commit data...
uname.h Loading commit data...
vm86.c Loading commit data...