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 X-Spam-Level: X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C9F1C433E6 for ; Sat, 13 Feb 2021 11:33:43 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DABB164DD8 for ; Sat, 13 Feb 2021 11:33:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DABB164DD8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Oweux0CpPb2zzTl8CG7ZaWYseXPqUxAmuvFpAseq9yw=; b=EcqozU3fAc9ldKUl/eSV7vpgC 7zuz56a0IyVFsNzbC38MVKiNDjBnfAdnDqXv5qpduMnmxwgSYidoiu5Iuog08L7EltRHNgMQrL1JD 7oEcnV4zD1LXO99IL/vLU6+9LEhyxOL/dnnmI7+aeAMXNWpTy9NdEckQpf6SKm1t+gjGOiTOmjEmO RsP9cVAoTriSSF96fTjvYEf427hjT94yP0IrMxmF0Y65gkAr3m3JyJSj4NxCHeP52gCr7ag9UN6Z3 qe64w6m+MhvJT0hwCcyv/IhtT1o/KSbSzFf8pBHl8nwkIwMaNhkTr8/8OI6ucePlXqNsjESD4WedU 75847O0fQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lAtAG-0008Co-To; Sat, 13 Feb 2021 11:32:42 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lAtAB-0008Am-Jp for linux-arm-kernel@lists.infradead.org; Sat, 13 Feb 2021 11:32:36 +0000 Received: by mail-pl1-x62a.google.com with SMTP id k22so1190995pll.6 for ; Sat, 13 Feb 2021 03:32:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4svOvLw3+LGXfw76WgcnaPgI6C2/qj0owFvWH3CaT/w=; b=klgAYQ8urs+Z9pTTeF0cHKBNnpCuQbfKbCg3waHodKRyplqtTmwLy+ykFOmBsu/IY/ rCgS5OxaN4tM8pT8N/ZNMcSBAin/tAxaQxpPlW/wHZUhcXHwGMGJhnhxFDwPbP1YCgWs IDK5bVAxB4x97GRnBUk6l0ndFzqveXKBB9C9ORTponUWHwS5JCLRZ26gieWoINm27LQl lVOG9jWWVzQb6xVI6/NbTyyZy19il8jr+dkT24cp5i/Fh/0O54UzGyrd0ZZAl7nr1cyy Z1XGCIglUgCGd2JEN9DZTGEbfO0pky7Lbmam0bWZSxLAPgZ4Up8S2BPlabrFnuciEOu4 v47w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4svOvLw3+LGXfw76WgcnaPgI6C2/qj0owFvWH3CaT/w=; b=STGCVYOoXuR2eWYrwIi2jPy+axWISoKU3Rm5mN2ss87fBlxzA6GGAkMtM3VmFx0qqk 6K8cF/dmIMRGqmNTGtWCfN7fcypNZeq7FlBfVKqSQQK3xIoeA3izJzdZpti12QdGiIdz raFvPeiPuBbFMBJMNBYZE20UKKdqFUD3iPSv7JcAgRFkr27d+luJwasupmvkpLkpdWyu w/BkucPDSr0/Z+kNpibjy6VnkQWfNlcKnrO7xxp9V6vCAIiW/X25DRV5ZhnS+rcwXtEU yuSbba6fX3dr9bOzZpCSOenbDWKB6/KoHYsVoCwC84F5E828KUc7s/kMb79dDGZrCg61 a67Q== X-Gm-Message-State: AOAM5317ezC/6sxv9alcSTh+C/gavxebW39ScS/EolSlYTPql/OyCpoi VuA4L+kg6WiUfLx8ZhPMxuEEbQ== X-Google-Smtp-Source: ABdhPJzWGXNDxoCjpGl4zvQIDpdvppBpCUhLgBJ/C9h/NzBw8/h1jUPof5vYAR+bNsVY3xcwObxL0A== X-Received: by 2002:a17:902:a40b:b029:e0:1096:7fb with SMTP id p11-20020a170902a40bb02900e0109607fbmr6507000plq.40.1613215953090; Sat, 13 Feb 2021 03:32:33 -0800 (PST) Received: from localhost ([45.137.216.202]) by smtp.gmail.com with ESMTPSA id i1sm12259852pfq.158.2021.02.13.03.32.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Feb 2021 03:32:32 -0800 (PST) From: Leo Yan To: Arnaldo Carvalho de Melo , Mathieu Poirier , Suzuki K Poulose , Mike Leach , John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 1/5] tools headers UAPI: Update tools' copy of linux/coresight-pmu.h Date: Sat, 13 Feb 2021 19:32:16 +0800 Message-Id: <20210213113220.292229-2-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210213113220.292229-1-leo.yan@linaro.org> References: <20210213113220.292229-1-leo.yan@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210213_063235_690005_D31656E0 X-CRM114-Status: GOOD ( 13.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Yan Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org To get the changes in the commit: "coresight: etm-perf: Clarify comment on perf options". Signed-off-by: Leo Yan Reviewed-by: Suzuki K Poulose Reviewed-by: Mathieu Poirier --- tools/include/linux/coresight-pmu.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tools/include/linux/coresight-pmu.h b/tools/include/linux/coresight-pmu.h index b0e35eec6499..5dc47cfdcf07 100644 --- a/tools/include/linux/coresight-pmu.h +++ b/tools/include/linux/coresight-pmu.h @@ -10,11 +10,18 @@ #define CORESIGHT_ETM_PMU_NAME "cs_etm" #define CORESIGHT_ETM_PMU_SEED 0x10 -/* ETMv3.5/PTM's ETMCR config bit */ -#define ETM_OPT_CYCACC 12 -#define ETM_OPT_CTXTID 14 -#define ETM_OPT_TS 28 -#define ETM_OPT_RETSTK 29 +/* + * Below are the definition of bit offsets for perf option, and works as + * arbitrary values for all ETM versions. + * + * Most of them are orignally from ETMv3.5/PTM's ETMCR config, therefore, + * ETMv3.5/PTM doesn't define ETMCR config bits with prefix "ETM3_" and + * directly use below macros as config bits. + */ +#define ETM_OPT_CYCACC 12 +#define ETM_OPT_CTXTID 14 +#define ETM_OPT_TS 28 +#define ETM_OPT_RETSTK 29 /* ETMv4 CONFIGR programming bits for the ETM OPTs */ #define ETM4_CFG_BIT_CYCACC 4 -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel