Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1385831pxb; Fri, 21 Jan 2022 17:14:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwg3QKQLfK2chMYnD/KWxgHQiy0Tt3uYKL5yMlYdBh+6r7rkcn2IYX3Xu5ILyBN9lVz359v X-Received: by 2002:a17:90a:ab03:: with SMTP id m3mr3178915pjq.21.1642814073074; Fri, 21 Jan 2022 17:14:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642814073; cv=none; d=google.com; s=arc-20160816; b=uI/I8yTbxl6Jwj0ISdR/qCxj62u8PPADHyhO0/f3DrNx1lReKV/nKIXbQXYqFAf73A rnjJNaly3qJithPeHa8kRhyGQ7N0KNknCpSg+nrv8muOllHqJV66zdJrzSmKkQmdWoXR XfDq63Y1v99ORf/LxOwnVuy1gS32+x8ECMwVZJl8kTF3IGGn+EmNs+aIL18oXAw7FkYw 8zqAy3Zep53q77wz7w9ZCK9QjXaSz0812tdmbi08qRm1gMnjta5PcztCxroJnDn7bFKv jdPquIkEeeeGfQC1qMjqfVkRF8xG9AzUPVq8zUgdrIp/VCqd0KtADYrQqLy7167NtmxW NtTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KSIxsFPV5bVCwyYpPb8wil0j/b7MlVv5okHNBdZvb+s=; b=FCqdMJzelsnCqO/W8SekVHWZoEnPnlkd6QpGsbKGn9hK09C1b473SyjTN0KmqG1Yla fMh51RcdmOdf7WxBxxR4xl4NTnx7DPbr7r0cGRey1zaDB/NONH1vSPK9dSaIzdgesUwb dL0F5o8swgSAP0nb4EM8cV+ejFTnRKLTVF3fG4Usedo+h29ClOI9XtsULfMpWINUxkN7 RwEdLcWeKCw7fKX3+wnmrjYZrWim2ijxjvgCgH6CS9Lbd9Eag226vT/An1u+FM1Si3uv +XOLPnC+cjxpjbo+j/6gTW1rj2mExRR9Hjm6BEzV4RBfEi46zm1CO96PrhwOXjTH29bc ZO9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=prZs3Cnc; 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 w10si7109677plb.515.2022.01.21.17.14.21; Fri, 21 Jan 2022 17:14:33 -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=prZs3Cnc; 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 S1350562AbiAUMrU (ORCPT + 99 others); Fri, 21 Jan 2022 07:47:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244399AbiAUMrS (ORCPT ); Fri, 21 Jan 2022 07:47:18 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD558C061574 for ; Fri, 21 Jan 2022 04:47:17 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id r132-20020a1c448a000000b0034e043aaac7so4830233wma.5 for ; Fri, 21 Jan 2022 04:47:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KSIxsFPV5bVCwyYpPb8wil0j/b7MlVv5okHNBdZvb+s=; b=prZs3CnccQtpraXzDMyfAnnmDi3yi6DOvIX1O4I5Q+pMyvQOytbx7Kr7II79SCyfCA k6W+BskGtZBjaDa+Y82fAIISYK4L9B7riP26eFan0MSrVkV29q/YgWRtYRSqneBtkB6h i4dd1Wb7OBRRnH/RjVP2zs+QBJdFFZOmIPInK8Senk8Q8pjzojGK6MfOh1Ojy8cIElo8 PFKa1dRCK3yXGf0e7ynFi+WEs49Bj6Ydot/YSWVHJM3kIxl1/UopW+JMZrJJKLNXty7r uX8FUvII/MeeDS0cc/RXqZmiC0IacZj5ubW7owphGuFmH460scZ/sE+a7+ry9gpdwOZG GQ7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KSIxsFPV5bVCwyYpPb8wil0j/b7MlVv5okHNBdZvb+s=; b=JZIA+Ikje7lX2jyxR5LYuBuQrpxKr+KTTBt0jloiXf9nPcep4tGprk0z0oMhUZ1PjE X0L8AFY5/WLfqVkyTD6Q/OyOWiKuHq1QgLXqm51ddkMMXMxBnGb/9PR5AOUOc+76qFEy XFYQFDuROI6Tx5e8dUNoPiZkVWsGYk9NpOxk2RBmugcrGSZBOOPrHkzPaftWvMutdatq /MVA5l1KMQppNSSJ0QzNCHVqVseHe7T/Vf4H3aLKtyJSdQlA5A/V/vDT6KHWLSvh4daC iHyfcNxAuV27/kcPLksFZYIKPTVo38MoNs8jHP6swz7TWABSDOxpQL/azeJdCTVWWgjb O95A== X-Gm-Message-State: AOAM532a211BV0pLYBd+x1QmuDXQbXwdklbCB2x+RR2TtQ5mRwyRCqMd I/wNCA/up6+8TlnophqWLI1Pc5apDvmlKESHXqIs6IeYHhcY1Q== X-Received: by 2002:a05:600c:4f4d:: with SMTP id m13mr588843wmq.153.1642769236393; Fri, 21 Jan 2022 04:47:16 -0800 (PST) MIME-Version: 1.0 References: <20220113091056.1297982-1-james.clark@arm.com> <20220113091056.1297982-5-james.clark@arm.com> In-Reply-To: <20220113091056.1297982-5-james.clark@arm.com> From: Mike Leach Date: Fri, 21 Jan 2022 12:47:05 +0000 Message-ID: Subject: Re: [PATCH v2 4/6] Documentation: coresight: Turn numbered subsections into real subsections To: James Clark Cc: suzuki.poulose@arm.com, mathieu.poirier@linaro.org, coresight@lists.linaro.org, leo.yan@linaro.com, Leo Yan , John Garry , Will Deacon , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Mike Leach On Thu, 13 Jan 2022 at 09:11, James Clark wrote: > > This is to allow them to be referenced in a later commit. There was > also a mistake where sysFS was introduced as section 2, but numbered > as section 1. And vice versa for 'Using perf framework'. This can't > happen with unnumbered sections. > > Signed-off-by: James Clark > --- > Documentation/trace/coresight/coresight.rst | 17 ++++++++++++----- > 1 file changed, 12 insertions(+), 5 deletions(-) > > diff --git a/Documentation/trace/coresight/coresight.rst b/Documentation/trace/coresight/coresight.rst > index a15571d96cc8..db66ff45ff4c 100644 > --- a/Documentation/trace/coresight/coresight.rst > +++ b/Documentation/trace/coresight/coresight.rst > @@ -339,7 +339,8 @@ Preference is given to the former as using the sysFS interface > requires a deep understanding of the Coresight HW. The following sections > provide details on using both methods. > > -1) Using the sysFS interface: > +Using the sysFS interface > +~~~~~~~~~~~~~~~~~~~~~~~~~ > > Before trace collection can start, a coresight sink needs to be identified. > There is no limit on the amount of sinks (nor sources) that can be enabled at > @@ -446,7 +447,8 @@ wealth of possibilities that coresight provides. > Instruction 0 0x8026B588 E8BD8000 true LDM sp!,{pc} > Timestamp Timestamp: 17107041535 > > -2) Using perf framework: > +Using perf framework > +~~~~~~~~~~~~~~~~~~~~ > > Coresight tracers are represented using the Perf framework's Performance > Monitoring Unit (PMU) abstraction. As such the perf framework takes charge of > @@ -495,7 +497,11 @@ More information on the above and other example on how to use Coresight with > the perf tools can be found in the "HOWTO.md" file of the openCSD gitHub > repository [#third]_. > > -2.1) AutoFDO analysis using the perf tools: > +Advanced perf framework usage > +----------------------------- > + > +AutoFDO analysis using the perf tools > +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > perf can be used to record and analyze trace of programs. > > @@ -513,7 +519,8 @@ The --itrace option controls the type and frequency of synthesized events > Note that only 64-bit programs are currently supported - further work is > required to support instruction decode of 32-bit Arm programs. > > -2.2) Tracing PID > +Tracing PID > +~~~~~~~~~~~ > > The kernel can be built to write the PID value into the PE ContextID registers. > For a kernel running at EL1, the PID is stored in CONTEXTIDR_EL1. A PE may > @@ -547,7 +554,7 @@ wants to trace PIDs for both host and guest, the two configs "contextid1" and > > > Generating coverage files for Feedback Directed Optimization: AutoFDO > ---------------------------------------------------------------------- > +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > 'perf inject' accepts the --itrace option in which case tracing data is > removed and replaced with the synthesized events. e.g. > -- > 2.28.0 > -- Mike Leach Principal Engineer, ARM Ltd. Manchester Design Centre. UK