Skip to contentSkip to conversation

linux-user/strace.list: add riscv_hwprobe entry

PATCH Applied Daniel Henrique Barboza 3 participants 3 messages Jul 28, 2025 – Jul 29, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user/strace.list: add riscv_hwprobe entry

We're missing a strace entry for riscv_hwprobe, and using -strace will report it as "Unknown syscall 258".

After this patch we'll have:

$ ./build/qemu-riscv64 -strace test_mutex_riscv
110182 riscv_hwprobe(0x7f207efdc700,1,0,0,0,0) = 0
110182 brk(NULL) = 0x0000000000082000
(...)
---
 linux-user/strace.list | 3 +++
 1 file changed, 3 insertions(+)
linux-user/strace.list +3 -0
index fdf94ef32a..ab818352a9 100644
@@ -1716,3 +1716,6 @@
 { TARGET_NR_clock_gettime64, "clock_gettime64" , NULL, print_clock_gettime64,
                            print_syscall_ret_clock_gettime64 },
 #endif
+#ifdef TARGET_NR_riscv_hwprobe
+{ TARGET_NR_riscv_hwprobe, "riscv_hwprobe" , "%s(%p,%d,%d,%d,%d,%d)", NULL, NULL },
+#endif
Signature · 1 line
2.50.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 20 lines · Daniel Henrique Barboza

We're missing a strace entry for riscv_hwprobe, and using -strace will report it as "Unknown syscall 258".

After this patch we'll have:

$ ./build/qemu-riscv64 -strace test_mutex_riscv
110182 riscv_hwprobe(0x7f207efdc700,1,0,0,0,0) = 0
110182 brk(NULL) = 0x0000000000082000
(...)
---
  linux-user/strace.list | 3 +++
  1 file changed, 3 insertions(+)
linux-user/strace.list +0 -0
index fdf94ef32a..ab818352a9 100644

linux-user/strace.list line 1721

Quoted 6 lines
linux-user/strace.list +3 -0
@@ -1716,3 +1716,6 @@
  { TARGET_NR_clock_gettime64, "clock_gettime64" , NULL, print_clock_gettime64,
                             print_syscall_ret_clock_gettime64 },
  #endif
+#ifdef TARGET_NR_riscv_hwprobe
+{ TARGET_NR_riscv_hwprobe, "riscv_hwprobe" , "%s(%p,%d,%d,%d,%d,%d)", NULL, NULL },
+#endif

r~

#2 lore raw
In reply to Daniel Henrique Barboza
Quoted 4 lines · Daniel Henrique Barboza

We're missing a strace entry for riscv_hwprobe, and using -strace will report it as "Unknown syscall 258".

Quoted 8 lines

After this patch we'll have:

$ ./build/qemu-riscv64 -strace test_mutex_riscv
110182 riscv_hwprobe(0x7f207efdc700,1,0,0,0,0) = 0
110182 brk(NULL) = 0x0000000000082000
(...)

Thanks!

Applied to riscv-to-apply.next

Alistair

Quoted 19 lines
---
 linux-user/strace.list | 3 +++
 1 file changed, 3 insertions(+)
linux-user/strace.list +3 -1
index fdf94ef32a..ab818352a9 100644
@@ -1716,3 +1716,6 @@
 { TARGET_NR_clock_gettime64, "clock_gettime64" , NULL, print_clock_gettime64,
                            print_syscall_ret_clock_gettime64 },
 #endif
+#ifdef TARGET_NR_riscv_hwprobe
+{ TARGET_NR_riscv_hwprobe, "riscv_hwprobe" , "%s(%p,%d,%d,%d,%d,%d)", NULL, NULL },
+#endif
--

2.50.1