Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp9207732rwb; Thu, 24 Nov 2022 09:25:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf7X/yc7Zf2vFVjg803PBLm07Ybh1FguGGYCIYy/gV6P9tZGq+ZVG4aX84Veaw0YFnCxyAZd X-Received: by 2002:a17:906:a212:b0:7b2:804f:a31c with SMTP id r18-20020a170906a21200b007b2804fa31cmr12086368ejy.523.1669310724005; Thu, 24 Nov 2022 09:25:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669310723; cv=none; d=google.com; s=arc-20160816; b=bJCbrgtFqof0HZ1G5PUX3014LSVxDeKvha8cr+anK/o+GvRSol24jxj1Ju29D5WuJh IxKh6IHO2zi7lN4ceK+htlvlutjZxGiCq3jQ/TbiqR7o7tvQTQ64ZQAJY9TVufDWBNWa LC+UnDdjV7pdVpFGudOuPuDdVDLtAEhtoJ/pc4cqwapLB74xlECBHVFl5wJC1OC7k1fU RG2X6BikZM3AzKoVy4G7fFXrhcJ5AHwWba6XD2+RqsQdQ3Oc/CTsd8SldEDzvqmp2jeN +gZZlojgE+q4EPIQpaBW3skbhCpD79QkA95rcUozwlHZUBY5fh9ts/x6kmEU1cV4SxhE xokQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:references:in-reply-to :message-id:date:subject:cc:to:from; bh=gye1j+cPEzCVNJ6BgXtDlhCGMFFASmdMwR8pSl+qg+s=; b=0zljs90oUkd9JMWkqjnVivutkF/c/Fl0jBGhdECPWQXJsRqEelPJ9egHz2vSsKnw8i vnnRlcK46EbJRvq8DgC9uv6p6Rfvlu8Aq6LatzYoNDE2qM0R8ccRQrg53/mKpYql9sJQ d0MgRosLgRk9oRr+d+Xh50T1dVjoNMhgWXtoJv0ay128PcOdaURBV/oBxoBWJwB5yQp1 VVcNr7bmTGEvHRI6jYW4o9apP+9mHZGW6WGM9zEGb9m1ynfa8Ez41o/d31FIeFra+7Yd M1sResaDFpuRgk5WQpgwu5vKA0lKIG4DBfQkcUUzL6cdsXTd/t5AAMh19OV+6Rjm/KmV Vxfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t18-20020a1709063e5200b0077f92be81adsi1075457eji.212.2022.11.24.09.25.01; Thu, 24 Nov 2022 09:25:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229805AbiKXRPV (ORCPT + 86 others); Thu, 24 Nov 2022 12:15:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbiKXRPJ (ORCPT ); Thu, 24 Nov 2022 12:15:09 -0500 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34EEE131819; Thu, 24 Nov 2022 09:15:08 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R211e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0VVbtc8u_1669310103; Received: from j66e01291.sqa.eu95.tbsite.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VVbtc8u_1669310103) by smtp.aliyun-inc.com; Fri, 25 Nov 2022 01:15:04 +0800 From: Jing Zhang To: John Garry , Ian Rogers , Xing Zhengjun , Will Deacon , James Clark , Mike Leach , Leo Yan Cc: linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, 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: [PATCH v3 6/6] perf vendor events arm64: Add instruction mix metrics for neoverse-n2 Date: Fri, 25 Nov 2022 01:14:48 +0800 Message-Id: <1669310088-13482-7-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1669310088-13482-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1669310088-13482-1-git-send-email-renyu.zj@linux.alibaba.com> 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> X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 | 72 ++++++++++++++++++++++ 1 file changed, 72 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 7b54819..20d46be 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 @@ -234,5 +234,77 @@ "MetricGroup": "PEutilization", "MetricName": "cpu_utilization", "ScaleUnit": "100%" + }, + { + "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", + "ScaleUnit": "100%" + }, + { + "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", + "ScaleUnit": "100%" + }, + { + "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": "data_process_spec_rate", + "ScaleUnit": "100%" + }, + { + "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", + "ScaleUnit": "100%" + }, + { + "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", + "ScaleUnit": "100%" + }, + { + "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", + "ScaleUnit": "100%" + }, + { + "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", + "ScaleUnit": "100%" + }, + { + "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", + "ScaleUnit": "100%" + }, + { + "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", + "ScaleUnit": "100%" } ] -- 1.8.3.1