diff mbox series

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

Message ID Y1b5eIXFoMRDcDL9@p100 (mailing list archive)
State New, archived
Headers show
Series linux-user: Add strace output for timer_settime64() syscall | expand

Commit Message

Helge Deller Oct. 24, 2022, 8:45 p.m. UTC
Add missing timer_settime64() strace output and specify format for
timer_settime().

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

Comments

Laurent Vivier Nov. 2, 2022, 4:21 p.m. UTC | #1
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
diff mbox series

Patch

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 },