Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp759143pxb; Fri, 28 Jan 2022 09:20:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAiLZcGRTqOlkHiFIOrFIhyVdjbz2nMwa26fai1Agkq8tvjpfg7wNc+rEyFAgVqZYoSTfa X-Received: by 2002:a17:903:2307:: with SMTP id d7mr9418871plh.16.1643390436040; Fri, 28 Jan 2022 09:20:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643390436; cv=none; d=google.com; s=arc-20160816; b=PRBdR8OWETL1vdMthIez4GlLyrgUEhfu0aEom4EaOvrjf0qg5TOvWcodfnpcyLMhhy sFxH90XNf15hVhCvP47BHJJaiTTz6OOtXt54DMAOq2Rwmk6nqPrG59gRWNdAQcLrSZ8D GMHVfQOrYCZJ/kiR5qcdV9uIPZFv2TVVf9A9UYeM2UoFpE9I09F8Xc1UNRdtndz/oR23 k6AM7WXC8YO5YR7jfRIx4p5vLiMKhcr+W0MjQ1gGvJJzyms3JjAU+WOKarHq0iqVKfgE e5wjn1wetBPIo+KL8AJTgHX2vk1brjcLNX7V5zgelwADKz3njoAA5R9XXUcsTuMqArEi 01mg== 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=Fi1CjDDx2TurE9KIT9xNPFydS/AJyEq38oGV2uaA61U=; b=LVfKT4Kbib8l0ngsPocI4YErEFfrtlaTAf0pV0w4frEjjqMq64XSS6nU/vdQIb95IX IPWshX46THza8F2oFZ7ZDeojUY5orN+hh1FlExDkCmM/9B92UfsWrQTFLbYA13DFbWKh RuGXkJBDYOyk3hCfJzt8IoC0d8kG1y3WvTfAps/S541vVsbF42Ym/bzOblhYoxc3U4rO ojwL8soMR6mY9mWRsEC9u8WtqZr0T04kA91iJXVfW5Yu73infC6yeHFx+Vod0rvePRAH Kxsy5Dmt9l512ChRt+T9D2t4xAi79jHS+30GxsFKsyofxxU334m1YmQOZae2wopekWgg PkkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zrJPnyAi; 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 bk2si6714741pgb.15.2022.01.28.09.20.24; Fri, 28 Jan 2022 09:20:36 -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=zrJPnyAi; 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 S235451AbiA0U0l (ORCPT + 99 others); Thu, 27 Jan 2022 15:26:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231384AbiA0U0k (ORCPT ); Thu, 27 Jan 2022 15:26:40 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F215BC061748 for ; Thu, 27 Jan 2022 12:26:39 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id p12so5249843edq.9 for ; Thu, 27 Jan 2022 12:26:39 -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=Fi1CjDDx2TurE9KIT9xNPFydS/AJyEq38oGV2uaA61U=; b=zrJPnyAi4QGp6MxlP38emBrpS5F5jPUi1PK1fZWvpwb0xusZzOev1cXwqXD93Ah303 Ys26qGM+xFSapbAYx+F93tj/Kg5JrfOi1eaHxcUZPXT2gfuzK3Trv25cghbnsmpduaIp rJEr880xWNlS5IhFzKydfG6n3habeIUecE+dPbH9yYuzu6pIVi66TjU8gPS0Fk/b1YOV z/FwOdNYLUobxS5GHQc1FFk9W41zhXeECZD3ZxDA/9Qi+v+sppG50iWj+WkIXkNCiyK3 kq8QpsI70OhvFhB0uMMS2pDWpgN+VgzO7VyqMjXjE2SeWZ3kCOXqSuUUv/zkJHcqesvt 6KhQ== 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=Fi1CjDDx2TurE9KIT9xNPFydS/AJyEq38oGV2uaA61U=; b=zU3/SywL3p1p1JDcFnGxGR+VETWiATApkn8HxV+MqHBQVKTf22IdU/aQFpZD7qVB6g nsImfHdRdsug/6mYGlzQmwKlrJaKE8XOdQ4Xn5YwNh0wYvRL2JLeUSDCVw9KRxZg1SXQ 98XHSWdRPc4XVAI/TyRKLU24/k7VolBCJFnH1X7AUCzMddeHY8+aBHKNfCZ+IBJR3ra6 xdSidt/G4rx8R79WEj2hA+xWJ1Tcge70JIY1Z9lVXPfaYhBcxSpW8Agbpc7jjjC5ZaMc K+7ioDk/SSyZ6OmuZZQFMS2vmurkigz1NC79VWw0tPDtpZyP1GU+FbSuc1HlFzVYwJ7n zzGA== X-Gm-Message-State: AOAM533kjrjoO63DZm3bud9nVnroB/4Fpi6BlUuHRVsR0NXDOQug/fFB Vp8qdEugbcGgZ/EnNKvqUo0oTuFBo6zgP8UKGrhUQg== X-Received: by 2002:a05:6402:1703:: with SMTP id y3mr5072637edu.239.1643315198479; Thu, 27 Jan 2022 12:26:38 -0800 (PST) MIME-Version: 1.0 References: <20220113091056.1297982-1-james.clark@arm.com> In-Reply-To: <20220113091056.1297982-1-james.clark@arm.com> From: Mathieu Poirier Date: Thu, 27 Jan 2022 13:26:26 -0700 Message-ID: Subject: Re: [PATCH v2 0/6] coresight: Add config flag to enable branch broadcast To: James Clark Cc: Suzuki.Poulose@arm.com, coresight@lists.linaro.org, leo.yan@linaro.com, mike.leach@linaro.org, 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 Hi James, I am seriously back-logged in my patch reviews and as such will not be able to get to your work in the usual 14 days. At this time and if everything goes well, I should be able to start reviewing this patchset during the week of February 7th. Thanks, Mathieu On Thu, 13 Jan 2022 at 02:11, James Clark wrote: > > This allows enabling branch broadcast for Perf hosted sessions (the option > is currently only available for the sysfs interface). Hopefully this could > be useful for testing the decode in perf, for example does a determinisitic > run with branch broadcast enabled look the same as with it disabled? It > could also be used for scenarios like OpenJ9's support for JIT code: > > java -Xjit:perfTool hello.java > > Currently this is not working and you get the usual errors of a missing > DSO, but branch broadcast would have to be enabled anyway before working > through this next issue: > > CS ETM Trace: Debug data not found for address 0xffff7b94b058 in /tmp/perf-29360.map > > Address range support in Perf for branch broadcast has also not been added > here, but could be added later. > > The documentation has been refactored slightly to allow updates to be made > that link the Perf format arguments with the existing documentation. > > For Suzuki's comment, I will do it as a separate change that converts all > the other hard coded values to a more consistent sysreg.h style: > > nit: While at this, please could you change the hard coded value > to ETM4_CFG_BIT_RETSTK ? > > Changes since v1: > > * Added Leo's reviewed by on patch 3 > * Fix bracket styling > * Add documentation > > Applies on top of coresight/next efa56eddf5d5c. But this docs fix is also > required to get the links to work: > https://marc.info/?l=linux-doc&m=164139331923986&w=2 > > Also available at: https://gitlab.arm.com/linux-arm/linux-jc/-/tree/james-branch-broadcast-v2 > > James Clark (6): > coresight: Add config flag to enable branch broadcast > coresight: Fail to open with return stacks if they are unavailable > perf cs-etm: Update deduction of TRCCONFIGR register for branch > broadcast > Documentation: coresight: Turn numbered subsections into real > subsections > Documentation: coresight: Link config options to existing > documentation > Documentation: coresight: Expand branch broadcast documentation > > .../coresight/coresight-etm4x-reference.rst | 14 ++++- > Documentation/trace/coresight/coresight.rst | 56 +++++++++++++++++-- > .../hwtracing/coresight/coresight-etm-perf.c | 2 + > .../coresight/coresight-etm4x-core.c | 23 ++++++-- > include/linux/coresight-pmu.h | 2 + > tools/include/linux/coresight-pmu.h | 2 + > tools/perf/arch/arm/util/cs-etm.c | 3 + > 7 files changed, 92 insertions(+), 10 deletions(-) > > -- > 2.28.0 >