[PATCH] linux-user: Add strace output for timer_settime64() syscall

Helge Deller posted 1 patch 1 year, 6 months ago
Failed in applying to current master (apply log)
[PATCH] linux-user: Add strace output for timer_settime64() syscall
Posted by Helge Deller 1 year, 6 months ago
Add missing timer_settime64() strace output and specify format for
timer_settime().

Signed-off-by: Helge Deller <deller@gmx.de>

diff --git a/linux-user/strace.list b/linux-user/strace.list
index cd995e5d56..3a898e2532 100644
--- a/linux-user/strace.list
+++ b/linux-user/strace.list
@@ -1534,7 +1534,10 @@
 { TARGET_NR_timer_gettime, "timer_gettime" , NULL, NULL, NULL },
 #endif
 #ifdef TARGET_NR_timer_settime
-{ TARGET_NR_timer_settime, "timer_settime" , NULL, NULL, NULL },
+{ TARGET_NR_timer_settime, "timer_settime" , "%s(%d,%d,%p,%p)", NULL, NULL },
+#endif
+#ifdef TARGET_NR_timer_settime64
+{ TARGET_NR_timer_settime64, "timer_settime64" , "%s(%d,%d,%p,%p)", NULL, NULL },
 #endif
 #ifdef TARGET_NR_timerfd
 { TARGET_NR_timerfd, "timerfd" , NULL, NULL, NULL },
Re: [PATCH] linux-user: Add strace output for timer_settime64() syscall
Posted by Laurent Vivier 1 year, 6 months ago
Le 24/10/2022 à 22:45, Helge Deller a écrit :
> Add missing timer_settime64() strace output and specify format for
> timer_settime().
> 
> Signed-off-by: Helge Deller <deller@gmx.de>
> 
> diff --git a/linux-user/strace.list b/linux-user/strace.list
> index cd995e5d56..3a898e2532 100644
> --- a/linux-user/strace.list
> +++ b/linux-user/strace.list
> @@ -1534,7 +1534,10 @@
>   { TARGET_NR_timer_gettime, "timer_gettime" , NULL, NULL, NULL },
>   #endif
>   #ifdef TARGET_NR_timer_settime
> -{ TARGET_NR_timer_settime, "timer_settime" , NULL, NULL, NULL },
> +{ TARGET_NR_timer_settime, "timer_settime" , "%s(%d,%d,%p,%p)", NULL, NULL },
> +#endif
> +#ifdef TARGET_NR_timer_settime64
> +{ TARGET_NR_timer_settime64, "timer_settime64" , "%s(%d,%d,%p,%p)", NULL, NULL },
>   #endif
>   #ifdef TARGET_NR_timerfd
>   { TARGET_NR_timerfd, "timerfd" , NULL, NULL, NULL },
> 

Applied to my linux-user-for-7.2 branch.

Thanks,
Laurent