Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp533524rwj; Fri, 23 Dec 2022 05:02:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXs26DV7It+vbPdKQPLHnVYJOF5CJudulcEuny8w2eUTUcL6npYet+3mXIuz+KroSZfZ1ww/ X-Received: by 2002:a05:6a20:43a5:b0:af:6d40:9883 with SMTP id i37-20020a056a2043a500b000af6d409883mr13552910pzl.18.1671800558563; Fri, 23 Dec 2022 05:02:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671800558; cv=none; d=google.com; s=arc-20160816; b=EC8nbqkVzQV4Lh4SD18wWKR28craDLuXLCbQ+hG9dmSMflHtz68VlvWdAT5r9ha45/ AHAVeLgkAo+2ke5gRJQ5JBTBGk/lJ/6cgyV3pLHZDITgNjJJlZ6m7rfeQS4InqHfHWuf XOaoCHqYtY07kUNo5fLubMXfUleE3Gz+MI3gh0fbo/tP0sImcbBkzbW4ir1PwzEA37+l c3PRMR1QgABSXaBsrd8bVuoUML28Pwbnom2COcYfvZFeETYMjVbCvoAD1Nr/8aMLpEBV NV6w2M1XenfCmSiLQOyET4b/YdXYirGlIhb0HVS9lMt7AmB6A3nxWmqiJY3woZliAsnD 3nzw== 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:message-id:date:subject :cc:to:from; bh=pM3YgUxVL7VJGpMPxQTRvNRUZDWNhxGTgAUBh4ubjkk=; b=tH7DOMcB01G2jAMnPJaZc+J3OQklhe8B9O5ZmJXy9AaacZU6qIOiI+qotqUUpvAGO1 tU1L0WtOZEQhEP09XUo3Yva3Mqm3X0OtbLfvNCG7Wwr/3BAl+je8O4UYcOxRZpMmg0pj XArbAivMUkqA/OWFxBCiRKmqeUbPaZGqf8d1q9v2mBnfvFSnLMyF0nWsNKRGzMREpwgl +S07JRACmgm9EH0Ik5wikZoEtcVpaJQ1xyaJ/7bp+S5ROuQCOMgGLzMW6Oo9PqRQqTii eubQZSJ3Gh03pnVe/fV+9NGPBZ2jWsFCyspqqnSRu7lHlakLnIaPQbmxDv0LBTjNtS+x YOiw== 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 15-20020a63164f000000b004769246309dsi3527759pgw.501.2022.12.23.05.02.29; Fri, 23 Dec 2022 05:02:38 -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 S235995AbiLWMkL (ORCPT + 65 others); Fri, 23 Dec 2022 07:40:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236001AbiLWMjn (ORCPT ); Fri, 23 Dec 2022 07:39:43 -0500 Received: from out199-8.us.a.mail.aliyun.com (out199-8.us.a.mail.aliyun.com [47.90.199.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C6A81C10B; Fri, 23 Dec 2022 04:39:40 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0VXwwMZu_1671799175; Received: from srmbuffer011165236051.sqa.eu95(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VXwwMZu_1671799175) by smtp.aliyun-inc.com; Fri, 23 Dec 2022 20:39:35 +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 v4 6/6] perf vendor events arm64: Add instruction mix metrics for neoverse-n2 Date: Fri, 23 Dec 2022 20:37:25 +0800 Message-Id: <1671799045-1108027-7-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1671799045-1108027-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1671799045-1108027-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 | 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 2c85e86..34647d1 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 @@ -210,5 +210,68 @@ "MetricGroup": "PEutilization", "MetricName": "cpu_utilization", "ScaleUnit": "100%" + }, + { + "MetricExpr": "LD_SPEC / INST_SPEC", + "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", + "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", + "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", + "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", + "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", + "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", + "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", + "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", + "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