Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2395454pxy; Tue, 3 Aug 2021 05:36:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwN2atRA0mhEzGcgOMkCgEFCaJYWZPxWb3P1j9f8XtFcIlU1fv/NGGQ8KJ4O+GWpQMZoLyQ X-Received: by 2002:a17:906:9c84:: with SMTP id fj4mr20285170ejc.356.1627994187355; Tue, 03 Aug 2021 05:36:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627994187; cv=none; d=google.com; s=arc-20160816; b=AEieIFVNu5OGN86FMxN/uYVFvRGmB84h1ZLMx3qEnDDDbMOERHnMqdDl6ma93nuBM9 ZaLzJNTGOvsn0MXGSNH5CxOAeYTLDH/veAufL1IS4riRWzEYJUx0CodrbLEgj61xB4n7 8xNcJCiv+TOxrwSJ8cmG5C8FYBhYqs1He9rZrW1PfN5Go0ZdCJCEofrSzGhEG6x67FMv Cr2nkJNa1v2NSDPjb7W7uZOat5KW+pr+kUkXQH/WhjP7U529FESsMKiJYjKG3CaDYSq0 B9iWmuIEP+VXOVSBCXT00yMmc1SHQNVHZ9MnEp7Eo71zqQc8Du60reiDOmaux456f+kb xCzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=I/TItVo/0AyLg9sY4+aWKMNxjJaCFHCtinvdFAJ/tDU=; b=d43UvEEZMWU4JMzDUf0S5YeGm7BbsJU/I1MzbxsRfGVKvxihMJgLnS8qmTSj/zEt4D 9jYDzIKzWKGcWE6Bv3GFCMLijXD+WOfqPWN1UWKF4rYeVILFeypalcv9Lzh0/WUf5a0I xV2kWoCp0oZ1GLuFSPv1gBzK2uk6elN5N/FXh6m6CGchMWuUKxGOzmo5EGVUOorOkK7a 8YMm52XLfF10dhFmE5Acp8kQlmTMft3KNXtoaDiiuLlfPZyNc5s9XOGydDVeMSgLyKoz PTRo8tMKdjPFMEU36pBxW9EXDhm+99xxqlC+QAyoLumOPRw8CVwB2MsT+Kd/ngU6SalW 46uQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x5si12356854eju.306.2021.08.03.05.36.04; Tue, 03 Aug 2021 05:36:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235782AbhHCMev (ORCPT + 99 others); Tue, 3 Aug 2021 08:34:51 -0400 Received: from foss.arm.com ([217.140.110.172]:48818 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234524AbhHCMeu (ORCPT ); Tue, 3 Aug 2021 08:34:50 -0400 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 C8C6D11FB; Tue, 3 Aug 2021 05:34:39 -0700 (PDT) Received: from [10.57.36.239] (unknown [10.57.36.239]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 878B43F40C; Tue, 3 Aug 2021 05:34:37 -0700 (PDT) Subject: Re: [PATCH 3/6] perf cs-etm: Save TRCDEVARCH register To: Leo Yan , Mike Leach Cc: Arnaldo Carvalho de Melo , Mathieu Poirier , Coresight ML , Al Grant , "Suzuki K. Poulose" , Anshuman Khandual , John Garry , Will Deacon , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel , Linux Kernel Mailing List , linux-perf-users@vger.kernel.org References: <20210721090706.21523-1-james.clark@arm.com> <20210721090706.21523-4-james.clark@arm.com> <20210731063731.GC7437@leoy-ThinkPad-X240s> From: James Clark Message-ID: <9156d7a1-3676-ab98-2c38-26f9765b845c@arm.com> Date: Tue, 3 Aug 2021 13:34:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210731063731.GC7437@leoy-ThinkPad-X240s> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/07/2021 07:37, Leo Yan wrote: >>> diff --git a/tools/perf/arch/arm/util/cs-etm.c b/tools/perf/arch/arm/util/cs-etm.c >>> index 85168d87b2d7..65a863bdf5cc 100644 >>> --- a/tools/perf/arch/arm/util/cs-etm.c >>> +++ b/tools/perf/arch/arm/util/cs-etm.c >>> @@ -53,6 +53,7 @@ static const char *metadata_etmv4_ro[CS_ETMV4_PRIV_MAX] = { >>> [CS_ETMV4_TRCIDR2] = "trcidr/trcidr2", >>> [CS_ETMV4_TRCIDR8] = "trcidr/trcidr8", >>> [CS_ETMV4_TRCAUTHSTATUS] = "mgmt/trcauthstatus", >>> + [CS_ETE_TRCDEVARCH] = "mgmt/trcdevarch" > ETMv4 supports TRCDEVARCH, so I think it's good to use the naming > "CS_ETMV4_TRCDEVARCH"? > Based on the other discussions do you still think I should do this? As part of the new magic number I moved it into a new enum so it might be clearer now? James