On 10/22/24 03:26, Ilya Leoshkevich wrote:
Add a function for formatting target sigsets. It can be useful for
other syscalls in the future, so put it into the beginning of strace.c.
For simplicity, do not implement the strace's ~[] output syntax.
Add a rt_sigprocmask return handler.
Example outputs:
753914 rt_sigprocmask(SIG_BLOCK,[SIGCHLD SIGTSTP SIGTTIN
SIGTTOU],0x00007f80fddfe380,8) = 0 (oldset=[SIGTTOU])
753914 rt_sigprocmask(SIG_SETMASK,[SIGCHLD],NULL,8) = 0
753914 rt_sigprocmask(SIG_BLOCK,NULL,0x00007f80fddff3c0,8) = 0 (oldset=[])
Signed-off-by: Ilya Leoshkevich <i...@linux.ibm.com>
---
v1:
https://lore.kernel.org/qemu-devel/20241017091449.443799-1-...@linux.ibm.com/
v1 -> v2: Do not split operands across syscall completion (Richard).
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
and queued.
r~