Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp536832pxt; Thu, 5 Aug 2021 05:56:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQJTATOhUNRMPuN9Yy5tNI4vCi4/B9G73mCeGM0DvnlK0fEUEvZv18/kaI8C2mitfMlm6b X-Received: by 2002:a92:6711:: with SMTP id b17mr799786ilc.122.1628168189399; Thu, 05 Aug 2021 05:56:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628168189; cv=none; d=google.com; s=arc-20160816; b=Zpp8zgOXeoRk7ThEMeOZ39iD1pOkF2zK0GbvfVTUH7Ec/NOSZOYMbBCzG6NUm0yRGy CYmbgIiAO66IKm6fcR3eFGAFnRXszpgyJDjhJN7HkHyRJXyAcbad7ajOU8YlV0XV8RE5 AbnVF09TIwCN7jUQ3IIuCXg6KlvHl3pNcBQ8dVvcBfkgjTM0Yr6BjUbbhavM5JPR55tX rOcv58T2KTANu1JUz/RIvsf5xGjptJB9yy9scSAjxEqyYKMyu/DPytPXVGTnsLR1v/JP UdUKKgjnSW/foDybS57h9ayPr7hJ3bRPKyhX3EH6aAMR8uuyCBVFQK3vEpOPwpEJQtQW FzRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nDgSiKT3PmC/uVgbSGJ5t/4JCmbXe35pN3HpY7zZV9E=; b=VCjKE+Mt+Zq5UX0shzVXlhMQ7m8PEceahRX9qCe5njRshIttNmD8WTNAtc/gNRij0p mHnvDQ6+11xLlRnFk91EZhvSr95SMp9Ou664xCfuNfNV2jQVTOXCZZyqXAocKdMQ/KI/ 1IQR8Dq6V6OSMB8iOYj2PIwln1EN291922C0xSgzmMPBVN6RR319DjdLz43OWOmmPTE/ eYL5dmbAJEWS6vQDXecKDmSUpmjB+bdxOKBDtuZyjAPiL3lolzfCjCfUNk45dTGbZ3C6 V9916ZtGXKYmaEmUkGevGR095HqciCn/k8rOEBjOYmKKuevQ/YH5BNKy+N8HWxnnlLHB T5/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C6wyBK36; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n19si5515778iop.0.2021.08.05.05.56.17; Thu, 05 Aug 2021 05:56:29 -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; dkim=pass header.i=@linaro.org header.s=google header.b=C6wyBK36; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239200AbhHEJks (ORCPT + 99 others); Thu, 5 Aug 2021 05:40:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238685AbhHEJkr (ORCPT ); Thu, 5 Aug 2021 05:40:47 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD3DDC0613C1 for ; Thu, 5 Aug 2021 02:40:32 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id t7-20020a17090a5d87b029017807007f23so10155075pji.5 for ; Thu, 05 Aug 2021 02:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=nDgSiKT3PmC/uVgbSGJ5t/4JCmbXe35pN3HpY7zZV9E=; b=C6wyBK36441JkySRlvZ/2pfKdBz31BE8gQlFQzt5bcvETqDRArNU8tGTG9jk5HrXm8 c+VvdloQWAyGTz2BO0E9PWSmHPiFYRdhwGc+BINqy6yNpcrZ3VMorgtPknMB8368Q6WM snrSDbzmuiLJgbUt/DcpuxCppoZAnA7Yl4VVW3v7NYIeSpR7DT1ZGAmdvklUADOVK4p0 D/VDnfrUAidl0RQOXIlojaUCwmIOfTTF22wN8u9J3/NYWcwXvsEMX8ghCKZu/Cyi9i41 J6R2QjAG00zXHIlPnv962j2wh2i9Sr2rJfS9GrXYaJEfblDCtvBJ5AA5uh51aRsaLVzY Ffjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nDgSiKT3PmC/uVgbSGJ5t/4JCmbXe35pN3HpY7zZV9E=; b=aY3l7rrZi/wTQ7RzVtwnK+RAra4ARPNzOSuVj3uz97zAakYneaYHb8nzj57cx4TXUx LYUW80m6tR7kAYYGtlv5aflSoMl0YDU07WVxJwMcEdqWSW+PcPf0xj88brF6wzY4ew8L QvMD+lwDyfjmqg3ePHFEebMncdW0fBDtmZKyQO4pgC7f/2Rm3c1/vaGHQcA80pVZa0+f PWo+J0SvINnG0YN43d+WqCVgIrY+fvvHjeuMnrmcWcxE9tJoJMFYCb1jQLWDK1Zcaj8C EKHmz9UacAzMp708dx4hDrCgOGndfO4uMZwb5WiNUBaQGVfYkT/IidDP/vP0nlwtshRn y+8A== X-Gm-Message-State: AOAM531/JdZnfyZVLpNu/CpByX3Y9D4wKV04bBRQUvvAobQhi0pmRCoC aG/2VSxubgeWJjnft4j1kL8YiQ== X-Received: by 2002:a05:6a00:16d6:b029:32a:ffe9:76a with SMTP id l22-20020a056a0016d6b029032affe9076amr4429638pfc.60.1628156432150; Thu, 05 Aug 2021 02:40:32 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([202.155.204.36]) by smtp.gmail.com with ESMTPSA id x189sm6908188pfx.99.2021.08.05.02.40.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Aug 2021 02:40:31 -0700 (PDT) Date: Thu, 5 Aug 2021 17:40:24 +0800 From: Leo Yan To: James Clark Cc: Mike Leach , 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 Subject: Re: [PATCH 3/6] perf cs-etm: Save TRCDEVARCH register Message-ID: <20210805094024.GA19058@leoy-ThinkPad-X240s> References: <20210721090706.21523-1-james.clark@arm.com> <20210721090706.21523-4-james.clark@arm.com> <20210731063731.GC7437@leoy-ThinkPad-X240s> <9156d7a1-3676-ab98-2c38-26f9765b845c@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9156d7a1-3676-ab98-2c38-26f9765b845c@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 03, 2021 at 01:34:36PM +0100, James Clark wrote: > > 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? No, don't need to add TRCDEVARCH for ETMv4 anymore. > As part of the new magic number I moved it into a new enum so it > might be clearer now? Regard ETMv4 and ETE use the different decoder types from OpenCSD, you could add a new magic number and new enum for ETE. It would be easier for later extension for ETMv4 and ETE separately if decoder requires to pass more config info. Thanks, Leo