qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Subject: Re: [PATCH] linux-user: Add strace for rseq
Date: Thu, 28 Aug 2025 07:18:23 +1000	[thread overview]
Message-ID: <dcb3ddc6-4c6b-4691-b9e7-cfb25bd5e252@linaro.org> (raw)
In-Reply-To: <20250826060341.1118670-1-joel@jms.id.au>

On 8/26/25 16:03, Joel Stanley wrote:
>   build/qemu-riscv64 -cpu rv64,v=on -d strace  build/tests/tcg/riscv64-linux-user/test-vstart-overflow
>   1118081 riscv_hwprobe(0xffffbc038200,1,0,0,0,0) = 0
>   1118081 brk(NULL) = 0x0000000000085000
>   1118081 brk(0x0000000000085b00) = 0x0000000000085b00
>   1118081 set_tid_address(0x850f0) = 1118081
>   1118081 set_robust_list(0x85100,24) = -1 errno=38 (Function not implemented)
>   1118081 rseq(0x857c0,32,0,0xf1401073) = -1 errno=38 (Function not implemented)
> 
> Signed-off-by: Joel Stanley <joel@jms.id.au>
> ---
>   linux-user/strace.list | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/linux-user/strace.list b/linux-user/strace.list
> index ab818352a90c..51b5ead9696c 100644
> --- a/linux-user/strace.list
> +++ b/linux-user/strace.list
> @@ -1719,3 +1719,6 @@
>   #ifdef TARGET_NR_riscv_hwprobe
>   { TARGET_NR_riscv_hwprobe, "riscv_hwprobe" , "%s(%p,%d,%d,%d,%d,%d)", NULL, NULL },
>   #endif
> +#ifdef TARGET_NR_rseq
> +{ TARGET_NR_rseq, "rseq" , "%s(%p,%u,%d,%#x)", NULL, NULL },
> +#endif

Usually the strace comes with the implementation.  But considering that we'll never be 
able to implement rseq in qemu, this seems reasonable.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

and queued.


r~


      reply	other threads:[~2025-08-27 21:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-26  6:03 [PATCH] linux-user: Add strace for rseq Joel Stanley
2025-08-27 21:18 ` Richard Henderson [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=dcb3ddc6-4c6b-4691-b9e7-cfb25bd5e252@linaro.org \
    --to=richard.henderson@linaro.org \
    --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).