From patchwork Tue Jan 25 19:20:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ali Saidi X-Patchwork-Id: 12724182 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 52DB9C433F5 for ; Tue, 25 Jan 2022 19:35:38 +0000 (UTC) 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=/FPUCwsp1P9sJtvUvWD10xB/cy4w2yoMPdQEIK5DLbg=; b=jz/q0JPjZ2XlgL vFB1J5WXhERzfaaOBjCzeCTkNylF5TNJ9ZCwvNndv4nyKgH6UW6ZjFdP/cISOv14polfarOA6M0wr uME4B6tRJdmRSpfIi/7qrovDZpf0v7Cq3vRMiJwNhoYI9AwmkwragQHhJffBOefT4AgtQ1fDv7Re5 1F4Bpvrat7pt9lUc9jaPZpgHDwYoKs8weaGo0eR2/Ed8CN+VIx8aaBL8L495KqW6uG6z1CHWpGPaT lyELLWuK59gPmE2e063pLQWudsQq6wlsMq3KYrf1KoIOvLv7kTCkV3sE4vkyUPTkbubPW1KGrDUGE 1GXKntNoXKP12bOlETTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCRaB-009LPa-EH; Tue, 25 Jan 2022 19:34:23 +0000 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCRa8-009LOr-1s for linux-arm-kernel@lists.infradead.org; Tue, 25 Jan 2022 19:34:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1643139260; x=1674675260; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=eai/aZmBQfgBxad8NOkpwEmtOizddqtvtIYAogy/SMk=; b=H7KOkFqIez8Knp9uGnu4KBtABIW8+hNNmdlln/J5Be1duQTxSOFe35vo cTMDmO+r7DxvRMt4PkkE2fDgErimJF6dUjLf9/oRnM9En+fkVHyPGNa2d 9to1MHQ4svVP+lFSYxrjEoJD9ThDy2wFDTPWB/H2SBZsKwAUqMUiuTyUi 8=; X-IronPort-AV: E=Sophos;i="5.88,315,1635206400"; d="scan'208";a="172099002" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-pdx-2c-d9fba5dd.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-33001.sea14.amazon.com with ESMTP; 25 Jan 2022 19:34:15 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-pdx-2c-d9fba5dd.us-west-2.amazon.com (Postfix) with ESMTPS id 78FE341A6B; Tue, 25 Jan 2022 19:34:14 +0000 (UTC) Received: from EX13D02UWC002.ant.amazon.com (10.43.162.6) by EX13MTAUWB001.ant.amazon.com (10.43.161.207) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Tue, 25 Jan 2022 19:34:14 +0000 Received: from EX13MTAUEB002.ant.amazon.com (10.43.60.12) by EX13D02UWC002.ant.amazon.com (10.43.162.6) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Tue, 25 Jan 2022 19:34:13 +0000 Received: from dev-dsk-alisaidi-i31e-9f3421fe.us-east-1.amazon.com (10.200.138.153) by mail-relay.amazon.com (10.43.60.234) with Microsoft SMTP Server id 15.0.1497.28 via Frontend Transport; Tue, 25 Jan 2022 19:34:13 +0000 Received: by dev-dsk-alisaidi-i31e-9f3421fe.us-east-1.amazon.com (Postfix, from userid 5131138) id 4807121E70; Tue, 25 Jan 2022 19:34:12 +0000 (UTC) From: Ali Saidi To: , , CC: , , Peter Zijlstra , Ingo Molnar , "Arnaldo Carvalho de Melo" , Mark Rutland , "Alexander Shishkin" , Jiri Olsa , Namhyung Kim , John Garry , "Will Deacon" , Mathieu Poirier , "Leo Yan" , James Clark , German Gomez , Andrew Kilroy Subject: [PATCH 0/2] Allow perf scripts to process SPE raw data Date: Tue, 25 Jan 2022 19:20:08 +0000 Message-ID: <20220125192016.20538-1-alisaidi@amazon.com> X-Mailer: git-send-email 2.24.4.AMZN MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220125_113420_191605_55D56DBA X-CRM114-Status: UNSURE ( 9.49 ) 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 These two changes first expose the arm_spe_record as raw data to the synthesized perf sample and second decode more of the operation and event types that aren't used for existing perf tools into the arm_spe_record. This allows perf scripts to process the decoded SPE records instead of parsing the raw-trace back into some type of structure. Ali Saidi (2): perf arm-spe: Add arm_spe_record to synthesized sample as raw_data perf arm-spe: Parse more SPE fields .../util/arm-spe-decoder/arm-spe-decoder.c | 23 +++++++++++++++++++ .../util/arm-spe-decoder/arm-spe-decoder.h | 9 ++++++++ tools/perf/util/arm-spe.c | 6 +++++ 3 files changed, 38 insertions(+)