From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D63EC77B73 for ; Mon, 5 Jun 2023 22:11:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232112AbjFEWLb (ORCPT ); Mon, 5 Jun 2023 18:11:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231929AbjFEWLb (ORCPT ); Mon, 5 Jun 2023 18:11:31 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0D696EC; Mon, 5 Jun 2023 15:11:30 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2EA95C14; Mon, 5 Jun 2023 15:12:15 -0700 (PDT) Received: from [10.57.25.141] (unknown [10.57.25.141]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 139703F663; Mon, 5 Jun 2023 15:11:26 -0700 (PDT) Message-ID: <362032af-382e-d367-a655-1c25407309a0@arm.com> Date: Mon, 5 Jun 2023 23:11:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.1 Subject: Re: [PATCH 1/4] perf cs-etm: Only track threads instead of PID and TIDs To: James Clark , coresight@lists.linaro.org, denik@chromium.org Cc: Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , John Garry , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230524131958.2139331-1-james.clark@arm.com> <20230524131958.2139331-2-james.clark@arm.com> From: Suzuki K Poulose In-Reply-To: <20230524131958.2139331-2-james.clark@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@vger.kernel.org On 24/05/2023 14:19, James Clark wrote: > PIDs and TIDs are already contained within the thread struct, so to > avoid inconsistencies drop the extra members on the etm queue and only > use the thread struct. > > At the same time stop using the 'unknown' thread. In a later commit > we will be making samples from multiple machines so it will be better > to use the idle thread of each machine rather than overlapping unknown > threads. Using the idle thread is also better because kernel addresses > with a previously unknown thread will now be assigned to a real kernel > thread. > > Signed-off-by: James Clark Acked-by: Suzuki K Poulose