Skip to contentSkip to conversation

linux-user: Add strace output for clock_getres_time64() and futex_time64()

PATCH Applied Helge Deller 2 participants 3 messages Jan 15, 2023 – Jan 26, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: Add strace output for clock_getres_time64() and futex_time64()

Add the two syscalls to strace output to avoid "Unknown syscall" message.

---
 linux-user/strace.list | 6 ++++++
 1 file changed, 6 insertions(+)
linux-user/strace.list +6 -0
index 41bb6bbfbc..3924046426 100644
@@ -86,6 +86,9 @@
 { TARGET_NR_clock_getres, "clock_getres" , NULL, print_clock_getres,
                           print_syscall_ret_clock_getres },
 #endif
+#ifdef TARGET_NR_clock_getres_time64
+{ TARGET_NR_clock_getres_time64, "clock_getres_time64" , NULL, NULL, NULL },
+#endif
 #ifdef TARGET_NR_clock_gettime
 { TARGET_NR_clock_gettime, "clock_gettime" , NULL, print_clock_gettime,
                            print_syscall_ret_clock_gettime },
@@ -275,6 +278,9 @@
 #ifdef TARGET_NR_futex
 { TARGET_NR_futex, "futex" , NULL, print_futex, NULL },
 #endif
+#ifdef TARGET_NR_futex_time64
+{ TARGET_NR_futex_time64, "futex_time64" , NULL, NULL, NULL },
+#endif
 #ifdef TARGET_NR_futimesat
 { TARGET_NR_futimesat, "futimesat" , NULL, print_futimesat, NULL },
 #endif

--
2.38.1

#2 lore raw
In reply to Helge Deller

Le 15/01/2023 à 12:35, Helge Deller a écrit :

Quoted 32 lines

Add the two syscalls to strace output to avoid "Unknown syscall" message.

---
  linux-user/strace.list | 6 ++++++
  1 file changed, 6 insertions(+)
linux-user/strace.list +6 -1
index 41bb6bbfbc..3924046426 100644
@@ -86,6 +86,9 @@
  { TARGET_NR_clock_getres, "clock_getres" , NULL, print_clock_getres,
                            print_syscall_ret_clock_getres },
  #endif
+#ifdef TARGET_NR_clock_getres_time64
+{ TARGET_NR_clock_getres_time64, "clock_getres_time64" , NULL, NULL, NULL },
+#endif
  #ifdef TARGET_NR_clock_gettime
  { TARGET_NR_clock_gettime, "clock_gettime" , NULL, print_clock_gettime,
                             print_syscall_ret_clock_gettime },
@@ -275,6 +278,9 @@
  #ifdef TARGET_NR_futex
  { TARGET_NR_futex, "futex" , NULL, print_futex, NULL },
  #endif
+#ifdef TARGET_NR_futex_time64
+{ TARGET_NR_futex_time64, "futex_time64" , NULL, NULL, NULL },
+#endif
  #ifdef TARGET_NR_futimesat
  { TARGET_NR_futimesat, "futimesat" , NULL, print_futimesat, NULL },
  #endif
--
Quoted 3 lines

2.38.1

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

Thanks,
Laurent