Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp9205968rwb; Thu, 24 Nov 2022 09:23:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf7I846iXbI49oFYgHwQFcfn9kLfSgoWICx4sU/QcyWuL1FL6+Oq+s+Xoki0AlGZH+i5l2JL X-Received: by 2002:aa7:d5d6:0:b0:459:4e32:e1b5 with SMTP id d22-20020aa7d5d6000000b004594e32e1b5mr30621191eds.424.1669310638704; Thu, 24 Nov 2022 09:23:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669310638; cv=none; d=google.com; s=arc-20160816; b=VYCrnNnbIb9I9iajNTaA0CdxNbVTAmss7Bw5NXCPsWIDVI1Umt3kj1iNcVAfzn3sGi xeP3vcgYvrEh9o8N7DHVfY47zID2zl+dXarS4DAM/qY4Bgj20eDFwldObicltfIKm1bD sPvf0DXTb10/0WLSQmUahn2eoPlgLYccqyT/fp/cY1Z2MVI5UBsGZLM0e40rKrEiTpmk 5GkZr/G5RmCq07q4e5DsJrMZxSSzLeD+tFpa4IY+HU2phq+/YmqeUn0e/jIW4Zr5enxL i09sF7XyZVde5vAH7OrGerzDUFSABJg8U6M65DD1xsF/hzJrUYJp9vy21DJ6fpwewQlQ o+fQ== 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:references:in-reply-to :message-id:date:subject:cc:to:from; bh=EsWTy+RyYOcztkeibKY1u5zSwtg7IDyyVX8Jm8h8oWI=; b=ZSgtU8KDthNbAmWmlYwhlcrVEufNvYLBSOvTSt9FChVT9W8F2UmXb46FZ6xYXol86O 3GzfYHeb6UCE5vln/UgxMFYJQLfbIYMuV85O25IfyDH3ov5RQa1O3z869UZn5LFtoWX9 ujcubolIHt2aKO313zNiQpNjz3Pdhg7Sy6kXXsO+NyURmfNVmu0I5FP6XuL+2rj7/Vvr BX5/FcBDZ2oU8L83qt26VqrNlYLPY0+s1JXYIOqSgzFYnYmNCIDONa99NZFKaoYGdnOR vIA37dsEPRYxRP1E+uLU7Q5+CpwN/OuXEGQfVrpkbAKnKJJkEAa6qzdawQaCMH5Bl6jp /D1w== 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 sb12-20020a1709076d8c00b0078d1faeb619si1478837ejc.777.2022.11.24.09.23.37; Thu, 24 Nov 2022 09:23:58 -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 S229752AbiKXRPJ (ORCPT + 87 others); Thu, 24 Nov 2022 12:15:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229715AbiKXRPF (ORCPT ); Thu, 24 Nov 2022 12:15:05 -0500 Received: from out30-57.freemail.mail.aliyun.com (out30-57.freemail.mail.aliyun.com [115.124.30.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D199F12F423; Thu, 24 Nov 2022 09:15:03 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R571e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0VVbtc7B_1669310098; Received: from j66e01291.sqa.eu95.tbsite.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VVbtc7B_1669310098) by smtp.aliyun-inc.com; Fri, 25 Nov 2022 01:14:59 +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 v3 2/6] perf vendor events arm64: Add TLB metrics for neoverse-n2 Date: Fri, 25 Nov 2022 01:14:44 +0800 Message-Id: <1669310088-13482-3-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1669310088-13482-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1669310088-13482-1-git-send-email-renyu.zj@linux.alibaba.com> In-Reply-To: <1668411720-3581-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1668411720-3581-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 TLB related metrics. Signed-off-by: Jing Zhang --- .../arch/arm64/arm/neoverse-n2/metrics.json | 54 ++++++++++++++++++++++ 1 file changed, 54 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 8628140..bb19960 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 @@ -30,5 +30,59 @@ "MetricGroup": "TopdownL1", "MetricName": "backend_bound", "ScaleUnit": "100%" + }, + { + "MetricExpr": "L1D_TLB_REFILL / L1D_TLB", + "PublicDescription": "The rate of L1D TLB refill to the overall L1D TLB lookups", + "BriefDescription": "L1 data TLB miss rate", + "MetricGroup": "TLB", + "MetricName": "l1d_tlb_miss_rate", + "ScaleUnit": "100%" + }, + { + "MetricExpr": "L1I_TLB_REFILL / L1I_TLB", + "PublicDescription": "The rate of L1I TLB refill to the overall L1I TLB lookups", + "BriefDescription": "L1 instruction TLB miss rate", + "MetricGroup": "TLB", + "MetricName": "l1i_tlb_miss_rate", + "ScaleUnit": "100%" + }, + { + "MetricExpr": "L2D_TLB_REFILL / L2D_TLB", + "PublicDescription": "The rate of L2D TLB refill to the overall L2D TLB lookups", + "BriefDescription": "L2 TLB miss rate", + "MetricGroup": "TLB", + "MetricName": "l2_tlb_miss_rate", + "ScaleUnit": "100%" + }, + { + "MetricExpr": "DTLB_WALK / INST_RETIRED * 1000", + "PublicDescription": "The rate of TLB Walks per kilo instructions for data accesses", + "BriefDescription": "The rate of TLB Walks per kilo instructions for data accesses", + "MetricGroup": "TLB", + "MetricName": "dtlb_mpki" + }, + { + "MetricExpr": "DTLB_WALK / L1D_TLB", + "PublicDescription": "The rate of DTLB Walks to the overall L1D TLB lookups", + "BriefDescription": "D-side page table walk rate", + "MetricGroup": "TLB", + "MetricName": "dtlb_walk_rate", + "ScaleUnit": "100%" + }, + { + "MetricExpr": "ITLB_WALK / INST_RETIRED * 1000", + "PublicDescription": "The rate of TLB Walks per kilo instructions for instruction accesses", + "BriefDescription": "The rate of TLB Walks per kilo instructions for instruction accesses", + "MetricGroup": "TLB", + "MetricName": "itlb_mpki" + }, + { + "MetricExpr": "ITLB_WALK / L1I_TLB", + "PublicDescription": "The rate of ITLB Walks to the overall L1I TLB lookups", + "BriefDescription": "I-side page table walk rate", + "MetricGroup": "TLB", + "MetricName": "itlb_walk_rate", + "ScaleUnit": "100%" } ] -- 1.8.3.1