Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11721204rwl; Tue, 3 Jan 2023 03:53:08 -0800 (PST) X-Google-Smtp-Source: AMrXdXtbolWLCJOUUebzZI5iOt+4qQ3gZ6iBXcuct648ALEf24G2yA4HncY149cG04JTPqbghNoj X-Received: by 2002:a17:906:eca6:b0:7c1:524d:2bec with SMTP id qh6-20020a170906eca600b007c1524d2becmr37501596ejb.39.1672746788102; Tue, 03 Jan 2023 03:53:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672746788; cv=none; d=google.com; s=arc-20160816; b=Lbq2HwywOmYB1IRVBcdeGy5jE+j5EQvVIq/fiPO0ujiVavhuIG5o1kQdAynv+UID+F f/njBNu24aO4ItKbwalJQw+x7Ks1MC3syH2YssEP/yn8OLoQEDDtTuSUKaebzohU72UV OwnvaXrksQ/0MFAmxyMTZs6QO6wB9MGyz2FQsPo7gwRyi64e3a3zBaivXRbh2RrBfssC qsoUw5knb5sZSAtNsb70sYJerKKt0+y3QyWTagxFPpuv+exWOsHTsQML4okeJk70ndoH gE2870TrAr++tS8yQxdJkhm53jF8Yysz2KxLgveDphIHQkQytJCo6OGV5r0Exx0Cf62v x4ZA== 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=oj5gGgXKRwSYSgxEShu9KdrFj/erZsD1w7H6dFlVLoM=; b=elHRDUg9WzGLX6b1xdU2hSj8TVYCDVtZPP9RrrRG0Iwj97gmumz6ak9d7spMaWw8Ji 7IjTOgqRRwqXiVQ3lvI+iyVuJ1yICcRCfb3unpxJRTdja2euKAbE5gNv4bMNtkqp7qTv JPlT9gY4GwaxlfI3Ud9H0+nlMTxIW8Uy8IJ27JZzUhn9MVESNmQOuLPF0g4Xn+KpLjon 9uDIdeVCVmg5MbNzR4ZEsJ12L4K01IB65VrwVyia2qjahl6YB2gzfiXZRIiwp5q9Dbff USJxDK4Sdra2NZ9aoT50mYeA9hkaCAbeFt7Dxm1Woosg5/SBx2Rm4A4qG9wzupGK/zE5 qB+w== 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 g18-20020a056402321200b0048d858ddabfsi5922671eda.414.2023.01.03.03.52.54; Tue, 03 Jan 2023 03:53:08 -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 S237236AbjACLkL (ORCPT + 60 others); Tue, 3 Jan 2023 06:40:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233103AbjACLj7 (ORCPT ); Tue, 3 Jan 2023 06:39:59 -0500 Received: from out30-6.freemail.mail.aliyun.com (out30-6.freemail.mail.aliyun.com [115.124.30.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95DADBD7; Tue, 3 Jan 2023 03:39:56 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0VYn6ldB_1672745991; Received: from srmbuffer011165236051.sqa.eu95(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VYn6ldB_1672745991) by smtp.aliyun-inc.com; Tue, 03 Jan 2023 19:39:52 +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 2/6] perf vendor events arm64: Add TLB metrics for neoverse-n2 Date: Tue, 3 Jan 2023 19:39:32 +0800 Message-Id: <1672745976-2800146-3-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 TLB related metrics. Signed-off-by: Jing Zhang Acked-by: Ian Rogers --- .../arch/arm64/arm/neoverse-n2/metrics.json | 49 ++++++++++++++++++++++ 1 file changed, 49 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..8a74e07 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,54 @@ "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", + "ScaleUnit": "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", + "ScaleUnit": "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