diff mbox series

[PULL,37/38] linux-user: Log tid for strace

Message ID 20220928081517.734954-38-laurent@vivier.eu
State New
Headers show
Series None | expand

Commit Message

Laurent Vivier Sept. 28, 2022, 8:15 a.m. UTC
From: Richard Henderson <richard.henderson@linaro.org>

Printing the same pid for all threads isn't helpful.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20220829021006.67305-9-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 linux-user/strace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/linux-user/strace.c b/linux-user/strace.c
index 37bc96df9bb6..e02dbc3a7108 100644
--- a/linux-user/strace.c
+++ b/linux-user/strace.c
@@ -3928,7 +3928,7 @@  print_syscall(CPUArchState *cpu_env, int num,
     if (!f) {
         return;
     }
-    fprintf(f, "%d ", getpid());
+    fprintf(f, "%d ", gettid());
 
     for (i = 0; i < nsyscalls; i++) {
         if (scnames[i].nr == num) {