Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11714041rwl; Tue, 3 Jan 2023 03:45:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXuk9tj0IkRkm9MzjztHY+kvm7G3vEMqfyJf5SIr0BT6wPTNYawLMr6sdWtaQ8UDMEBLVE9h X-Received: by 2002:a05:6402:1770:b0:461:8be6:1ac5 with SMTP id da16-20020a056402177000b004618be61ac5mr34364842edb.3.1672746315936; Tue, 03 Jan 2023 03:45:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672746315; cv=none; d=google.com; s=arc-20160816; b=z39RlvaZ+DolycpiCBfRllTj/Xf2JcXqJSjB4GgJctMdJT8AYTfDYCMq7ZLxBTbBaX 9+4lN9y1PKQ7uceiyOkSEytXMn2Z3CMwRbulcN8X3VnIXvg39/isGY5ZSZQpp7p1djYc 6BeFuZkRzsmWabUavqyOPiXF7ktKRg2vR71TthLecn4ztp6xRZkKVDLxu1wnDgI64ux0 mh+sknV9+nph0bJainhKEEaDGxRwFR6QMxrFKsb2m9vl2UTlNavXVPHfuIa8/UtPkxlS +QKj6QWuuoHPSgURQyogmY9ukK7eMTL3j3shuJcFF0Vbxt1Rjcm4HV3NSmiL1k/C14MQ J2UQ== 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=jndC11hGU6TwQHjp49vZv8rIEvqpca3df0Ibw3xpbig=; b=yXS4EPCOQo+Mx31tsr1ykKG9iaLa0r/8gnQgO+S2L4HLCZScgcN3eHRkWQ5lI1hgQf /J7xWeuEYw1Oj1j1BIG+6trGQd8LnJ7e6wmxmBqmnnzG14gb5w4p7N3+7Dqk2dNIG3kU zm1+MTBFqDBpXIPlcZu0+Ll8ErMwfHkKEuR1dpQ8cYhWxpJeQqmVSR94xGKW0t0SxSYK 2cWqB0i7DIAJuQPtZ6ZHo6FgQ9y0cMGdDbVor4XLjw71Q/ER7LfaPOTTspQHHgEEXiwh VSSAiMJU2+XdfFBVfrTamrRQ5ZYN5VvigTev7iaXAfW9Tx46NfXpGkmHlvr4pSEtdIfp 3mgQ== 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 s29-20020a50ab1d000000b0046b3638938bsi26604285edc.536.2023.01.03.03.45.02; Tue, 03 Jan 2023 03:45: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 S237314AbjACLkO (ORCPT + 60 others); Tue, 3 Jan 2023 06:40:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236962AbjACLj7 (ORCPT ); Tue, 3 Jan 2023 06:39:59 -0500 Received: from out30-7.freemail.mail.aliyun.com (out30-7.freemail.mail.aliyun.com [115.124.30.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4140EB6F; Tue, 3 Jan 2023 03:39:58 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R331e4;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_---0VYn6ldp_1672745993; Received: from srmbuffer011165236051.sqa.eu95(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VYn6ldp_1672745993) by smtp.aliyun-inc.com; Tue, 03 Jan 2023 19:39:54 +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 v5 4/6] perf vendor events arm64: Add branch metrics for neoverse-n2 Date: Tue, 3 Jan 2023 19:39:34 +0800 Message-Id: <1672745976-2800146-5-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1672745976-2800146-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1672745976-2800146-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_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 Acked-by: Ian Rogers --- .../arch/arm64/arm/neoverse-n2/metrics.json | 21 +++++++++++++++++++++ 1 file changed, 21 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 f81b40d..35e3710 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 @@ -152,5 +152,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": "MPKI" + }, + { + "MetricExpr": "BR_RETIRED / INST_RETIRED * 1000", + "BriefDescription": "The rate of branches retired per kilo instructions", + "MetricGroup": "Branch", + "MetricName": "branch_pki", + "ScaleUnit": "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