qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Laurent Vivier
Subject: [PULL 37/38] linux-user: Log tid for strace
Date: Wed, 28 Sep 2022 10:15:16 +0200

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 --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) {
-- 
2.37.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]