Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp556845pxb; Wed, 24 Feb 2021 08:56:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5rvfX+mR3SkyMTcYRvGAKuUjFe4ZHxJW0KgM6Tly8Ud3esuUBA5yQbUk9ZhltUz6Wcrwe X-Received: by 2002:a17:906:2652:: with SMTP id i18mr31808154ejc.213.1614185795566; Wed, 24 Feb 2021 08:56:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614185795; cv=none; d=google.com; s=arc-20160816; b=x9mDedC/IbAs+OvTbPAwbxeIB5hdx6Rq4Mb1Maf2XPywQq+BO51bYdy4wWFgznxjRr o+B2AUl8FZvhvvB+tewqnmJqAQKc2gATh+5kN00ILzIDma9obgoiy8NADBykpUMK88VI qm0cf/gJwi4KROjiyMuBsQXcjSi6yp7mp84x7kA+jbg1V2JglMzR82F3eZvDmDs/r7pw NH3c/dzdN1Hu7fpuvVy6mFhKCLzn9nDDFmN9H783cHR8BB1dBkKhDILbbh0goloPelKx 5Y+bfce//hE0ZcU5poFopEvo+Y+D+WnPzpqAGUsA8skeLe3SqmQc+oOWsyJOJqJHi/24 pHYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iVzkgrfLf0T+CIbuY1lXoJbd6D9eaR3FbByCkkzGJ2E=; b=PaE9CQOZKibl6deprQEJDr0TwlnqFNNWWUIbkAB2olJTUmB/M1kqKHm750EYqAggAq Vp5QE4BSA/5q6gmwii8y97xtS8itu3mKtLRfqAx7qPzUJOF+eq+6xPIhm6i0fI0RBSPn aAVLOCxRVlAbjVKFNSiUpycCDjYl4EKjY9z63ou+csfHz0ora/I5Fsbt/6QbHzEtiiyV g0ZOZfO2pUypDsm1HFXfDxOnArXLKJF2ZloDjj4HwRPBJmgpFW37SzLMph+5IxIQwn2O 4rFV6hajGrAYT7u9aNM9VcOBWsvbHSCHm+vqxqMgnGieVq/WA3AxA+Wh2LPOa8yxIBJ8 ZbDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A0Go0kgC; 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 di24si1456778edb.476.2021.02.24.08.56.11; Wed, 24 Feb 2021 08:56:35 -0800 (PST) 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=A0Go0kgC; 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 S235814AbhBXQw4 (ORCPT + 99 others); Wed, 24 Feb 2021 11:52:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235556AbhBXQt5 (ORCPT ); Wed, 24 Feb 2021 11:49:57 -0500 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62F09C061797 for ; Wed, 24 Feb 2021 08:48:39 -0800 (PST) Received: by mail-pf1-x42b.google.com with SMTP id q204so640466pfq.10 for ; Wed, 24 Feb 2021 08:48:39 -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=iVzkgrfLf0T+CIbuY1lXoJbd6D9eaR3FbByCkkzGJ2E=; b=A0Go0kgCBETN7Fn7r82a6SLtq+ooA0ifWJwR++ShHfElaFvdRFdtiS/B09l0xTgB0D lPXHVfEatpR7fJfOuYYYUI8x5Nti1XR94yD32fistterEmpIpWaAOXAeBnxbPqpCSyDV o/NWK9jXnkESjDxFR8/M6upaPm7QfizoXPuRF0mP6VzkjyNwuAnhd19zIsFJ5C8bw+uu Cxe7T2tluWzN/Sj7eEn3UwvbrnL2Tn/s1LOJHt6WlQ6yqDd0VwTG2/W6NRl1XpwKJZ+j CnNSeOO4gCSFfyYbe0gxn0DjqVPZeRWP+rmCTmMQjBLgtllHBxnGVc5siX2p/CH3q0U7 dwDw== 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=iVzkgrfLf0T+CIbuY1lXoJbd6D9eaR3FbByCkkzGJ2E=; b=N+0hcAlkPvoT93FQVb0AWAfcMh13KboHgsvL4VPqiy3G+FwjHhnAEFk/jqFMLxLhHO kJ4QCo/FTDS4Owlqf1wjoBgcmuChQtWCVe8HBVcQY1P4KKyUqh1RECx+CNOAvijLwBiv ygwl8uRgj1IK2wh16pfC/iBIvIVVSzdjydXHydg84QWNq6ofF6yh+Odeus01fJoqwkWG +30veIAH0+or2Iw8iqY2ajBZAoQp99C4VrWKVctu+toI302Q/sF4qJy+eeRnvB+XWLOe GEJsAZDgzYvgBP9BxxVcIQ/9tlj/LjlfVelV4MGWYevC8LCcayPRcQRE+DvQTUqDyK1A vLZA== X-Gm-Message-State: AOAM530aMw5qJgFDKFnllzHKo4++Fr7666jrBowAYpYy0Wi72oKWU3Em bSdEdCACdV1H6FntMdCpORs4BA== X-Received: by 2002:a63:1826:: with SMTP id y38mr29591584pgl.252.1614185318961; Wed, 24 Feb 2021 08:48:38 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id m6sm3284793pfc.56.2021.02.24.08.48.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Feb 2021 08:48:38 -0800 (PST) From: Mathieu Poirier To: acme@kernel.org Cc: mike.leach@linaro.org, leo.yan@linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] tools headers UAPI: Update tools' copy of linux/coresight-pmu.h Date: Wed, 24 Feb 2021 09:48:31 -0700 Message-Id: <20210224164835.3497311-3-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210224164835.3497311-1-mathieu.poirier@linaro.org> References: <20210224164835.3497311-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leo Yan 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 Link: https://lore.kernel.org/r/20210213113220.292229-2-leo.yan@linaro.org --- 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