From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5F65CEED63A for ; Thu, 12 Sep 2024 19:25:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=qcL8oV6Jak6uG5Zfw8yGAHB+AlXZbVK0IT5066X9QRE=; b=IWdkSJsmHxiZTCxeXoy71WuxVi xKDE8JVrbtEnB2sMmLjgG/BdjV02qbd0hyFQ2xm0KVyiCz4LuY2I+w0N55RhzRFRV6YcI97vCoQUD P6b4tdmvk4XYDojwbWSZ/n+ba3sFcUceS899pJmXA0q0rNAxqVEn87zd5Aha0VNtO4mgZTXv8dVeP YjttWWZZZpu9OmA0xreTAz6AEf8QT3VJCgpBcIemT2w2GMPIoj6ccCOsNKQ12NIX9Wk0dj7sHzNUa BlgYtD78/tC/PQ05P1einZXjcVJz2wWHiUFaEaW+upKcFTd+mZPHcX+It1Zy09YsSHarZ/0SooyHX BV7ovk+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sopRM-0000000E4TH-2GSP; Thu, 12 Sep 2024 19:25:16 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sopPR-0000000E4Gm-2wkD for linux-arm-kernel@lists.infradead.org; Thu, 12 Sep 2024 19:23:19 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id DF8FDA457A3; Thu, 12 Sep 2024 19:23:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81D43C4CEC5; Thu, 12 Sep 2024 19:23:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1726168996; bh=2H2D1UKN3ueeo9obCoL9xvBF5quxcPzdVyyieDRhrjM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=buaQyJw5NfVVPPRjX7zrO8uUO44LLB5E9Dr8GlBWf5QTbEwubouXz0Q71WxdqVlcP coJbud3OSPQvakRZEzM/WSgv36cOcXzSibVDT+dOL/5e/oj1IIVma61k1o5Evpas0c BdZJ63XU+kywBckaOASlglGrBo7zj8531ear4dYgBx9i9yq9Az/kyc1BMwpGA8RvAl iTaDnnSdBiOw/wUVN+FEiXb+Arlmdnf+/MDQLxyP2A9F/riUEyeY1gtJAZqiabz2ec 82Ura9GdOwaeZIJFsWoTol9uurCmCaBsjCWrxLAOzRSsTa8nwoHNvC9frsd2ILDPpr k4781pAQtAtqg== Date: Thu, 12 Sep 2024 16:23:12 -0300 From: Arnaldo Carvalho de Melo To: James Clark Cc: linux-perf-users@vger.kernel.org, gankulkarni@os.amperecomputing.com, coresight@lists.linaro.org, leo.yan@arm.com, scclevenger@os.amperecomputing.com, Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , "Liang, Kan" , Suzuki K Poulose , Mike Leach , John Garry , Will Deacon , Leo Yan , Ben Gainey , Ruidong Tian , Benjamin Gray , Mathieu Poirier , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 0/7] perf: cs-etm: Coresight decode and disassembly improvements Message-ID: References: <20240912151143.1264483-1-james.clark@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240912151143.1264483-1-james.clark@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240912_122317_898593_CBA232DF X-CRM114-Status: GOOD ( 20.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Sep 12, 2024 at 04:11:31PM +0100, James Clark wrote: > A set of changes that came out of the issues reported here [1]. > > * First 2 patches fix a decode bug in Perf and add support for new > consistency checks in OpenCSD > * The remaining ones make the disassembly script easier to test > and use. This also involves adding a new Python binding to > Perf to get a config value (perf_config_get()) > > [1]: https://lore.kernel.org/linux-arm-kernel/20240719092619.274730-1-gankulkarni@os.amperecomputing.com/ Looks ok from a quick look, but I can't test it, so since there are reporters for problems that are being fixed, it would be great to have a Tested-by: from the reporters and probably from someone with access to the hardware where this can be tested. - Arnaldo > Changes since V1: > * Keep the flush function for discontinuities > * Still remove the flush when the buffer fills, but now add > cs_etm__end_block() for the end trace. That way we won't drop > the last branch stack if the instruction sample period wasn't > hit at the very end. > > James Clark (7): > perf cs-etm: Don't flush when packet_queue fills up > perf cs-etm: Use new OpenCSD consistency checks > perf scripting python: Add function to get a config value > perf scripts python cs-etm: Update to use argparse > perf scripts python cs-etm: Improve arguments > perf scripts python cs-etm: Add start and stop arguments > perf test: cs-etm: Test Coresight disassembly script > > .../perf/Documentation/perf-script-python.txt | 2 +- > .../scripts/python/Perf-Trace-Util/Context.c | 11 ++ > .../scripts/python/arm-cs-trace-disasm.py | 109 +++++++++++++----- > .../tests/shell/test_arm_coresight_disasm.sh | 63 ++++++++++ > tools/perf/util/config.c | 22 ++++ > tools/perf/util/config.h | 1 + > .../perf/util/cs-etm-decoder/cs-etm-decoder.c | 7 +- > tools/perf/util/cs-etm.c | 25 ++-- > 8 files changed, 205 insertions(+), 35 deletions(-) > create mode 100755 tools/perf/tests/shell/test_arm_coresight_disasm.sh > > -- > 2.34.1