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 X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54E7DC433E6 for ; Thu, 4 Mar 2021 03:37:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1125D64EF8 for ; Thu, 4 Mar 2021 03:37:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232555AbhCDDgb (ORCPT ); Wed, 3 Mar 2021 22:36:31 -0500 Received: from esa3.hc1455-7.c3s2.iphmx.com ([207.54.90.49]:6785 "EHLO esa3.hc1455-7.c3s2.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232447AbhCDDgH (ORCPT ); Wed, 3 Mar 2021 22:36:07 -0500 IronPort-SDR: N0AZTvrW/jcOyuvrJaiSesNwGPmGH2ZBoF7MyqWtMae2P5TpEwzZNN3+FJ0B2eHpkLCBzgFqvU qVoR7CrLL/DTUv9i9b15WP6+dOWteUrmY5sSH0VZvLocaEgvXSf8EN8SLopjGJ1CSLhk11umdE O9wpm3m0m9WpWLLOFzjMMgnFv/YHof11jGatBFkP+i+RbPV4+nGqtd4dhljojiC+0llbGpJpA2 X+/kK8OqHpWNYPZ54F5kGMgT+AYa+pnx+FobOpkan1jwrvCZo2Uc99+Q1i7fNtihx1TQhdtkN9 GSI= X-IronPort-AV: E=McAfee;i="6000,8403,9912"; a="21614234" X-IronPort-AV: E=Sophos;i="5.81,221,1610377200"; d="scan'208";a="21614234" Received: from unknown (HELO oym-r1.gw.nic.fujitsu.com) ([210.162.30.89]) by esa3.hc1455-7.c3s2.iphmx.com with ESMTP; 04 Mar 2021 12:26:16 +0900 Received: from oym-m2.gw.nic.fujitsu.com (oym-nat-oym-m2.gw.nic.fujitsu.com [192.168.87.59]) by oym-r1.gw.nic.fujitsu.com (Postfix) with ESMTP id B212C41AAA4 for ; Thu, 4 Mar 2021 12:26:14 +0900 (JST) Received: from yto-om3.fujitsu.com (yto-om3.o.css.fujitsu.com [10.128.89.164]) by oym-m2.gw.nic.fujitsu.com (Postfix) with ESMTP id C767C6E00A for ; Thu, 4 Mar 2021 12:26:13 +0900 (JST) Received: from pumpkin.openstacklocal (pumpkin.fct.css.fujitsu.com [10.130.70.189]) by yto-om3.fujitsu.com (Postfix) with ESMTP id A7AB24007EDAA; Thu, 4 Mar 2021 12:26:13 +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 Subject: [PATCH v7 0/4] perf vendor events: Support PMU events for A64FX Date: Thu, 4 Mar 2021 12:26:06 +0900 Message-Id: <20210304032610.3112996-1-nakamura.shun@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 add more common and microarchitecture events. This patch is based on john's patch [1]. The second patch fixes the lexical definition of event name so that perf can recognize event name that start with a number. The third patch adds PMU events for A64FX. The fourth patch adds test for event name starting with a number. Changes in v6: - Add test to the second patch. - Add Acked-by tag to the third patch. - Add Reviewed-by tag to the third patch. Changes in v5: - Removed john's patch [1] from this patch series. - Added the missing Reviewed-by tag to the patch. - Fixed the base of the patch series.[2] - Changed subject from fix to added. 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/ [2] https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git perf/core Shunsuke Nakamura (4): perf vendor events arm64: Add more common and uarch events perf tools: Add lexical definition of event name perf vendor events arm64: Add Fujitsu A64FX pmu event perf test: Add test for event name starting with a number .../arm64/armv8-common-and-microarch.json | 228 ++++++++++++++++++ .../arch/arm64/fujitsu/a64fx/branch.json | 8 + .../arch/arm64/fujitsu/a64fx/bus.json | 62 +++++ .../arch/arm64/fujitsu/a64fx/cache.json | 128 ++++++++++ .../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 + .../arch/arm64/fujitsu/a64fx/other.json | 188 +++++++++++++++ .../arch/arm64/fujitsu/a64fx/pipeline.json | 194 +++++++++++++++ .../arch/arm64/fujitsu/a64fx/sve.json | 110 +++++++++ tools/perf/pmu-events/arch/arm64/mapfile.csv | 1 + tools/perf/tests/pmu-events.c | 16 +- tools/perf/util/parse-events.l | 2 +- 14 files changed, 1094 insertions(+), 16 deletions(-) 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 -- 2.25.1 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 X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33C43C433E6 for ; Thu, 4 Mar 2021 03:30:54 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 C152664EE4 for ; Thu, 4 Mar 2021 03:30:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C152664EE4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=fujitsu.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=1Y2VyaTOrYUDeScwAdXm0v15eeh2giHE3p1LYBd6xYk=; b=DOGmcBQSBYwT+cAQlWnZTGK3L+ PgK3Tl2TUBde4WD0rn/NWL7KB0JUlRjLiISiU4/WAaTjTdqdVb8DfkUgg20rulXK0G6y0901NOJ/n oEXP+9OXRGzWcCKqdagVgVGDUlaCUErd7g9kUL5R/PvbI8wQ0V2nd1yK0oZ32sc6Z1Zo92PrwOSo/ zy+kpx3XBLnVDipaZP6UdDw/CeBeLJW9UuyHwuxUzU03fLuAhVO64sRQ7uXR4Jz+MfBSvtnrzQVsR tFP4mEZaW7hUH0V5W4FmCjk15zK8iS+QrkPYy3CLswAunM3EK/43Bo6FiWf9DUUm9OZZCfm/BXF1V z7VhY60g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lHedM-007bes-Uf; Thu, 04 Mar 2021 03:26:41 +0000 Received: from esa6.hc1455-7.c3s2.iphmx.com ([68.232.139.139]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lHedA-007bco-E4 for linux-arm-kernel@lists.infradead.org; Thu, 04 Mar 2021 03:26:34 +0000 IronPort-SDR: z62EAO4N/oj+WSGsvnWNd2w7cx8MAqsRxQR+CkN34ZrbaEez8oJ/eQDO1SlMMN6wJs/FQw74dp 10lWCs766tD3EbEKzx+YzMKcLwxoeShWB6eha5wNZX5XkmLif+r3ZRVDmTgs0pMq02XUnvA314 DFPRKdVchFqG/GYdKrC9+TUM8NfssFUwm1Mbj9jsc96Cvr0yQldMp8gMO/hKEW2Vnea89DNXyq VIfnrOepNwaLoQCxN9SYeuSUl6BTJFIrR7rqeNkUFD5PHxd064nPA7mcAPPFRrgvPZHvPpZxvm 4LM= X-IronPort-AV: E=McAfee;i="6000,8403,9912"; a="21531723" X-IronPort-AV: E=Sophos;i="5.81,221,1610377200"; d="scan'208";a="21531723" Received: from unknown (HELO yto-r4.gw.nic.fujitsu.com) ([218.44.52.220]) by esa6.hc1455-7.c3s2.iphmx.com with ESMTP; 04 Mar 2021 12:26:15 +0900 Received: from yto-m2.gw.nic.fujitsu.com (yto-nat-yto-m2.gw.nic.fujitsu.com [192.168.83.65]) by yto-r4.gw.nic.fujitsu.com (Postfix) with ESMTP id 7E0C921EC03 for ; Thu, 4 Mar 2021 12:26:14 +0900 (JST) Received: from yto-om3.fujitsu.com (yto-om3.o.css.fujitsu.com [10.128.89.164]) by yto-m2.gw.nic.fujitsu.com (Postfix) with ESMTP id B0A0DE677D for ; Thu, 4 Mar 2021 12:26:13 +0900 (JST) Received: from pumpkin.openstacklocal (pumpkin.fct.css.fujitsu.com [10.130.70.189]) by yto-om3.fujitsu.com (Postfix) with ESMTP id A7AB24007EDAA; Thu, 4 Mar 2021 12:26:13 +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 Subject: [PATCH v7 0/4] perf vendor events: Support PMU events for A64FX Date: Thu, 4 Mar 2021 12:26:06 +0900 Message-Id: <20210304032610.3112996-1-nakamura.shun@fujitsu.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-TM-AS-GCONF: 00 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Shunsuke Nakamura This patch series supports A64FX PMU event v1.2. The first patch add more common and microarchitecture events. This patch is based on john's patch [1]. The second patch fixes the lexical definition of event name so that perf can recognize event name that start with a number. The third patch adds PMU events for A64FX. The fourth patch adds test for event name starting with a number. Changes in v6: - Add test to the second patch. - Add Acked-by tag to the third patch. - Add Reviewed-by tag to the third patch. Changes in v5: - Removed john's patch [1] from this patch series. - Added the missing Reviewed-by tag to the patch. - Fixed the base of the patch series.[2] - Changed subject from fix to added. 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/ [2] https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git perf/core Shunsuke Nakamura (4): perf vendor events arm64: Add more common and uarch events perf tools: Add lexical definition of event name perf vendor events arm64: Add Fujitsu A64FX pmu event perf test: Add test for event name starting with a number .../arm64/armv8-common-and-microarch.json | 228 ++++++++++++++++++ .../arch/arm64/fujitsu/a64fx/branch.json | 8 + .../arch/arm64/fujitsu/a64fx/bus.json | 62 +++++ .../arch/arm64/fujitsu/a64fx/cache.json | 128 ++++++++++ .../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 + .../arch/arm64/fujitsu/a64fx/other.json | 188 +++++++++++++++ .../arch/arm64/fujitsu/a64fx/pipeline.json | 194 +++++++++++++++ .../arch/arm64/fujitsu/a64fx/sve.json | 110 +++++++++ tools/perf/pmu-events/arch/arm64/mapfile.csv | 1 + tools/perf/tests/pmu-events.c | 16 +- tools/perf/util/parse-events.l | 2 +- 14 files changed, 1094 insertions(+), 16 deletions(-) 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 -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel