From patchwork Wed Sep 28 08:15:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 610090 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp184354pvb; Wed, 28 Sep 2022 04:14:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ESC78JBfdhx9OeQdy5d89svYjMLHdbwKk59WIJqtl2zm51/QUqZMPmlIVKU0kVgNFE9xR X-Received: by 2002:ac8:5b53:0:b0:35b:a603:6cdf with SMTP id n19-20020ac85b53000000b0035ba6036cdfmr26460842qtw.357.1664363685372; Wed, 28 Sep 2022 04:14:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664363685; cv=none; d=google.com; s=arc-20160816; b=MMGlWCD78Q9A/pbCSXi691sSD/+OAeD88pzYa0vT8nDcMn3ou/OI/bIZ392gflzuba 8EusGV7aqlzFSo1hqiDbwZmNWT2xT8T+JWJPqE7/vc7KfUzP6TtqM4c9OerCtXjUH2LS vv7gYYddxC25z372talcpaBfFpOw856c7a/xaCEZFUO/rMipqTuW7sCxJJIqhxsl9n3z KpWvRde7mUkHzEb2Rrdo4b+kC15uR5zSaDvDQvh5Kzao/3RAiDzMIQuxh0LaVPbOWpHT K1qIk0Oz646LDPhENncNWcViDxXv+UoHvnK8c/NJLDjIGaDEvbblN3NRKOmYWCVIEoH1 R+pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=T2xuYH/ZkXKnO9KmgNKLrbBAYDtKrtJcNEccYigp+s4=; b=liVdnHw+F05gibBm4mvYX2/lGD7mSE90qDRZFezG6F6aTxitF7yHVMv3Ut3u854LUg OpGg2nzNxLNiIrs8OQI6JJWxLXbJ5vGBbxbmIqxyWCVNhIuI3mSow58pfihnbN+MG7zE f2Le79StKFQBKhRc0AFHQuJ/TomMnmqN5BRIxtPA2We3DC8WCCmEATH06OdWwerZ0r2T QGeHnnCJ6wwwkydwxSWOKl5UeYIITFv6G95tgCwkCbh/8rzq2gTjKUwSz1rsZjmxiz3v k21Jm14fJZXE3BAjcrdnLlDypkqc70UJlT6nKisAZGuzIceXvcYWvmboAVF/Z3h+iPud 4V2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bj33-20020a05620a192100b006bc58c26447si2501339qkb.437.2022.09.28.04.14.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Sep 2022 04:14:45 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1]:54748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odV1Y-0006F1-P0 for patch@linaro.org; Wed, 28 Sep 2022 07:14:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odSEN-0008FM-OU for qemu-devel@nongnu.org; Wed, 28 Sep 2022 04:15:53 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:38067) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odSEJ-0008Ho-Gj for qemu-devel@nongnu.org; Wed, 28 Sep 2022 04:15:46 -0400 Received: from quad ([82.142.8.70]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MUGRh-1onBH81P8N-00RLfN; Wed, 28 Sep 2022 10:15:37 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Cc: Richard Henderson , Laurent Vivier Subject: [PULL 37/38] linux-user: Log tid for strace Date: Wed, 28 Sep 2022 10:15:16 +0200 Message-Id: <20220928081517.734954-38-laurent@vivier.eu> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220928081517.734954-1-laurent@vivier.eu> References: <20220928081517.734954-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:i5ZY7Coc5Bj5XrtIawWcES17e8izESnLioTNJdl8kUcOFK+ffrM LVnVJ2fUkhZcHkEpU0ZgfCBRJggcQhdi0npW4JSZYz2dSW+A+N3Is3HZrvrBjY+mTmfB9xx Q9c3iFQpm0r6eHGqxAlsRy9g74VgTeCuuq8UxtfHULecuqZtFb62vj1J0HW3k77tOWnOvA0 n+Kfx1xYluqRXoXDvGqKg== X-UI-Out-Filterresults: notjunk:1;V03:K0:xitIvZ3Wpok=:IzuSQAShq3Q9xX//W6QnpV NpuwYNCtgTvxnJDOufjaA6c14plZev65yKJ4rtb7UHrjnAuo5JkvVvP0bqBkECtrcmXAjSAu6 Sc9eH74AQBOXye9qcIAeSqAkQu4Hs7I1ekcCb8xPBxD08PVJUUM3iJ3VgBbsGOZCumb+Rw8Bs GicAU36uwLJ6XnfF2ep55nKCO/dTYT1zyimzC1gCgpRhUSiZfRA2pjJL5YOj6b/JnmwvdkiVZ WJi3KVxa8HeoTctASI+A6xBMsnXQeZSWD4eKv3n+M8V3pvZUYiYFl3wRmou1ndDYcfriFb3iR Z5wAaD29BEWgVTwMUngMbQWPEtp5rBqmZDu9IhHAOaewQoxaOZXyrGKNgaB4A/W00MoPnISyB pU3FPePw7dwdFm7uyxfzyEtQvgRNCmdPp0c6WqhZ8omRN733UxSGWb4d/IaEOKwx8uYA0HSzb UHJ7VD8N4BPots0lFOmq+znyIkK7CWfqGjDBp9Ck2NURYhi3P9wbI9MvZtjikYt6MGulIE4Rv ecK1NfMyxIzMgTcaZmsUk0RapVfhYH1YOKm8tnERWxL99JmR8Y9Dwnvfn9XRj6y/XtDiuA0U4 +DIophvkfUTpWVB0+HJ/6tyvAhOM6SO8W15x+JC/UopsV8zjbl8h1h8gDaF0DPMDi0g0H8ZVL UIPbno9Ag7iGcJ2VKVwyStdHJkO1riti2vKildpGARcDIS7Ik9dAhKUgW3h0826b2+bfzCcQU c77PsQgSShwTQtkDb0O5nlf4xdLs1pEW5P3rReH1gqCyMNTiKJJ7d+UkFrUzYHsAQXogNUtrx XKcbd8Y Received-SPF: none client-ip=212.227.17.13; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Printing the same pid for all threads isn't helpful. Signed-off-by: Richard Henderson Reviewed-by: Laurent Vivier Message-Id: <20220829021006.67305-9-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier --- 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) {