From: Richard Henderson <richard.henderson@linaro.org>
To: Ilya Leoshkevich <iii@linux.ibm.com>, Laurent Vivier <laurent@vivier.eu>
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH] linux-user: Trace rt_sigprocmask's sigsets
Date: Mon, 21 Oct 2024 18:50:37 -0700 [thread overview]
Message-ID: <94e56b07-1f4d-4c43-9239-795ed060016d@linaro.org> (raw)
In-Reply-To: <20241017091449.443799-1-iii@linux.ibm.com>
On 10/17/24 02:14, Ilya Leoshkevich wrote:
> @@ -3312,10 +3358,26 @@ print_rt_sigprocmask(CPUArchState *cpu_env, const struct syscallname *name,
> case TARGET_SIG_SETMASK: how = "SIG_SETMASK"; break;
> }
> qemu_log("%s,", how);
> - print_pointer(arg1, 0);
> - print_pointer(arg2, 0);
> + print_target_sigset_t(arg1, arg3, 0);
> +}
> +
> +static void
> +print_rt_sigprocmask_ret(CPUArchState *cpu_env, const struct syscallname *name,
> + abi_long ret, abi_long arg0, abi_long arg1,
> + abi_long arg2, abi_long arg3, abi_long arg4,
> + abi_long arg5)
> +{
> + if (is_error(ret)) {
> + print_pointer(arg2, 0);
> + } else {
> + print_target_sigset_t(arg2, arg3, 0);
> + }
> print_raw_param("%u", arg3, 1);
> print_syscall_epilogue(name);
I'm not keen on splitting operands across syscall completion.
There are a few existing syscalls for which we print such results afterward:
clock_gettime
clock_getres
wait4
waitpid
but we're certainly not consistent about it.
r~
next prev parent reply other threads:[~2024-10-22 1:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-17 9:14 [PATCH] linux-user: Trace rt_sigprocmask's sigsets Ilya Leoshkevich
2024-10-22 1:50 ` Richard Henderson [this message]
2024-10-22 9:41 ` Ilya Leoshkevich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=94e56b07-1f4d-4c43-9239-795ed060016d@linaro.org \
--to=richard.henderson@linaro.org \
--cc=iii@linux.ibm.com \
--cc=laurent@vivier.eu \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).