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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8B11C433FE for ; Mon, 14 Nov 2022 07:43:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236009AbiKNHnI (ORCPT ); Mon, 14 Nov 2022 02:43:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235986AbiKNHm6 (ORCPT ); Mon, 14 Nov 2022 02:42:58 -0500 Received: from out30-56.freemail.mail.aliyun.com (out30-56.freemail.mail.aliyun.com [115.124.30.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E270E18B37; Sun, 13 Nov 2022 23:42:48 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R721e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0VUjWi3C_1668411762; Received: from j66e01291.sqa.eu95.tbsite.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VUjWi3C_1668411762) by smtp.aliyun-inc.com; Mon, 14 Nov 2022 15:42:43 +0800 From: Jing Zhang To: linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, John Garry , Will Deacon , James Clark , Mike Leach , Leo Yan Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Andrew Kilroy , Shuai Xue , Zhuo Song , Jing Zhang Subject: [RFC PATCH v2 6/6] perf vendor events arm64: Add instruction mix metrics for neoverse-n2 Date: Mon, 14 Nov 2022 15:42:00 +0800 Message-Id: <1668411720-3581-7-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1668411720-3581-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1668411720-3581-1-git-send-email-renyu.zj@linux.alibaba.com> In-Reply-To: <1667214694-89839-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1667214694-89839-1-git-send-email-renyu.zj@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add instruction mix related metrics. Signed-off-by: Jing Zhang --- .../arch/arm64/arm/neoverse-n2/metrics.json | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json b/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json index 3c14971..8ff1dfe 100644 --- a/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json +++ b/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json @@ -180,5 +180,68 @@ "BriefDescription": "Utilization of CPU", "MetricGroup": "PEutilization", "MetricName": "cpu_utilization" + }, + { + "MetricExpr": "LD_SPEC / INST_SPEC", + "PublicDescription": "The rate of load instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of load instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "load_spec_rate" + }, + { + "MetricExpr": "ST_SPEC / INST_SPEC", + "PublicDescription": "The rate of store instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of store instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "store_spec_rate" + }, + { + "MetricExpr": "DP_SPEC / INST_SPEC", + "PublicDescription": "The rate of integer data-processing instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of integer data-processing instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "date_process_spec_rate" + }, + { + "MetricExpr": "ASE_SPEC / INST_SPEC", + "PublicDescription": "The rate of advanced SIMD instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of advanced SIMD instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "advanced_simd_spec_rate" + }, + { + "MetricExpr": "VFP_SPEC / INST_SPEC", + "PublicDescription": "The rate of floating point instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of floating point instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "float_point_spec_rate" + }, + { + "MetricExpr": "CRYPTO_SPEC / INST_SPEC", + "PublicDescription": "The rate of crypto instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of crypto instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "crypto_spec_rate" + }, + { + "MetricExpr": "BR_IMMED_SPEC / INST_SPEC", + "PublicDescription": "The rate of branch immediate instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of branch immediate instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "branch_immed_spec_rate" + }, + { + "MetricExpr": "BR_RETURN_SPEC / INST_SPEC", + "PublicDescription": "The rate of procedure return instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of procedure return instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "branch_return_spec_rate" + }, + { + "MetricExpr": "BR_INDIRECT_SPEC / INST_SPEC", + "PublicDescription": "The rate of indirect branch instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of indirect branch instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "branch_indirect_spec_rate" } ] \ No newline at end of file -- 1.8.3.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 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 5BF75C4332F for ; Mon, 14 Nov 2022 07:44:29 +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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: 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: List-Owner; bh=Wfj6fmA1DnBcPgg/IMSIi/misMwHtjdOElvO0mrRcWA=; b=34ULENo2joxqJx rpKZqHfmNTMkA336O7CyNhYeoTMubSuUeYzoHvZQDaZLFcQT5qmEVPTMrMbTmguUI4/5Eoe8vo1uS 0FwmiBU9kfz5Zh1iS0POZW18CTpvS9Sg8zerNfLFH+YauZMmsoVIVs1/dEiQbntT3XYxJzC8TtKEd Uq9NN76IcwE9HKuKtYhYjMoO0U8UasOIjK12k6Ogb2G2Sup0WSjmB66JdyPX8Vd2r5I8IzW4L6AdH xBwxc6bUfyn9g+fMelY/XGTPn/yT+f6LMO7iN9DAzZkSH8myso6dTC621roE2wandjG+oFmPwYF0+ RKu3H3TvleG1UF3qliLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouU7u-00GW9a-20; Mon, 14 Nov 2022 07:43:30 +0000 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouU7D-00GVwZ-OF for linux-arm-kernel@lists.infradead.org; Mon, 14 Nov 2022 07:42:51 +0000 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R721e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0VUjWi3C_1668411762; Received: from j66e01291.sqa.eu95.tbsite.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VUjWi3C_1668411762) by smtp.aliyun-inc.com; Mon, 14 Nov 2022 15:42:43 +0800 From: Jing Zhang To: linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, John Garry , Will Deacon , James Clark , Mike Leach , Leo Yan Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Andrew Kilroy , Shuai Xue , Zhuo Song , Jing Zhang Subject: [RFC PATCH v2 6/6] perf vendor events arm64: Add instruction mix metrics for neoverse-n2 Date: Mon, 14 Nov 2022 15:42:00 +0800 Message-Id: <1668411720-3581-7-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1668411720-3581-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1668411720-3581-1-git-send-email-renyu.zj@linux.alibaba.com> In-Reply-To: <1667214694-89839-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1667214694-89839-1-git-send-email-renyu.zj@linux.alibaba.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221113_234247_975646_128C0BE5 X-CRM114-Status: UNSURE ( 7.59 ) 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: , MIME-Version: 1.0 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 Add instruction mix related metrics. Signed-off-by: Jing Zhang --- .../arch/arm64/arm/neoverse-n2/metrics.json | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json b/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json index 3c14971..8ff1dfe 100644 --- a/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json +++ b/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2/metrics.json @@ -180,5 +180,68 @@ "BriefDescription": "Utilization of CPU", "MetricGroup": "PEutilization", "MetricName": "cpu_utilization" + }, + { + "MetricExpr": "LD_SPEC / INST_SPEC", + "PublicDescription": "The rate of load instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of load instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "load_spec_rate" + }, + { + "MetricExpr": "ST_SPEC / INST_SPEC", + "PublicDescription": "The rate of store instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of store instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "store_spec_rate" + }, + { + "MetricExpr": "DP_SPEC / INST_SPEC", + "PublicDescription": "The rate of integer data-processing instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of integer data-processing instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "date_process_spec_rate" + }, + { + "MetricExpr": "ASE_SPEC / INST_SPEC", + "PublicDescription": "The rate of advanced SIMD instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of advanced SIMD instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "advanced_simd_spec_rate" + }, + { + "MetricExpr": "VFP_SPEC / INST_SPEC", + "PublicDescription": "The rate of floating point instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of floating point instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "float_point_spec_rate" + }, + { + "MetricExpr": "CRYPTO_SPEC / INST_SPEC", + "PublicDescription": "The rate of crypto instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of crypto instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "crypto_spec_rate" + }, + { + "MetricExpr": "BR_IMMED_SPEC / INST_SPEC", + "PublicDescription": "The rate of branch immediate instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of branch immediate instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "branch_immed_spec_rate" + }, + { + "MetricExpr": "BR_RETURN_SPEC / INST_SPEC", + "PublicDescription": "The rate of procedure return instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of procedure return instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "branch_return_spec_rate" + }, + { + "MetricExpr": "BR_INDIRECT_SPEC / INST_SPEC", + "PublicDescription": "The rate of indirect branch instructions speculatively executed to overall instructions speclatively executed", + "BriefDescription": "The rate of indirect branch instructions speculatively executed to overall instructions speclatively executed", + "MetricGroup": "InstructionMix", + "MetricName": "branch_indirect_spec_rate" } ] \ No newline at end of file -- 1.8.3.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel