Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4917245pxb; Wed, 26 Jan 2022 00:08:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtjDrkwfS+Do/zOGu2kBVGY/eQg2DRGyJAUTXcL8T10WdyeCxa0CVxSAphla7kMMwMBSnq X-Received: by 2002:aa7:cac7:: with SMTP id l7mr24163953edt.302.1643184529876; Wed, 26 Jan 2022 00:08:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643184529; cv=none; d=google.com; s=arc-20160816; b=AxGP0THskCAd9J9HBRYyox+LPxnzxChziWMfaiWXvJ+KSXngwQzQaQoW7Xr7BCyHiP lgGDcfrpfEAmbxo83vHjGD2D3C49VYZc04kdI+NYs/1lnwBqsh2xkotEjCwcoXqCDkZ2 tMR1e5AGZ6lj3loQp0Y84snoUSigoqOS9rXFZG0wv2n2Ng5VZDwO5c5yf0z+9coLqSb2 Oh48YLonWtvUfxRnrkzQ3K7i9l8GvZkPbUN+oA+J+Ah1H1kLxWsYKcJB4y9+58pmNYsM l14zhT8kXHZBbdi2V51QKLteVd1KWLO2qdNS9ufh70g0hx541LpFq4zHvqbFn+Me+eQE 449g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=eai/aZmBQfgBxad8NOkpwEmtOizddqtvtIYAogy/SMk=; b=LSvLdZFcUQ1HdRaXVcosYqdmo8kM3QW5pzXFZ53SGWxFp0ogbgedYeYDqkeLxAvC9M C5ck5uuIRpjevqN3i33fnKSsWoBfvAjU7Pa2fqs9fQ2Lk5my8FfR4CIrxvtByaPm1lUP TzBb+P9NROD7AKBEEi5D+YwMSC6vKMhwOWNIhQsl/hd2ie3XuKHaynk0MsLAe17ZVOWK l1yCIdtnEV8dkYCnpDsmieVLBqqqblPfteFawbrK+ao9m5cSjE7aYowJyW1mXd8okdMU zVHMjDnNbO30lSrL9RVjpVN0EkoImYYjXvLdpztaQ1nqZBTuF6li3GYPNHFVuRJP4PcU mjtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=H7KOkFqI; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cr13si1446160ejc.407.2022.01.26.00.08.24; Wed, 26 Jan 2022 00:08:49 -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=@amazon.com header.s=amazon201209 header.b=H7KOkFqI; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230172AbiAYTfG (ORCPT + 99 others); Tue, 25 Jan 2022 14:35:06 -0500 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:42674 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbiAYTeU (ORCPT ); Tue, 25 Jan 2022 14:34:20 -0500 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(+) -- 2.24.4.AMZN