Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp605632rwb; Fri, 13 Jan 2023 01:45:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXsTRA0x3BNp4C8B31PWxLsn6m088SDbbQ371EZy7b63Bbr4jaMVDPtb3oKdMpPYZjbwyvQK X-Received: by 2002:a05:6402:185:b0:499:c294:77af with SMTP id r5-20020a056402018500b00499c29477afmr13940930edv.12.1673603107596; Fri, 13 Jan 2023 01:45:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673603107; cv=none; d=google.com; s=arc-20160816; b=jtzaXeMMS3LBOrTqccj/A8vqDqFfQ3XvA27Px76WQzZP2sfSIiBLXHwP1ND+KDsGWX anOm2SJ5QHFxWjLELS28wNtXK5n8Ol7XLo360EuhvvWTWB8KFINGlyp6QQUh0FTK9NYx UE2HcQ0JQNMfapp/JOa6yNCBcrwer+zSbtefek/gnuXpDUsRH2muxHJmoBV76ERxTgAs JpGRI1Sf4Sm6ljWxY/I/9A4kCrX1XZBALLYFa3YhOhCXuLSv25nilsVSW6xD5BOwBIqK K18iqJH7EKm8HurEg/alf5jVhdeNaCsPKE7v9RJjWZoeHi1vGrRv2OtXJskBOwemtWKP 8umQ== 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=rNOcHbG87kUjyyaMW+pxxZ+Tk0X+IIZJZfe3bEB+mNY=; b=usoCfqPr6N6wKoo7+oj+AILphvXF0Bc0/vwV+9eQtpj9bhZxmZaACDmY4KzNyUFO1y hPwfYtAwkDuNtYXOC7g297nAwm3RUIuseuspyh3yuU4vypMaK0YZ3eJlVYjxI6oj0eXA BsJkhFBmfMuA0R3jC37FE54ZOEN2ihRoXEoVSRCcLMMqxqOI+/BM0GwrvN71kqtvmycn z0aZ6ti9T0HlS67WgPKyBkzsrnAvPL0F4ui2cylHSu/8DGXS8bdtpo6hvkbYFJFnPSiX kjYQ7NB+xC5Jk2nRM0M4YiPJgdzoQSVD62LPuSkBW1C2OIBJ+ZzlQ2Eej0umVd6nDAVO u9vQ== 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 m6-20020a056402050600b0046cb20e358asi19111818edv.362.2023.01.13.01.44.55; Fri, 13 Jan 2023 01:45:07 -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 S240773AbjAMJ3K (ORCPT + 51 others); Fri, 13 Jan 2023 04:29:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240980AbjAMJ1X (ORCPT ); Fri, 13 Jan 2023 04:27:23 -0500 Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D30684319E; Fri, 13 Jan 2023 01:22:46 -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=ay29a033018045170;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0VZUDRVD_1673601760; Received: from srmbuffer011165236051.sqa.eu95(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VZUDRVD_1673601760) by smtp.aliyun-inc.com; Fri, 13 Jan 2023 17:22:40 +0800 From: Jing Zhang To: John Garry , Ian Rogers Cc: Xing Zhengjun , Will Deacon , James Clark , Mike Leach , Leo Yan , 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 v7 7/9] perf vendor events arm64: Add branch metrics for neoverse-n2-v2 Date: Fri, 13 Jan 2023 17:22:18 +0800 Message-Id: <1673601740-122788-8-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1673601740-122788-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1673601740-122788-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,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-v2/metrics.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/metrics.json b/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/metrics.json index 08c6aaa..afcdb17 100644 --- a/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/metrics.json +++ b/tools/perf/pmu-events/arch/arm64/arm/neoverse-n2-v2/metrics.json @@ -139,5 +139,26 @@ "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", + "ScaleUnit": "1MPKI" + }, + { + "MetricExpr": "BR_RETIRED / INST_RETIRED * 1000", + "BriefDescription": "The rate of branches retired per kilo instructions", + "MetricGroup": "Branch", + "MetricName": "branch_pki", + "ScaleUnit": "1PKI" + }, + { + "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