Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4235370pxb; Mon, 8 Feb 2021 11:05:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwL6c3YRbeMplVIDzq55x9Q+dSafM6VnA7NDuHuY1vTM5J6uxRgnhutvIHZ2O+dEe7EhbYe X-Received: by 2002:aa7:de82:: with SMTP id j2mr18778909edv.313.1612811101905; Mon, 08 Feb 2021 11:05:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612811101; cv=none; d=google.com; s=arc-20160816; b=ZxtFn3BsEUwrAEKpdNNMDXJB8C+dCoJht4RwbTuLi8cQSy6ztR1rYwC7nSmDsB9bXY VFWLEdb5rt4Lz8zi241g49pd0XoXqfJhPKWBxY0aQK/oQ3o4a1nErr3/yRSF8FEi1oLX wmfesZHd23MMyRpvC7fvXE1a7AKfhWGnuoOlAGEOOQmO+W+FI3lh25V9yxzbgIMkRbF0 ETmBuhkZClq/+22P06syx5rpmAWcd/6NVNshuTlHeFqioPUcQTv5B6k3c5e8cqdePqyB I2ck6jZCS7bvUyWsatxhvF6bW4Dy43zPXeNNh7Ec27cHLvEaGizLygAY8Ub4kltAjCPV IrAA== 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=QAxmqoEOSrSGuDIGX8UTYzw6McBlWP+GhOSfkix9wjk=; b=uSeW5PlBp5yMy9NkGn+S/cSRb3AizwcLTHtjNPuwh39Rp1q0sNfV7iu8gx8zwwnIk5 kj9hx6+r9wlkE1eemrGnDNBk37FzGV/0c3HdHkaEsoEZxE0nhRsngYsSpf9E3/HH564I b8hOX3NGD1NDLaScYkMH9mCE3xVvGST3RwWo1mv58RP6EU0PowJrSEDePtG+xEmvAw/u 3MIhGS/TSWMyJS10usm5reGDAARCrz9EIbTSzufBTBqz95VMCPjspkyDG7w+dJWE+jfK qR2Qhbk6UXK3BI9RuCxhF3k+Jrr2avjmRKtAIv1OZPgrGs05jA/yWAZMvU1uAoFJVf5Y op1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GYKgxaI9; 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 w12si4760885eji.480.2021.02.08.11.04.38; Mon, 08 Feb 2021 11:05:01 -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=GYKgxaI9; 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 S236154AbhBHTDQ (ORCPT + 99 others); Mon, 8 Feb 2021 14:03:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234466AbhBHRfV (ORCPT ); Mon, 8 Feb 2021 12:35:21 -0500 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E155C06178A for ; Mon, 8 Feb 2021 09:34:30 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id a16so8188432plh.8 for ; Mon, 08 Feb 2021 09:34:30 -0800 (PST) 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=QAxmqoEOSrSGuDIGX8UTYzw6McBlWP+GhOSfkix9wjk=; b=GYKgxaI9CMbwk19YePl5gkV9bFRlQlO+2w4ie9BtNOhNrbyAWWGR+Y+3iewmYreiwM AcuaTVg0YMEGW4+If05PFEmmP6byd2Bkvgc1rEpIl0waXziJKxojCrDTvk3Hfr7DekQs voaohLE/fiu8RgJr439mqQRGm+BCqa6PHfvgWCQbZmdP429FcFuKdNCn4mBJ8ODJ+l6e EKAgGIRwR1p2R6y5+ueeLFMmmpRsnQaL/S1Bdgs5YX1wL9gx7fOCDK6QPr9JkG7cxIrU SxT+REOCJhe/o6zBXD/r/iTjFvGjblVd5gt6hhApMm6ZhSpxt5obkRlAjOGkCN9LAMuW as7w== 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=QAxmqoEOSrSGuDIGX8UTYzw6McBlWP+GhOSfkix9wjk=; b=lw7jo5c61LB9d9byUugcuqDoRO2jliA4J5QvBM775CloWyjY43Z8+mXDDzKXSF/YOJ 9AmjMaAPuP1uJlKfBxwdziOzDnfGeThBorITcmdqoNIbSDn22sVEiqbJIQK2pFvgFfF7 Oq/m874DE+db2RGfhaw+pxoL2TzDXQWSCzS9/VdnaqC0WkoZW/dyL9LowrYP+T/4Sm61 Rrmk+Qn+SaWkystHpylJNGdeODGOxL26YFJEPKzCllZDD7DDVvhriyECNiloOo9oV7L6 s3QuG9o/FijE/NLAkrUVkHIvJc72QB4MJ/j+/PNC1NMmFMRPilSc4FmYnMt4ZDHySBrj rVKw== X-Gm-Message-State: AOAM530fKePYTPVIAOPiBvtCirNcY17yh2u4O7YBwR+1tZSIUOe1IEAJ BV/N/41tyDWHUNixEwQz747JbA== X-Received: by 2002:a17:90b:4a0b:: with SMTP id kk11mr18055807pjb.95.1612805669921; Mon, 08 Feb 2021 09:34:29 -0800 (PST) Received: from xps15 (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id f127sm14038890pgc.48.2021.02.08.09.34.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 09:34:28 -0800 (PST) Date: Mon, 8 Feb 2021 10:34:26 -0700 From: Mathieu Poirier To: Leo Yan Cc: Arnaldo Carvalho de Melo , Suzuki K Poulose , Mike Leach , Jonathan Corbet , John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Mark Rutland , Jiri Olsa , Namhyung Kim , Daniel Kiss , Denis Nikitin , Al Grant , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/8] tools headers UAPI: Update tools' copy of linux/coresight-pmu.h Message-ID: <20210208173426.GA2077938@xps15> References: <20210206150833.42120-1-leo.yan@linaro.org> <20210206150833.42120-3-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210206150833.42120-3-leo.yan@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 06, 2021 at 11:08:27PM +0800, Leo Yan wrote: > 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 >