Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp523203rwj; Fri, 23 Dec 2022 04:54:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXunu8ZgPNLmH7HQ8XRugU3kSRGwozlijciTwLQPyZ6CG3K323PJsO7+mmCR6K61CHa0k02O X-Received: by 2002:a17:90a:9f96:b0:219:5a12:e1d5 with SMTP id o22-20020a17090a9f9600b002195a12e1d5mr25628903pjp.5.1671800088077; Fri, 23 Dec 2022 04:54:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671800088; cv=none; d=google.com; s=arc-20160816; b=OCV4skpbPvknslHNYeKAf5eV225v+WZvF/q4ZtJ2RXcRbsGma2emmNdKgtxrnQdOS/ O4XcyPYcMVJ8YFNg97aeyosRHJ7hcK6K98yve5W/a9g4MVGS6QVi2a0flGYX1YYgtHdT cosoeoeOKMyQWqCzVKzwW8SGU+p5urnRY6Q6Kdf1vBvTZ2VZC0qmOtDjjB51hF+hauxb 4pojQ5V5Sl1cgLWexKyOfkv1MhjOWR+5fD54FG8j+tFY6+RzEWCvEDegcnq/ZVh6eW+c zBOXMNXoBb0coHpHQWOTnhQGWRRpJWI1vjhvzAekNmLnAp+Lumy75+jJBSTe+d+Ek3wm FweQ== 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=JZQaHBKIeNFifrmOY9gDXdDFyMeeqYWrPqJnVGOJ06A=; b=xwxb2ZiMydB+5ip9MR3z7yybE2FRNX7KKQ3obSWbU7g+iPDaMF2vGtOSJkRH1QB4EC J3e9yosLJcOSTkLTGH0Ev3I2MMSlh5Ad9KUxJ4oVuFdR+KE4AF9hpOCw0ow+B2m7oU9x yuSRIdAWc/lGyXqliWBokxZCAq+MyIkkP5tTWxYLANTlAkYkHBcPKjU40gW0im5ptST9 baUIsiwP2PEKT/7lXqCAzV/6EtdyKf4Lgc+Bk2kGrcNQXH4o8//H8zB0Xri292iMiUaZ 4D58oCTo3CH5cA1A0iD+q3FHSbpTpqeRx0HQkWUGjORb5eqkW2Ru+zRivJwmDSUFiqjg 7D+A== 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 ip3-20020a17090b314300b00218df8e02f2si3776615pjb.112.2022.12.23.04.54.38; Fri, 23 Dec 2022 04:54:48 -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 S236249AbiLWMjx (ORCPT + 66 others); Fri, 23 Dec 2022 07:39:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230022AbiLWMjl (ORCPT ); Fri, 23 Dec 2022 07:39:41 -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 B6AA51AF28; Fri, 23 Dec 2022 04:39:36 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;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_---0VXwwMYx_1671799171; Received: from srmbuffer011165236051.sqa.eu95(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VXwwMYx_1671799171) by smtp.aliyun-inc.com; Fri, 23 Dec 2022 20:39:32 +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 2/6] perf vendor events arm64: Add TLB metrics for neoverse-n2 Date: Fri, 23 Dec 2022 20:37:21 +0800 Message-Id: <1671799045-1108027-3-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_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 TLB related metrics. Signed-off-by: Jing Zhang --- .../arch/arm64/arm/neoverse-n2/metrics.json | 47 ++++++++++++++++++++++ 1 file changed, 47 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 c126f1bc..d283356 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 @@ -26,5 +26,52 @@ "MetricGroup": "TopdownL1", "MetricName": "backend_bound", "ScaleUnit": "100%" + }, + { + "MetricExpr": "L1D_TLB_REFILL / L1D_TLB", + "BriefDescription": "The rate of L1D TLB refill to the overall L1D TLB lookups", + "MetricGroup": "TLB", + "MetricName": "l1d_tlb_miss_rate", + "ScaleUnit": "100%" + }, + { + "MetricExpr": "L1I_TLB_REFILL / L1I_TLB", + "BriefDescription": "The rate of L1I TLB refill to the overall L1I TLB lookups", + "MetricGroup": "TLB", + "MetricName": "l1i_tlb_miss_rate", + "ScaleUnit": "100%" + }, + { + "MetricExpr": "L2D_TLB_REFILL / L2D_TLB", + "BriefDescription": "The rate of L2D TLB refill to the overall L2D TLB lookups", + "MetricGroup": "TLB", + "MetricName": "l2_tlb_miss_rate", + "ScaleUnit": "100%" + }, + { + "MetricExpr": "DTLB_WALK / INST_RETIRED * 1000", + "BriefDescription": "The rate of TLB Walks per kilo instructions for data accesses", + "MetricGroup": "TLB", + "MetricName": "dtlb_mpki" + }, + { + "MetricExpr": "DTLB_WALK / L1D_TLB", + "BriefDescription": "The rate of DTLB Walks to the overall L1D TLB lookups", + "MetricGroup": "TLB", + "MetricName": "dtlb_walk_rate", + "ScaleUnit": "100%" + }, + { + "MetricExpr": "ITLB_WALK / INST_RETIRED * 1000", + "BriefDescription": "The rate of TLB Walks per kilo instructions for instruction accesses", + "MetricGroup": "TLB", + "MetricName": "itlb_mpki" + }, + { + "MetricExpr": "ITLB_WALK / L1I_TLB", + "BriefDescription": "The rate of ITLB Walks to the overall L1I TLB lookups", + "MetricGroup": "TLB", + "MetricName": "itlb_walk_rate", + "ScaleUnit": "100%" } ] -- 1.8.3.1