Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp526848rwj; Fri, 23 Dec 2022 04:58:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXtySY0dahjlCziVZ6V97iDEBcDJEQPdfNGSAsx9uPXfKfFYn+tWlnOf5Rb2Rlz2FIOH868X X-Received: by 2002:a17:90b:4fc3:b0:219:53fd:2cb9 with SMTP id qa3-20020a17090b4fc300b0021953fd2cb9mr10713664pjb.7.1671800295718; Fri, 23 Dec 2022 04:58:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671800295; cv=none; d=google.com; s=arc-20160816; b=N69/QXSzIAmmrlYsgdolfxz3PCyAKpY8Gg/2ebtUlzeRTuotTtHA2N0G3iVWJ3yMwk DXmxVHSVskVcBU68FAkdZqsq/NH9FfWXZobu4mf6A7OA2f+4wroE7OJ4C4ghMMxW47oB ZWgZvx6ZkfIWK6Yerkce9C1PSOHk6ia+FCBo1gK1Mod6/DZFWWTKmqvto4snxAbYqG0g 4WO70WjHvyamHZpNZ/PBp/JaSMXKUxbq4/jq/2Hh88ou0Goz9MMAYz3JLYzKAv1PZMEh 1DopT9kG7WF5vpiOn+xIKunFsMaqa02PTVYCLIyUoo4FB3WflSPDOvgY7TW2BY37wOFk yQYQ== 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=6k6UYBdg4YsuU6HAnycCN6U7EY7Pn4jmqUItDA5+K0s=; b=BuYTtEsk09tOJLJO3rQIwrgrD6209HKBQW7mV1V2ts8czHPyane9SHALot1DGRD/L2 uqDo/t58DJF1evmyg1/u7mWC/TStfcb2wguZyV0o7G1IM2tTbkD//5/Ztccr8C/D9n9B Bp4+4/2EawUXBY9iQmNjsKdCEwxq8dYcY9sjd1Yx2pY5qMdnxKxT6Lc5oawtx0ci2qDc 73XN6hEmZKhLfXx2OR4+6TmuyWRI7NWrHDUoxQ2MvBUYxq2BE26YgrYoPKoCXJymhUVK NCIWRNctWD2ZZUwVFHdmVFZVz58lbUM2JpcS0CDQm/m/FgTOzxQYDYmFIeQVvl3afwr5 WPWg== 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 q136-20020a632a8e000000b0047715878df9si3696693pgq.628.2022.12.23.04.58.06; Fri, 23 Dec 2022 04:58:15 -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 S236267AbiLWMj6 (ORCPT + 65 others); Fri, 23 Dec 2022 07:39:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235843AbiLWMjm (ORCPT ); Fri, 23 Dec 2022 07:39:42 -0500 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E01841B7AC; Fri, 23 Dec 2022 04:39:37 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;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_---0VXwwMZL_1671799173; Received: from srmbuffer011165236051.sqa.eu95(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VXwwMZL_1671799173) by smtp.aliyun-inc.com; Fri, 23 Dec 2022 20:39:34 +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 4/6] perf vendor events arm64: Add branch metrics for neoverse-n2 Date: Fri, 23 Dec 2022 20:37:23 +0800 Message-Id: <1671799045-1108027-5-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 branch related metrics. Signed-off-by: Jing Zhang --- .../arch/arm64/arm/neoverse-n2/metrics.json | 19 +++++++++++++++++++ 1 file changed, 19 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 817d80c..73d50f6 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 @@ -145,5 +145,24 @@ "MetricGroup": "Cache", "MetricName": "ll_cache_read_hit_rate", "ScaleUnit": "100%" + }, + { + "MetricExpr": "BR_MIS_PRED_RETIRED / INST_RETIRED * 1000", + "BriefDescription": "The rate of branches mis-predicted per kilo instructions", + "MetricGroup": "Branch", + "MetricName": "branch_mpki" + }, + { + "MetricExpr": "BR_RETIRED / INST_RETIRED * 1000", + "BriefDescription": "The rate of branches retired per kilo instructions", + "MetricGroup": "Branch", + "MetricName": "branch_pki" + }, + { + "MetricExpr": "BR_MIS_PRED_RETIRED / BR_RETIRED", + "BriefDescription": "The rate of branches mis-predited to the overall branches", + "MetricGroup": "Branch", + "MetricName": "branch_miss_pred_rate", + "ScaleUnit": "100%" } ] -- 1.8.3.1