From patchwork Tue Nov 9 16:30:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: German Gomez X-Patchwork-Id: 12692091 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4B15C433EF for ; Tue, 9 Nov 2021 16:31:57 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 855CD6109D for ; Tue, 9 Nov 2021 16:31:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 855CD6109D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xRQ45KmBfm5r04msvUf6xLkV+bAHOKSFaIfQPl0mK24=; b=THgmXG6guTx5yi 1qFTaPfclCFqdGUpY1UFS4zP4dFW0SWO+H9Bl7HdQfeNmV8rpgpt4pCpB7yS7eDPmW95BdX7uQnG1 dRyyRYkmcrHRh+jEAoNtexmEvsK2cFFs0Ad730jI92Rx8usIgTxuphdClcjmZLmKaSXjEjHznX7+p 49utW7JVZ98fxZYMaQebC8N8wFA1QP6e2PE7iMf6QeHjzUzl8FRWJWp7SNGi5euy0+C/bZAm5lsU8 /V8zpChJku078p2mvd682czKipqaHkrQ1dOnAaxpdgj81bVcpZXUJ8ChigZ+96tw1gpeL3XY2zBZm xvDF4qB1wi6XdXhPo1vQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkU1F-002gGw-8i; Tue, 09 Nov 2021 16:30:45 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkU17-002gFD-7M for linux-arm-kernel@lists.infradead.org; Tue, 09 Nov 2021 16:30:38 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A4A36ED1; Tue, 9 Nov 2021 08:30:35 -0800 (PST) Received: from ip-10-252-15-108.eu-west-1.compute.internal (unknown [10.252.15.108]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 888503F800; Tue, 9 Nov 2021 08:30:33 -0800 (PST) From: German Gomez To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org Cc: German Gomez , John Garry , Will Deacon , Mathieu Poirier , Leo Yan , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/3] perf arm-spe: Add snapshot mode support Date: Tue, 9 Nov 2021 16:30:06 +0000 Message-Id: <20211109163009.92072-1-german.gomez@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211109_083037_332197_92D3AB4F X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. 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 This patchset adds snapshot mode support for arm-spe. - [PATCH 1/3] implements the minimal callbacks to support recording in snapshot mode. - [PATCH 2/3] implements the find_snapshot callback in order to handle wrap-arounds in the AUX buffer. - [PATCH 3/3] adds a test for spe snapshot mode. Acked-by: Namhyung Kim --- Changes since v1: - Added acme@kernel.org to the recipients list as I forgot to include him in the original patchset [1]. - Removed [PATCH 1/5] and [PATCH 2/5] in order to keep patches semantically relevant. - Updated test script test_arm_spe.sh because it wasn't working on distributions that use dash shell v0.5.10 (ubuntu 20) [2]. [1] https://lore.kernel.org/all/20210916154635.1525-1-german.gomez@arm.com/ [2] https://lore.kernel.org/all/fd65eb63-d4ca-2105-74cb-c717ad2eb7d3@arm.com/ German Gomez (3): perf arm-spe: Add snapshot mode support perf arm-spe: Implement find_snapshot callback perf arm-spe: Snapshot mode test tools/perf/arch/arm64/util/arm-spe.c | 275 +++++++++++++++++++++++++ tools/perf/tests/shell/test_arm_spe.sh | 89 ++++++++ 2 files changed, 364 insertions(+) create mode 100755 tools/perf/tests/shell/test_arm_spe.sh