Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2397678pxy; Tue, 3 Aug 2021 05:39:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuOlyBrSMdTxxMLn/Z861bJh7AD2q95XuSd8R0YU5iR4fcN9ufdx3r+vnV5Y8YrFAybEFW X-Received: by 2002:a17:907:118a:: with SMTP id uz10mr20894500ejb.199.1627994382713; Tue, 03 Aug 2021 05:39:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627994382; cv=none; d=google.com; s=arc-20160816; b=WiJoXtA8wdUX/Ou5pDItIARnrZIp8LcKvCoRwP7wkgcqLfcNoih0K4iCn6+a4daYb7 UVNytx9V7kEihVowkNYjwa+puk9Ct8VUoDa15trVn1WDmY5eh3e8qcAC6iMYk6JFlbvr x5d07IwkeVSCzTIBTJhO7wPTvGIINarwvmNaxyW2bdcO9E9okoUwCGL1sKEhAoqJ8tmm GQz5NiubNBABjo+G6RaSrfQWBgYZraXQu0txjyvZUKfGoJmMV5TRVi60Y7nqFag+m0Mk 8LJaRV2KoBcQcy8hZdfkT+qg+8ceaUdmLHVeyUR1ndkWoZmLT4MPXPpp9ASw3Z68TX9N WQ6g== 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=RFt3O0ApP6MslfGVeM2dFAr0w087xxGEOZ2+W6aOlRE=; b=LQejPxKq9UXftj/Sf5Z0Yq3onp+Rqt5vY408oRtOb2KCWalRwHQmGMF+yXzz9XL7ID ofobeaTA56bJsE1zJf9/1gycR4bUwAXWBHGx2MbwV0Kyyi7Pc74tYJ4VBXwELG/sYyGg ChmTo28geQrFvB9VUDY5AlDGG9oewd7dcCZ85IdIYaXHrFTHhqu5aVw/ZDMsjdbWLkK4 TKIuEXWrfA0iT7aIs/IIE2jnnOeWPWm/A7/aWMTpG/4127BNpkgLEiq4FMfY0NmRdlXl IEH5smpF+zr/WsHS4EyRtkn44UefD+sZdogq8ETi7ZgNxp0rGIpN9GPFXeg4lLjdHgfr RyPQ== 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 mc27si12927155ejb.728.2021.08.03.05.39.18; Tue, 03 Aug 2021 05:39:42 -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 S235982AbhHCMgZ (ORCPT + 99 others); Tue, 3 Aug 2021 08:36:25 -0400 Received: from foss.arm.com ([217.140.110.172]:48870 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235877AbhHCMgZ (ORCPT ); Tue, 3 Aug 2021 08:36:25 -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 32DBC11FB; Tue, 3 Aug 2021 05:36:14 -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 E49413F40C; Tue, 3 Aug 2021 05:36:11 -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: Date: Tue, 3 Aug 2021 13:36:10 +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/util/cs-etm.h b/tools/perf/util/cs-etm.h >>> index d65c7b19407d..52d82dce9d59 100644 >>> --- a/tools/perf/util/cs-etm.h >>> +++ b/tools/perf/util/cs-etm.h >>> @@ -59,7 +59,7 @@ enum { >>> /* define fixed version 0 length - allow new format reader to read old files. */ >>> #define CS_ETM_NR_TRC_PARAMS_V0 (CS_ETM_ETMIDR - CS_ETM_ETMCR + 1) >>> >>> -/* ETMv4 metadata */ >>> +/* ETMv4 + ETE metadata */ >>> enum { >>> /* Dynamic, configurable parameters */ >>> CS_ETMV4_TRCCONFIGR = CS_ETM_COMMON_BLK_MAX_V1, >>> @@ -70,7 +70,8 @@ enum { >>> CS_ETMV4_TRCIDR2, >>> CS_ETMV4_TRCIDR8, >>> CS_ETMV4_TRCAUTHSTATUS, >>> - CS_ETMV4_PRIV_MAX, >>> + CS_ETE_TRCDEVARCH, >>> + CS_ETMV4_PRIV_MAX > Spurious change for "CS_ETMV4_PRIV_MAX"? This change will be removed in the next version due to moving it into a new enum. But it wasn't a mistake, CS_ETMV4_PRIV_MAX is used to define the length of the header so it always needs to be at the end if another item is saved. James