qemu-e2k/linux-user
Miloš Stojanović ba9fcea1cb linux-user: add strace support for uinfo structure of rt_sigqueueinfo() and rt_tgsigqueueinfo()
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: Miloš Stojanović <Milos.Stojanovic@rt-rk.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2017-05-29 14:56:09 +03:00
..
aarch64
alpha
arm
cris
host
hppa
i386
m68k
microblaze
mips
mips64
nios2
openrisc target/openrisc: implement shadow registers 2017-05-04 09:39:01 +09:00
ppc
s390x
sh4
sparc
sparc64
tilegx
unicore32
x86_64
elfload.c target/openrisc: implement shadow registers 2017-05-04 09:39:01 +09:00
errno_defs.h
flat.h
flatload.c
ioctls.h
linux_loop.h
linuxload.c
m68k-sim.c
main.c trivial patches for 2017-05-10 2017-05-10 12:31:19 -04:00
Makefile.objs
mmap.c
qemu.h
safe-syscall.S
signal.c target/openrisc: implement shadow registers 2017-05-04 09:39:01 +09:00
socket.h
strace.c linux-user: add strace support for uinfo structure of rt_sigqueueinfo() and rt_tgsigqueueinfo() 2017-05-29 14:56:09 +03:00
strace.list linux-user: add rt_tgsigqueueinfo() strace 2017-05-29 14:56:08 +03:00
syscall_defs.h linux-user: Add sockopts for IPv6 ping and IPv6 traceroute 2017-02-27 23:10:02 +01:00
syscall_types.h
syscall.c linux-user: add support for rt_tgsigqueueinfo() system call 2017-05-29 14:56:08 +03:00
target_flat.h
trace-events
uaccess.c
uname.c
uname.h
vm86.c