* [PATCH] linux-user: Improve formatting for mremap()
@ 2026-03-07 19:34 deller
2026-03-19 19:42 ` Richard Henderson
0 siblings, 1 reply; 2+ messages in thread
From: deller @ 2026-03-07 19:34 UTC (permalink / raw)
To: qemu-devel; +Cc: deller
From: Helge Deller <deller@gmx.de>
Improve slightly the strace output for mremap().
Print the old_address and new_address as hex values, old_size and
new_size as unsigned, and the flags as integer.
Signed-off-by: Helge Deller <deller@gmx.de>
---
linux-user/strace.list | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/linux-user/strace.list b/linux-user/strace.list
index 51b5ead969..35f001fecd 100644
--- a/linux-user/strace.list
+++ b/linux-user/strace.list
@@ -641,7 +641,7 @@
{ TARGET_NR_mq_unlink, "mq_unlink" , NULL, print_mq_unlink, NULL },
#endif
#ifdef TARGET_NR_mremap
-{ TARGET_NR_mremap, "mremap" , NULL, NULL, NULL },
+{ TARGET_NR_mremap, "mremap" , "%s(%#x,%u,%u,%d,%#x)", NULL, NULL },
#endif
#ifdef TARGET_NR_msgctl
{ TARGET_NR_msgctl, "msgctl" , NULL, NULL, NULL },
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] linux-user: Improve formatting for mremap()
2026-03-07 19:34 [PATCH] linux-user: Improve formatting for mremap() deller
@ 2026-03-19 19:42 ` Richard Henderson
0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2026-03-19 19:42 UTC (permalink / raw)
To: deller, qemu-devel; +Cc: deller
On 3/8/26 08:34, deller@kernel.org wrote:
> From: Helge Deller <deller@gmx.de>
>
> Improve slightly the strace output for mremap().
> Print the old_address and new_address as hex values, old_size and
> new_size as unsigned, and the flags as integer.
>
> Signed-off-by: Helge Deller <deller@gmx.de>
> ---
> linux-user/strace.list | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/linux-user/strace.list b/linux-user/strace.list
> index 51b5ead969..35f001fecd 100644
> --- a/linux-user/strace.list
> +++ b/linux-user/strace.list
> @@ -641,7 +641,7 @@
> { TARGET_NR_mq_unlink, "mq_unlink" , NULL, print_mq_unlink, NULL },
> #endif
> #ifdef TARGET_NR_mremap
> -{ TARGET_NR_mremap, "mremap" , NULL, NULL, NULL },
> +{ TARGET_NR_mremap, "mremap" , "%s(%#x,%u,%u,%d,%#x)", NULL, NULL },
> #endif
> #ifdef TARGET_NR_msgctl
> { TARGET_NR_msgctl, "msgctl" , NULL, NULL, NULL },
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-19 19:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-07 19:34 [PATCH] linux-user: Improve formatting for mremap() deller
2026-03-19 19:42 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox