Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8778603ybi; Thu, 6 Jun 2019 20:08:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxrUC1UQkiRciw0QsAzuy4Re9SneuThBnECAGR4cF6Mls6btp8IDIULStKbWrEZ4YpznkU X-Received: by 2002:a17:90a:9a8d:: with SMTP id e13mr3153099pjp.77.1559876898702; Thu, 06 Jun 2019 20:08:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559876898; cv=none; d=google.com; s=arc-20160816; b=0911omXHrPXdR2Uhp/Bi1C2J4Jhu+b9t3kwAQEX2YWlqAOAh11UdFubBQa7oiM1SKn P//CKMFUFyhVxalCour6jXywtTwbszp339onB7g/VruBwvGfohYJIOHsqboNP79yy41y jEtpjtAM3R+hJtErq33tdXyBZ2Ubl5TcUyZnOZiMy3UzQ8dn6mCAu37umsLYGttl8kl4 LVEG9xHKHecCyWi11u8/M4KHc+ud/J516oCEQBHJZVaMgaT7tcECiMC2tkmC8khAcLli 54iiGc6ABcVum8fe0QNAOTLMQ9M57AYFoFB35fUQAqBvUTZ/BktVzbfg1ttqNBUJ3X9L O/Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ypCRpLGfpU1UTauZw8qNAOgzbjXvHTif8VBKbvg8Yv0=; b=tzgcApqGRgzXwyfDE0DKxTMvo92OKKWQMc9Yss+0Hd/QTSNMR/mPPOm7dcO0ze6vCy rnh7V9S+bxW56qKgY7Wj4VGPAh/rNzhlzXnzCqaZwZ1YLsSrEZWbxvrTf6JxPw8EvMms E15TsiSd8GPmktwx0PqzvDLcnCzSyznMH7mlMysw5JaT0yAtepJoAmC808uwfCIvMBUu AeEWHEwsQS4SBCxJ7FEiypDnN1dH00J3EkxtwtJjZSbzBHkZeLpSa+TBaqAVD/9z2aWB a9CDn0bMjgFgt5B+7QUOkVPV8CRU3jx/TsMNUEjqH43THmjVtvvt2d/dpQGmD/OrfQQ+ rrNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sbZ4UhtQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id t11si724340plr.23.2019.06.06.20.07.52; Thu, 06 Jun 2019 20:08:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sbZ4UhtQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727158AbfFGCVp (ORCPT + 99 others); Thu, 6 Jun 2019 22:21:45 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:43932 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbfFGCVp (ORCPT ); Thu, 6 Jun 2019 22:21:45 -0400 Received: by mail-yb1-f193.google.com with SMTP id n145so230390ybg.10 for ; Thu, 06 Jun 2019 19:21:44 -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:user-agent; bh=ypCRpLGfpU1UTauZw8qNAOgzbjXvHTif8VBKbvg8Yv0=; b=sbZ4UhtQKg5EgRtrg7vRjKJMr8vXoJDJ2sy0wlwAvzzyODxcsgFiYX+gdXWWxxMmc2 t+dbJScuXiVZQoszVJ4kfPowotE8aLagjUWGrTfUytsiU/fKwNxGIpx/heREknnLhU8G bA6s09NdVszAHpONG5qJHWmBAF/l7+nVKgQiskJgH1g1cEaRq5k/3jjkLCak0ttca1gF M9LJjLvkeheLN0Imi7fmeNspKiJhpOl1dL6MQrwhEjzynL+ETosKxZfTQbKZcfy4/kC6 9xnl9C5s8K7ckGISDEJ5xcw+YqRoFw0Dy9VUaoV+zJnC6pWCLCOd0JDFOB9UjbRBKN8n fa/g== 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:user-agent; bh=ypCRpLGfpU1UTauZw8qNAOgzbjXvHTif8VBKbvg8Yv0=; b=lY+maruaq+30H4KJhPKrwKwf2V2hH462m7UdMFEoiiCDZ3CNukjsabldUKDb/bxRCg aec56q2PJtHRUzZH1uyZem2+H4ZQFjpaWvJzG+qlStR0r52U3j0nU7Pn8XpatLfaNn89 HGwReKK/AnD+Xe5bsZE925A6WVtBfagaPgL/XIb3XThxk8W7/j0pYofVnW84kI15Ppp6 mwV47Y6zYkQIi7Ry1oasMX5hoNQrnPNoS0nhdfPeucwuEJjckmgaGlEzSa4YuFU1Poim RmL6E1DU9CXd+8UI3b1kzALjm+dj0Dk+M/nkFsO13rlikNDmeVl0KJ88T4rTGlooAUXx PeaA== X-Gm-Message-State: APjAAAXkYQOCDbIQImf5sMjMOtFNdbay84uzlexh30OM9lqnCyWzDVhB IZfpjYfHea+UtBwyJTg81nwJ0g== X-Received: by 2002:a25:97c6:: with SMTP id j6mr24142048ybo.513.1559874104275; Thu, 06 Jun 2019 19:21:44 -0700 (PDT) Received: from leoy-ThinkPad-X240s (li1322-146.members.linode.com. [45.79.223.146]) by smtp.gmail.com with ESMTPSA id j14sm215444ywi.7.2019.06.06.19.21.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Jun 2019 19:21:43 -0700 (PDT) Date: Fri, 7 Jun 2019 10:21:36 +0800 From: Leo Yan To: Suzuki K Poulose Cc: mathieu.poirier@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, corbet@lwn.net Subject: Re: [PATCH] Documentation: coresight: Update the generic device names Message-ID: <20190607022136.GE5970@leoy-ThinkPad-X240s> References: <1559229077-26436-1-git-send-email-suzuki.poulose@arm.com> <20190603190133.GA20462@xps15> <99055755-6525-694e-a15d-5de7318a80da@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <99055755-6525-694e-a15d-5de7318a80da@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Suzuki, On Thu, Jun 06, 2019 at 05:21:19PM +0100, Suzuki K Poulose wrote: > Hi Mathieu, > > On 03/06/2019 20:01, Mathieu Poirier wrote: > > Hi Suzuki, > > > > On Thu, May 30, 2019 at 04:11:17PM +0100, Suzuki K Poulose wrote: > > > Update the documentation to reflect the new naming scheme with > > > latest changes. > > > > > > Reported-by: Leo Yan > > > Cc: Mathieu Poirier > > > Cc: Jonathan Corbet > > > Signed-off-by: Suzuki K Poulose > > > --- > > > Documentation/trace/coresight.txt | 34 +++++++++++++++++++--------------- > > > 1 file changed, 19 insertions(+), 15 deletions(-) > > > > > > diff --git a/Documentation/trace/coresight.txt b/Documentation/trace/coresight.txt > > > index efbc832..7b427cf 100644 > > > --- a/Documentation/trace/coresight.txt > > > +++ b/Documentation/trace/coresight.txt > > > @@ -326,16 +326,20 @@ amount of processor cores), the "cs_etm" PMU will be listed only once. > > > A Coresight PMU works the same way as any other PMU, i.e the name of the PMU is > > > listed along with configuration options within forward slashes '/'. Since a > > > Coresight system will typically have more than one sink, the name of the sink to > > > -work with needs to be specified as an event option. Names for sink to choose > > > -from are listed in sysFS under ($SYSFS)/bus/coresight/devices: > > > +work with needs to be specified as an event option. > > > +On newer kernels the available sinks are listed in sysFS under: > > > +($SYSFS)/bus/event_source/devices/cs_etm/sinks/ > > > - root@linaro-nano:~# ls /sys/bus/coresight/devices/ > > > - 20010000.etf 20040000.funnel 20100000.stm 22040000.etm > > > - 22140000.etm 230c0000.funnel 23240000.etm 20030000.tpiu > > > - 20070000.etr 20120000.replicator 220c0000.funnel > > > - 23040000.etm 23140000.etm 23340000.etm > > > + root@localhost:/sys/bus/event_source/devices/cs_etm/sinks# ls > > > + tmc_etf0 tmc_etr0 tpiu0 > > > - root@linaro-nano:~# perf record -e cs_etm/@20070000.etr/u --per-thread program > > > +On older kernels, this may need to be found from the list of coresight devices, > > > +available under ($SYSFS)/bus/coresight/devices/: > > > + > > > + root@localhost:/sys/bus/coresight/devices# ls > > > + etm0 etm1 etm2 etm3 etm4 etm5 funnel0 funnel1 funnel2 replicator0 stm0 tmc_etf0 tmc_etr0 tpiu0 > > > + > > > + root@linaro-nano:~# perf record -e cs_etm/@tmc_etr0/u --per-thread program > > > > On the "older" kernels you are referring to one would find the original naming > > convention. Everything else looks good to me. > > True, but do we care what we see there ? All we care about is the location, > where to find them. I could fix it, if you think thats needed. IIUC, either the old kernel or newer kernel, both we can find the event from ($SYSFS)/bus/event_source/devices/cs_etm/sinks/; the only difference between them is the naming convention. So the doc can use the same location to find event for both new and old kernel, and explain the naming convention difference? Thanks, Leo Yan