qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Ilya Leoshkevich <iii@linux.ibm.com>
To: Richard Henderson <richard.henderson@linaro.org>,
	Laurent Vivier <laurent@vivier.eu>
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH] linux-user: Trace rt_sigprocmask's sigsets
Date: Tue, 22 Oct 2024 11:41:08 +0200	[thread overview]
Message-ID: <4cc78de8a3fde301774f1ce2e2f41876b60e2996.camel@linux.ibm.com> (raw)
In-Reply-To: <94e56b07-1f4d-4c43-9239-795ed060016d@linaro.org>

On Mon, 2024-10-21 at 18:50 -0700, Richard Henderson wrote:
> 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~

I wanted to stay as close as possible to strace here, but I don't
really have a strong preference. I will send a v2.

      reply	other threads:[~2024-10-22  9:41 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
2024-10-22  9:41   ` Ilya Leoshkevich [this message]

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=4cc78de8a3fde301774f1ce2e2f41876b60e2996.camel@linux.ibm.com \
    --to=iii@linux.ibm.com \
    --cc=laurent@vivier.eu \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.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).