Message ID | 20230915105243.3377965-1-lancelot.six@amd.com |
---|---|
State | New |
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F36A53857C66 for <patchwork@sourceware.org>; Fri, 15 Sep 2023 10:53:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F36A53857C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1694775229; bh=gHnNks8gA4TLAtEALzDUI/yHnqEadnpEB0QjEhDqdk0=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=X+xS8BTgbATDe1w7OfHAv4OAif+x8Hg2KfujqHw3t/DljXsYKbLhBbqxXPK8hCTMG cxmJIK/OBLSmB0VNXbbXP5GRNnkhxUXBDYJLSaNclDU0qpef5zug/NRDxAYI89eiYr 0DTTOSTBRjnW4YYXFbgejfBa+htQ7U5h1xAKvCm4= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2069.outbound.protection.outlook.com [40.107.243.69]) by sourceware.org (Postfix) with ESMTPS id 59AA03858C52 for <gdb-patches@sourceware.org>; Fri, 15 Sep 2023 10:53:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 59AA03858C52 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Svuk8WxERySyxYWKpLrxDf/vP5djR79c/blrAGh7rD2gtMrQPsUS3slt9lo748WCXBbZToRIzO6qlkykG5qS4iVUvTqv4COkoYF+HF4VFKGZDB0wJaaprabZMx9H4jKN3oJBPyYSvw4pMjSsv5Eu0mGs1cH5jko+fQdyK13HReLLMauwZj555Bfrf9ZJ5KKZ1O0vNZw4eTmHcxO5III+RYwchZC7v7jv2hqrErbqmykp8v7grv6w+j8b++OWEamFEDbH7N7QsMWnvWPkC9FHNHzQbMW6i3xJKWCtl4Sav8ET/xJuK9hc7ucaego4VedoLRy8NpM1/4nb6IEYpUrdkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gHnNks8gA4TLAtEALzDUI/yHnqEadnpEB0QjEhDqdk0=; b=Ddz6PWPXQawVLpuovHuSoXYgbU/yECR+9PHGtduWQYVKk/24VMjSRXhaUaZudXqfsiYy4SFViqTvvLuYRN/yAK3om3U1x3PMWDD7IMnxNvSDHIcoIO52ttWTf7vlvpM72iSor2zjNF91NZ702rLRxbtKpZfiOTqdTOLfdewbK64pIgLo6p5TTagwDi9EIp1HFcQVxDvKQ/zcFonkvB5i37HboD7miT0vB1QevIAhztbD0E8TYaJ25+REJ2l3YKHn2tgVsQf3UmIelnTOmD0gzYuY9Pi0ROJyKbUo5PEViIj8lSBT7NfqTt7sb5+NjIsHogFvnMuUAVW981Bl18yjXg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=sourceware.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none Received: from DS7PR06CA0038.namprd06.prod.outlook.com (2603:10b6:8:54::19) by PH0PR12MB8029.namprd12.prod.outlook.com (2603:10b6:510:26c::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.21; Fri, 15 Sep 2023 10:53:22 +0000 Received: from CY4PEPF0000E9D8.namprd05.prod.outlook.com (2603:10b6:8:54:cafe::d6) by DS7PR06CA0038.outlook.office365.com (2603:10b6:8:54::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.21 via Frontend Transport; Fri, 15 Sep 2023 10:53:21 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CY4PEPF0000E9D8.mail.protection.outlook.com (10.167.241.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6792.19 via Frontend Transport; Fri, 15 Sep 2023 10:53:21 +0000 Received: from hpe6u-23.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 15 Sep 2023 05:53:17 -0500 To: <gdb-patches@sourceware.org> CC: <lsix@lancelotsix.com>, Laurent Morichetti <laurent.morichetti@amd.com> Subject: [PATCH] gdb/amdgpu: Silence wave termination messages Date: Fri, 15 Sep 2023 10:52:43 +0000 Message-ID: <20230915105243.3377965-1-lancelot.six@amd.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D8:EE_|PH0PR12MB8029:EE_ X-MS-Office365-Filtering-Correlation-Id: 465a2db6-4514-4c2d-9983-08dbb5d9fa77 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FcC7kgqbhBQTsqRnAg0b5Um+Bmis4hBm4BNGw4vTyP2gXRyaGCgh9WCuuRSMsQiNGQeNc0FS2On8QJDnsN7+Kvh37ExQGBzYPDYe/OdOqqNkZp7jwQSzAOMLl1nVJmkdPUjvRUG5ajmUd8tPEOgzpR/fdW2m5L/j7U3l4hzaLqX5BCXJ4PvrbnHV84vLGkAxBJ4wntvvy/V2HwtAh2o2OMsHTnfcn8gD5xG3Rwy+41z2KYHAtN93nqGovUeM718qB8ciP+qvZDpWoCD7ifZKcDFrtFDidoqSZQbUIDJ8a5dVzkvcrBM19Sc2kh2ab9cEJh1iEIdINYo9WLJi21/6QfLNbPO/9awjSMSIHgRrQU4EHPToIbkmVk6Kbbx+14Pe6cqg8iTs/AWxBIGLHHHW/8mj32UzXaRyklM7SXaDzHldhkRwcppAFV+xUc1X1o7b8W699Gr8Y6qWXBGMa2S/5fEIZOFYSWzRt4g84cdGYSvKJWsCFtmsUz2lFTn/fRAseOkOFA7EkdAHGgKhBxGXiz6FiZF3qQpKmTtXI+ua3c62hefOO9xG+Ly2o5eCKANx4tdg1dg722LdHM+JFug8pZtyRrjGixzkYqCbWs/rocCxUw2dBTkAjTQGJlk2P05t53BREnl1aMVJMpcDNO2tD3qW70anDXZI7MB4gbtHQK6maOy+fYUTQe8rF4X6gYWtAortoHELRNI+i4bhu4au1lO+WYUTIg7MNAQwsaSbHNCpwCgcZwjY/zK3JS+FoT58d2aYFFNby78orDioHG/nhQ== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(39860400002)(346002)(376002)(136003)(396003)(82310400011)(186009)(1800799009)(451199024)(46966006)(36840700001)(40470700004)(40460700003)(2906002)(86362001)(426003)(16526019)(2616005)(1076003)(26005)(336012)(478600001)(36756003)(6666004)(7696005)(36860700001)(83380400001)(47076005)(82740400003)(81166007)(356005)(40480700001)(8676002)(4326008)(8936002)(41300700001)(54906003)(15650500001)(70206006)(70586007)(5660300002)(44832011)(316002)(6916009)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2023 10:53:21.6792 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 465a2db6-4514-4c2d-9983-08dbb5d9fa77 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D8.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB8029 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> From: Lancelot Six via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Lancelot Six <lancelot.six@amd.com> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
gdb/amdgpu: Silence wave termination messages
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 | success | Testing passed |
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 | success | Testing passed |
linaro-tcwg-bot/tcwg_gdb_build--master-arm | success | Testing passed |
linaro-tcwg-bot/tcwg_gdb_check--master-arm | success | Testing passed |
Commit Message
Lancelot Six
Sept. 15, 2023, 10:52 a.m. UTC
From: Laurent Morichetti <laurent.morichetti@amd.com>
Hi,
Here is a patch originally written by Laurent Morichetti fixing a
regression in the amd-dbgapi-target I am submitting on his behalf.
Best,
Lancelot.
After commit 9d7d58e7262, the amdgpu target started printing
"thread exited" messages when pruning waves that had terminated.
...
[AMDGPU Wave ?:?:?:2045 (?,?,?)/? exited]
[AMDGPU Wave ?:?:?:2046 (?,?,?)/? exited]
[AMDGPU Wave ?:?:?:2047 (?,?,?)/? exited]
[AMDGPU Wave ?:?:?:2048 (?,?,?)/? exited]
...
The issue was that before commit 9d7d58e7262, delete_thread was silent
by default due to a bug that the commit fixed.
Replaced the amdgpu target call to delete_thread with a call to
delete_thread_silent.
Change-Id: Ie5d5a4c5be851f092d2315b2afa6a36a30a05245
---
gdb/amd-dbgapi-target.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
base-commit: 38cc67cc00dc7385991e2658a1b4213d5ba3c4f0
Comments
On 9/15/23 06:52, Lancelot Six via Gdb-patches wrote: > From: Laurent Morichetti <laurent.morichetti@amd.com> > > Hi, > > Here is a patch originally written by Laurent Morichetti fixing a > regression in the amd-dbgapi-target I am submitting on his behalf. > > Best, > Lancelot. > > After commit 9d7d58e7262, the amdgpu target started printing > "thread exited" messages when pruning waves that had terminated. > > ... > [AMDGPU Wave ?:?:?:2045 (?,?,?)/? exited] > [AMDGPU Wave ?:?:?:2046 (?,?,?)/? exited] > [AMDGPU Wave ?:?:?:2047 (?,?,?)/? exited] > [AMDGPU Wave ?:?:?:2048 (?,?,?)/? exited] > ... > > The issue was that before commit 9d7d58e7262, delete_thread was silent > by default due to a bug that the commit fixed. > > Replaced the amdgpu target call to delete_thread with a call to > delete_thread_silent. > > Change-Id: Ie5d5a4c5be851f092d2315b2afa6a36a30a05245 > --- > gdb/amd-dbgapi-target.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gdb/amd-dbgapi-target.c b/gdb/amd-dbgapi-target.c > index 22c269b7992..8eafceac569 100644 > --- a/gdb/amd-dbgapi-target.c > +++ b/gdb/amd-dbgapi-target.c > @@ -1634,7 +1634,7 @@ amd_dbgapi_target::update_thread_list () > auto it = threads.find (tp->ptid.tid ()); > > if (it == threads.end ()) > - delete_thread (tp); > + delete_thread_silent (tp); > else > threads.erase (it); > } > > base-commit: 38cc67cc00dc7385991e2658a1b4213d5ba3c4f0 > -- > 2.34.1 > LGTM, thanks. Approved-By: Simon Marchi <simon.marchi@efficios.com> Simon
[AMD Official Use Only - General] Thanks. I have pushed this patch. Best, Lancelot.
diff --git a/gdb/amd-dbgapi-target.c b/gdb/amd-dbgapi-target.c index 22c269b7992..8eafceac569 100644 --- a/gdb/amd-dbgapi-target.c +++ b/gdb/amd-dbgapi-target.c @@ -1634,7 +1634,7 @@ amd_dbgapi_target::update_thread_list () auto it = threads.find (tp->ptid.tid ()); if (it == threads.end ()) - delete_thread (tp); + delete_thread_silent (tp); else threads.erase (it); }