Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6244244rwd; Mon, 5 Jun 2023 15:33:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5eEpPGho2SACuDpARCDpdJ6jYOKi91ZJn4cp924OIQH0OuQgZtodKDw5XC/SLhyyFFvcyv X-Received: by 2002:a05:6214:2526:b0:61b:6e8a:4366 with SMTP id gg6-20020a056214252600b0061b6e8a4366mr327368qvb.1.1686004437837; Mon, 05 Jun 2023 15:33:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686004437; cv=none; d=google.com; s=arc-20160816; b=HQCSUHsDaOqwtgU1wAMrvSkCCDwFvKP6fl5kFDhu259S8awqqgAvikaCM4P5DKcxSp H4hR7oZ0sN9W8/fn89UKU6sA2iv+pcFU2NZnSY1zxUx9zfOZbQY8Y+/Dzq61GRUE468e pi8QQATaUOMiG/tJPl7le9jszP1MJHX6v6HDLmyALAL3q9e97b1VsKwWcCHKzev91ICL 0iuzd4cN5fBVo2+q0tcUwHZv6FlsoOD26kCTYpihDPWQO5Qzug71k/NZuvhgU9D6Jff8 kKuzf9/v500TgcVKVMlocvswgKYvKUwGxpiN0Tr2tD3uiOwP7UlisguqWlDmbL6aKgVf J8Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=SLFQqraWetvjADN4BtkHbAJF3l10PQII3Wa8vglSr58=; b=iIcGLdKYTT7PEUxIWpebL2dIR8Bn/KXB9+clg0AghSeLYReHOOGeyHf9Uj499QhJqt YVMkN6ahedeLFkBkm9x79Fs1xaWsFrFuCixgthFX7K2cO4JuUZlEZXITe+H82/z+g8+b pASM3kZP5HjBhSsWdrw+1EZ21FnpYSiGS4ocrkNg3utGWlluwRlRG+zuJCjeF/BBPJXC GfqUEU1NfZN3YUgovC30ixh1kDYo7bSMLc47OCAk4rdb7okM5QypJg1aJsIbLQIMF1c7 qPGlrZaisw/JFz01MHFLnqRvn0WGwZBlcXea0GrRngpIAEa6XsL9HFX9ko8qZrhEvsyF PLlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a63b34c000000b00543c1b255d3si1431422pgt.174.2023.06.05.15.33.45; Mon, 05 Jun 2023 15:33:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232164AbjFEWLc (ORCPT + 99 others); Mon, 5 Jun 2023 18:11:32 -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 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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