summaryrefslogtreecommitdiffstats
path: root/include/qapi/visitor.h
diff options
context:
space:
mode:
authorMiloš Stojanović2017-05-15 16:59:49 +0200
committerRiku Voipio2017-05-29 13:56:09 +0200
commitba9fcea1cb6d80536f780760d870416fe5b85863 (patch)
tree4797dabf846681aa84dbb46f2d52782058013052 /include/qapi/visitor.h
parentlinux-user: fix inconsistent spaces in print_siginfo() output (diff)
downloadqemu-ba9fcea1cb6d80536f780760d870416fe5b85863.tar.gz
qemu-ba9fcea1cb6d80536f780760d870416fe5b85863.tar.xz
qemu-ba9fcea1cb6d80536f780760d870416fe5b85863.zip
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>
Diffstat (limited to 'include/qapi/visitor.h')
0 files changed, 0 insertions, 0 deletions