Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8272039ybi; Thu, 6 Jun 2019 09:23:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFyWFF/W0UnQ3uDqhS2l1++x2uAkgOA9HLlAgjU6a3ywP05MvIbPMffsalmxUt5B6lsgc1 X-Received: by 2002:a63:f957:: with SMTP id q23mr4135120pgk.326.1559838183190; Thu, 06 Jun 2019 09:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559838183; cv=none; d=google.com; s=arc-20160816; b=vsNoYXm0alrkJyA3s7rZnE2Sf+/OCutQaJIKDNFgCJjcGhIqZXqsf/8Xefaaj8Z8yi qr4x42cdZ/ypE6Fq+1BG0XIwWS1KqP0vMSG9IS9gnaPPUvTfpj6Zn3wnrn6MSmQbE0yQ Ak6jd0iDjYB2kOHVXNUdv6s55t9VEHTWShl70slBl+lyJ426r68aRal47wlIPe1UPBe7 gSjOtaPBpFdkX4Y5OpRNueRZi98mnWqXGgmkH/SD3P2DACcimtn3R6Vs8wuP3hJhCA6b S/KrpYPKcdJLPf90L0s3ZFln2FPr8IjHL/ltCO364YsZpt3I89mhCBm7VUl9pj+Lf9Yk 35qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=S2V004hlWUMygfyKak1yvZwsWQnmZa335OHIq+u/Y70=; b=bDfRL7zbC5Bo2t9xI4tXqRodKIph3MZ6t2QQ0WKC/hMWAVbMbT7oaY8KuphC83nIHx Tw9p8r/0aBwQfi+GdjspY3yELF85Bo5gRGQXfCfz8P3lTCPW7zVeED0fJ6y708ZVOWH4 H0hogyWSqlmNn8hXekU8ABC7YAohs02Jx6WCSd2yAzPvbLxMLMyigjBoYejHp+UKpt2s mpBwHXs6Wnk/TOIkMiMkxW9CMERekrH8pD5rpa5nz0Yu6oTchuKYFDKcB6u+ZgByPgpl tDrjO3AD4V4x8Nm2dKrkg2D+nzGdnPq4Z3AkjN3Au9lj328ExbaNl/nHpP+nOJ65Bc0E q6Bw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t8si2362161pgh.235.2019.06.06.09.22.46; Thu, 06 Jun 2019 09:23:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729619AbfFFQVW (ORCPT + 99 others); Thu, 6 Jun 2019 12:21:22 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:49938 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729434AbfFFQVW (ORCPT ); Thu, 6 Jun 2019 12:21:22 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D6879A78; Thu, 6 Jun 2019 09:21:21 -0700 (PDT) Received: from [10.1.196.93] (en101.cambridge.arm.com [10.1.196.93]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C4B963F690; Thu, 6 Jun 2019 09:21:20 -0700 (PDT) Subject: Re: [PATCH] Documentation: coresight: Update the generic device names To: mathieu.poirier@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, leo.yan@linaro.org, coresight@lists.linaro.org, corbet@lwn.net References: <1559229077-26436-1-git-send-email-suzuki.poulose@arm.com> <20190603190133.GA20462@xps15> From: Suzuki K Poulose Message-ID: <99055755-6525-694e-a15d-5de7318a80da@arm.com> Date: Thu, 6 Jun 2019 17:21:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190603190133.GA20462@xps15> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cheers Suzuki