Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp624999pxb; Tue, 2 Feb 2021 13:34:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQnMUMq9K1rpSGTQU08APQACxLr9y6ddQ3ck9lhDaOWUaBZsq5E2ec+4kPD63CM6NiwF7y X-Received: by 2002:aa7:c9cf:: with SMTP id i15mr86167edt.296.1612301672848; Tue, 02 Feb 2021 13:34:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612301672; cv=none; d=google.com; s=arc-20160816; b=a9+G0kNbm5tlx9i78PYnJAua2VruH3HgvG0Ib5p0PzKPI//lJuqwtaijq2kDrJ8CPZ uOt4d6XX/zBtdUz3EuWawH2qdWYDMT84CICKWJByJMagAnjlUBhcx5+putF7cGouu/i5 9rliDWp7ikstjeJFzhN1xR2fLArQ8T95LC+G5dDWVo+GKQKICHN32Yw1fTW9OZcU6hui iXHdZS/x7+lPlSKLaMdJfrpESjdTcbM1CNps6mvfQ+Ux/KwizLo8sVjL7zuDlV6SICJz YC2BEzzTIbdQYgdgaEUJHjj3P6ttZOOPtdDoilftD5+JwCBae6p/aHb1jIz7wtLvD/nx tCsQ== 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:ironport-sdr; bh=CB8U4rV+a2quOlkfX9+uC20pCt+8NxSVyFvzzTJwiro=; b=uZ0pVJ1OWSjCOT3uadQ4EhThDCcoqud1kprxtcBXlHtHmmxSO/bk12fpg3Ku4eA0m2 Sv8o15t2l/q12DzJWGw8PcWD160rRQPTULVxEVWGUMoFsK7Elt8DtOO77lqZ9GM9ESII JLzcAP+ZGv3qk9Im1vjHrsYf8RMNZcfPNOZvF4Roqp/5Rjn6sJnbK6XeV1uZY+yutgd0 1miv7j/2fXhIgSU0cQvIta5xMyZfVHJFwkE26GxK3OdqRVhh00+2F8tifS3ii0hwBVBz 5X6p4bAWnULE5og/aiZbtCnc+2EOJrDdxRYP9o8kGw8qCFmcyD9fmvDq/zOcwAvKsGC2 FHNg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b61si6567226edf.278.2021.02.02.13.34.03; Tue, 02 Feb 2021 13:34:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229483AbhBBNAY (ORCPT + 99 others); Tue, 2 Feb 2021 08:00:24 -0500 Received: from esa9.hc1455-7.c3s2.iphmx.com ([139.138.36.223]:24240 "EHLO esa9.hc1455-7.c3s2.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230193AbhBBNAS (ORCPT ); Tue, 2 Feb 2021 08:00:18 -0500 IronPort-SDR: ZxIuKzG20pUZ2FH9tSljD3C/EUZAKv0KduRGiWhfmopBn3ITfy8GATahkUNNixcJKSCIZgyL9Y Phk10jcjQGmPDDQcZPn/rbCAiIG499zgfYRU5L1jq7lZlUCImSyKe1X2RPgMg1K0wWvsPcf+sZ qMGF5d8uzfbTS3qOZyuDD5EgwHD1C38oWvG8sRBSBbNrlQU/ipq7/JAsxBD0BsjVlx56fHgc3f YaKRMI2mjwRWrOrgsuwcjrE+eExhfGqZByeIdDiSomFoi+/SMtfV3YeE139sy8Vz2b5mvjocs3 KkY= X-IronPort-AV: E=McAfee;i="6000,8403,9882"; a="5703227" X-IronPort-AV: E=Sophos;i="5.79,395,1602514800"; d="scan'208";a="5703227" Received: from unknown (HELO yto-r1.gw.nic.fujitsu.com) ([218.44.52.217]) by esa9.hc1455-7.c3s2.iphmx.com with ESMTP; 02 Feb 2021 21:57:58 +0900 Received: from yto-m3.gw.nic.fujitsu.com (yto-nat-yto-m3.gw.nic.fujitsu.com [192.168.83.66]) by yto-r1.gw.nic.fujitsu.com (Postfix) with ESMTP id C2396EC7E6 for ; Tue, 2 Feb 2021 21:57:57 +0900 (JST) Received: from pumpkin.openstacklocal (pumpkin.fct.css.fujitsu.com [10.130.70.189]) by yto-m3.gw.nic.fujitsu.com (Postfix) with ESMTP id 111ED1557A for ; Tue, 2 Feb 2021 21:57:57 +0900 (JST) Received: by pumpkin.openstacklocal (Postfix, from userid 1012) id 8AD391086; Tue, 2 Feb 2021 21:51:40 +0900 (JST) From: Shunsuke Nakamura To: john.garry@huawei.com, will@kernel.org, mathieu.poirier@linaro.org, leo.yan@linaro.org, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Shunsuke Nakamura Subject: [PATCH v5 0/4] perf vendor events: Support PMU events for A64FX Date: Tue, 2 Feb 2021 21:51:36 +0900 Message-Id: <20210202125140.1785583-1-nakamura.shun@jp.fujitsu.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shunsuke Nakamura This patch series supports A64FX PMU event v1.2. The first patch adds a common and microarchitecture event, which can be referenced from CPU JSONs. This patch uses part of John's patch.[1] The second patch add more common and microarchitecture events. The third patch fixes the lexical definition of event name so that perf can recognize event name that start with a number. The fourth patch adds PMU events for A64FX. Changes in v4: - Add arm64 to the subjects of the second and fourth patches. - Add reference URLs to the body of the second patch. Changes in v3: - Add linux-arm-kernel mailing list to cc. Changes in v2: - Added armv8-common-and-microarch based on John's patch.[1] - Fixed A64FX Json to refer to standard events in armv8-common-and-microarch. [1] https://lore.kernel.org/lkml/1611835236-34696-3-git-send-email-john.garry@huawei.com/ John Garry (1): perf vendor events arm64: Add common and uarch event JSON Shunsuke Nakamura (3): perf vendor events arm64: Add common and uarch event JSON perf vendor events arm64: Add more common and uarch events perf tools: Fix lexical definition of event name perf vendor events arm64: Add Fujitsu A64FX pmu event .../arch/arm64/armv8-common-and-microarch.json | 476 +++++++++++++++++++++ .../arch/arm64/fujitsu/a64fx/branch.json | 8 + .../pmu-events/arch/arm64/fujitsu/a64fx/bus.json | 62 +++ .../pmu-events/arch/arm64/fujitsu/a64fx/cache.json | 128 ++++++ .../pmu-events/arch/arm64/fujitsu/a64fx/cycle.json | 5 + .../arch/arm64/fujitsu/a64fx/exception.json | 29 ++ .../arch/arm64/fujitsu/a64fx/instruction.json | 131 ++++++ .../arch/arm64/fujitsu/a64fx/memory.json | 8 + .../pmu-events/arch/arm64/fujitsu/a64fx/other.json | 188 ++++++++ .../arch/arm64/fujitsu/a64fx/pipeline.json | 194 +++++++++ .../pmu-events/arch/arm64/fujitsu/a64fx/sve.json | 110 +++++ tools/perf/pmu-events/arch/arm64/mapfile.csv | 1 + tools/perf/util/parse-events.l | 2 +- 13 files changed, 1341 insertions(+), 1 deletion(-) create mode 100644 tools/perf/pmu-events/arch/arm64/armv8-common-and-microarch.json create mode 100644 tools/perf/pmu-events/arch/arm64/fujitsu/a64fx/branch.json create mode 100644 tools/perf/pmu-events/arch/arm64/fujitsu/a64fx/bus.json create mode 100644 tools/perf/pmu-events/arch/arm64/fujitsu/a64fx/cache.json create mode 100644 tools/perf/pmu-events/arch/arm64/fujitsu/a64fx/cycle.json create mode 100644 tools/perf/pmu-events/arch/arm64/fujitsu/a64fx/exception.json create mode 100644 tools/perf/pmu-events/arch/arm64/fujitsu/a64fx/instruction.json create mode 100644 tools/perf/pmu-events/arch/arm64/fujitsu/a64fx/memory.json create mode 100644 tools/perf/pmu-events/arch/arm64/fujitsu/a64fx/other.json create mode 100644 tools/perf/pmu-events/arch/arm64/fujitsu/a64fx/pipeline.json create mode 100644 tools/perf/pmu-events/arch/arm64/fujitsu/a64fx/sve.json -- 1.8.3.1