Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4406369rwb; Mon, 16 Jan 2023 23:52:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXtPB03LqCCnL/A3j0xIv4ZcpUTpZ/KoLLfCYj/PhTHbf9WN9sOLCTBdIS3FswPXQ03tg5h+ X-Received: by 2002:a05:6a00:1887:b0:58d:c022:d60d with SMTP id x7-20020a056a00188700b0058dc022d60dmr3463981pfh.18.1673941965484; Mon, 16 Jan 2023 23:52:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673941965; cv=none; d=google.com; s=arc-20160816; b=Y6gYdAhluMZnQ98rysdyIkxjPi1s+nZckMsoauwxaEUy4uTZeEvzYKB7n8BitvIBRX DRZFgLOeN44tUKp/pHlPe26mHRfmRWpmtXOERWeJABM4kncoOknKoipnVFmaLrO6RAeI aSSuEmXFCq8e1v+ohyo1FKampr/MVWx8VZPd1HM1DOXjrxtriEC7LQK+Ye8LiArePiBl kdvZzxtzuu6eUHnp9+gY6Bj+Flnm6zPGUlLoxxA1VmpxO+Iyc1m5DMiX+Ft3S5MUqiAN lVeoW7Q4nqzbWchq6I3fH0TO8BsGe1fORpkbRMwr12sibLCcvkKpXdAL2MHRz125AK58 DK3w== 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=3oUi39lMGDuwLdHIbLEX01KSsbXbdiMP4ec4sy9NgRY=; b=BO+qSd8zG/+H5fBUMYIOZ9QFg8oIq8FY8IfVMbu6L+lPTQaUPMgecvgJofgmmFrdpT U33Cmr7V5sohKdGhV3xjmLukjCgW+F3NLonnI5cTtSOq/SGEK5p5cPU+7N9HIzdXr/45 SRtIK0sFVX/vdfpMf/mr8yqO11uU/aJRicBaSjzGhrYZsDDXndshzMPErZEWW5Q22EOI rZEGJInGaYWJAAaohzlnZZ8MwGG/JaAdUA6ueQxRTgip7qpWI/Caj6LvXP/mb/UXM6oY K4EtLPKyW+HV1m9V40GHWZ0EEW6QWKVbacuks7OMpdvNCSfTH4nNT4ovnoxaoC2iNLJ4 fy/g== 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 p15-20020a056a000a0f00b0057629288720si35089615pfh.176.2023.01.16.23.52.39; Mon, 16 Jan 2023 23:52:45 -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 S235887AbjAQHal (ORCPT + 49 others); Tue, 17 Jan 2023 02:30:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235859AbjAQHaE (ORCPT ); Tue, 17 Jan 2023 02:30:04 -0500 Received: from out199-1.us.a.mail.aliyun.com (out199-1.us.a.mail.aliyun.com [47.90.199.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F6D02385E; Mon, 16 Jan 2023 23:30:01 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;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_---0VZm6e55_1673940595; Received: from srmbuffer011165236051.sqa.eu95(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VZm6e55_1673940595) by smtp.aliyun-inc.com; Tue, 17 Jan 2023 15:29:55 +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 v8 7/9] perf vendor events arm64: Add branch metrics for neoverse-n2-v2 Date: Tue, 17 Jan 2023 15:29:31 +0800 Message-Id: <1673940573-90503-8-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1673940573-90503-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1673940573-90503-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 Reviewed-by: John Garry Acked-by: Ian Rogers --- .../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