Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1387370pxb; Fri, 21 Jan 2022 17:17:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJywdkXBgYOynG0sf1o6aERhdS3HdnlAu901Mv0wy497SmMO8hQYvYLzvyz/mjrRDsBrmVEF X-Received: by 2002:a17:90b:3ec4:: with SMTP id rm4mr3174017pjb.120.1642814251011; Fri, 21 Jan 2022 17:17:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642814251; cv=none; d=google.com; s=arc-20160816; b=BMuXyqX/lz4rFwSLRz3JbQp4MbEfem+GqYXUoiOb/CEJk96RsXW3YzKKlnda/CNR5V 6RZI2ES/uRB+qAo0U2CG44SongYbFYzbWsxu4cQCxVBD32zQZE+V4KHMU/YeQ5gopmWA g655JGnWHWIdkvrjHYQvz4WNXjwZu/OYzldoM2UK/xXWwQzYswfI0MP03NCR3RxSmIXG HBilFKEF67aA0nGIDoisMfy7EbSRit32k6EvSQF6MI1SRrdpXe3pAd6cRmzBdzjGwpQl CM3pUgsrs0gQY1vo4BdeaLpet4j8yD25jzL+zuLDcryya+OMXvD/rzT3keEeNpB7pglU LIYg== 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=AwSBqHVllEbRZxhPaY/nleQIUKbH7/3TNlbkvqfi1ds=; b=owchoL6rddDDaXMLQAKPMCGhzQsCKS+Czk1KPnJKYdd4QiX4Ds75I+H7DpDSuveR3n wiZ+cQ1r6cb0qcto5eGalSM1Butn+osmWlqe8vmHeZBPb8EBns/gVcURaJx2/9vVrvbp jUYIQaK6HiBbx8WdMHP1ujjO72vvmR9cKuIXPfnGrcj9WpB8MI9uQ48JVwIA/HE/jpXr /iY0Hl5OCaKlMwoUcV6evI9b8qf2qYsOhkv3rjP9NzrmMOD1a0uqW9wofMgfFjh0dETt ZXBhkH2HZzmzjiyzc12Z5JuJlEJdHIW7s2p8dROtwdCbeeuXTweyhkR5DR6suOKajV5h 6JEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SjAYeD0C; 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 bc15si622833pgb.604.2022.01.21.17.17.18; Fri, 21 Jan 2022 17:17:30 -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=SjAYeD0C; 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 S1380511AbiAUMuw (ORCPT + 99 others); Fri, 21 Jan 2022 07:50:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380500AbiAUMuq (ORCPT ); Fri, 21 Jan 2022 07:50:46 -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 54C3DC061574 for ; Fri, 21 Jan 2022 04:50:46 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id j5-20020a05600c1c0500b0034d2e956aadso22130036wms.4 for ; Fri, 21 Jan 2022 04:50:46 -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=AwSBqHVllEbRZxhPaY/nleQIUKbH7/3TNlbkvqfi1ds=; b=SjAYeD0CSrOpQfIZCcvtmxQ8h4fFUkFk0ENjs0Rszvp1oIgCTAm601Q/tsPSQJ5Cqx W65MO+a5lYctkovj7NtvOtHzSBQwMzjRhqbBfQR818uHl9a62sijHLUPnRxX71octH37 inVt3W9AWDp9CcUCgpFWwZpNqS3UdsD8Aj5wI78Si6biRzlyTCbWEL4rlzhs0d9kXr4e r6RkiSOSnpt8COFooc35f0LiMw3vx+cpVA8OTAf1vjyMoxBqhbL2RZo09eqs5Vo/t1oS pYC8dFKjQvSRYdZ8yMg6UTOCGX5t/OvHXWACE/5TjyOY3T/9WznPg3dv7VGNRdvuQJBa 3QJw== 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=AwSBqHVllEbRZxhPaY/nleQIUKbH7/3TNlbkvqfi1ds=; b=i7eY5l/jxnH6kEex8RFihOKfWp8bCFSE06UMHbJ2iR6qVeSGYRqRNu9475Nw9iY3p+ SlSxuUwPipI/3vekxJ7FSbTNMkyPTqG82Hx4Nk+vCwrLjAhs/1A/eojqibhxIl9/3q3l 5zbyNiLzAm4+I2Q6/t3GvRSRfnS9x31h46eWiyy00kikWFO0Vg5AtlqfkwpwOE+c6BOu e+6gKXuXLiTvmkWG66ELgESnSZ4xWUwHvRNNbIH4jWy5W8WTVWyyUmdYnMeD7oJrj1f1 kI6j52yvL/shnDgVhPeihdTDz9qPYSr6K5U3+Pyo8o1zCPf4/zhpsB7GYDPs//wnRVoq W49A== X-Gm-Message-State: AOAM530yNmVwSbYHqaVly9s9WJIPuepacOuZCzoeqNz028+J4wQmACpB NDkegI+7yR3GgyIot60gI7m1gT5LDfzCQwnGnF9tTA== X-Received: by 2002:a5d:618b:: with SMTP id j11mr3725004wru.619.1642769444987; Fri, 21 Jan 2022 04:50:44 -0800 (PST) MIME-Version: 1.0 References: <20220113091056.1297982-1-james.clark@arm.com> <20220113091056.1297982-7-james.clark@arm.com> In-Reply-To: <20220113091056.1297982-7-james.clark@arm.com> From: Mike Leach Date: Fri, 21 Jan 2022 12:50:34 +0000 Message-ID: Subject: Re: [PATCH v2 6/6] Documentation: coresight: Expand branch broadcast documentation 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 On Thu, 13 Jan 2022 at 09:11, James Clark wrote: > > Now that there is a way of enabling branch broadcast via perf, mention > the possible use cases and known limitations. > > Signed-off-by: James Clark > --- > .../trace/coresight/coresight-etm4x-reference.rst | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/Documentation/trace/coresight/coresight-etm4x-reference.rst b/Documentation/trace/coresight/coresight-etm4x-reference.rst > index 0439b4006227..ec336575919c 100644 > --- a/Documentation/trace/coresight/coresight-etm4x-reference.rst > +++ b/Documentation/trace/coresight/coresight-etm4x-reference.rst > @@ -656,7 +656,15 @@ Bit assignments shown below:- > ETM_MODE_BB > > **description:** > - Set to enable branch broadcast if supported in hardware [IDR0]. > + Set to enable branch broadcast if supported in hardware [IDR0]. The primary use for this feature > + is when code is patched dynamically at run time and the full program flow may not be able to be > + reconstructed using only conditional branches. > + > + Choosing this option will result in a significant increase in the amount of trace generated - > + possible danger of overflows, or fewer instructions covered. Note, that this option also > + overrides any setting of :ref:`ETM_MODE_RETURNSTACK `, so where a branch > + broadcast range overlaps a return stack range, return stacks will not be available for that > + range. > > .. _coresight-cycle-accurate: > > -- > 2.28.0 > Reviewed-by: Mike Leach -- Mike Leach Principal Engineer, ARM Ltd. Manchester Design Centre. UK