Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp607225rwb; Fri, 13 Jan 2023 01:46:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXsdkESrhkpTaYx/EWEbFn1Rn7vBCZYNx3pb3e9KUcE2w5zTX6uFulTSmh/NEtnS7TmhOry/ X-Received: by 2002:a05:6402:550a:b0:47f:bc9b:46ec with SMTP id fi10-20020a056402550a00b0047fbc9b46ecmr60522041edb.7.1673603195172; Fri, 13 Jan 2023 01:46:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673603195; cv=none; d=google.com; s=arc-20160816; b=Fy0Bg/ejOrlR/bS7AFQBfLDtx9s6FQtV2gWg9i0nin4GFPaPjrIhtbesaIBZ0iC88G LDb/JNjZQr+gyTrp8TFqV/6ixF9OhGkqIzgJCKZwRPwihC/S42JVBbuXbO5mXgwIIAbJ tvclPyIOQXcDYp/IG5JNnwhdhdDNLYLD9dUE2nAWZZDQAq+niLL9Hvf4APKNjhyNpfgk nVDnTmuYhQ6OwNtGoxSq8Lz008xeWB9wJT6zWYB94nPiEPGou2zRgR1f5AsQVY256/ui /ByW0fuDbWxkTJa3HF/TvGetkRZ+xYlbOMJoLMLIKo1c9oEPKwVQcclTmKtOtH1ChJY1 fkGA== 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=hf63CQb8jzfbjhiOMeTcU4pPe/+QP/29+WeJ3/YQDl0=; b=NpL5Dyz93XyHec3I35sbfBYy8d3RSvjF1leaHMnVT7LOrS4T5G7Ni8wA1ea/1AB1oL yRjA1EUP/tzzPe2txUKW2clRuWTUoAi9jKBTUgpZj5cldcvD26/EOJZ8tByUAKL1eSV+ 7N6nX+veM3isoE3Inp3TKqc633mYU6juR+0sgC3QdCY6amkDoRWnrIjb/wLR/uQgVSP3 l79t6KTDJEbs3wwz8xHIBNxBjgFAge9trbaZEkX0GsCjF3NwV8yKaoSRLHZgCz6IAQ1K Qj6iTz+P8IaWe0Se8n/9gF/XpH80ZyraMXYf9SV63afqOUDL8znD+DZGLO6ASKmo6tp/ PocQ== 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 y14-20020a056402270e00b0046a84b922a2si24554334edd.499.2023.01.13.01.46.22; Fri, 13 Jan 2023 01:46:35 -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 S234274AbjAMJ3Q (ORCPT + 51 others); Fri, 13 Jan 2023 04:29:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241039AbjAMJ1W (ORCPT ); Fri, 13 Jan 2023 04:27:22 -0500 Received: from out30-101.freemail.mail.aliyun.com (out30-101.freemail.mail.aliyun.com [115.124.30.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 596CE4319B; Fri, 13 Jan 2023 01:22:45 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0VZUDRUc_1673601757; Received: from srmbuffer011165236051.sqa.eu95(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VZUDRUc_1673601757) by smtp.aliyun-inc.com; Fri, 13 Jan 2023 17:22:38 +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 v7 5/9] perf vendor events arm64: Add TLB metrics for neoverse-n2-v2 Date: Fri, 13 Jan 2023 17:22:16 +0800 Message-Id: <1673601740-122788-6-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1673601740-122788-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1673601740-122788-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 TLB related metrics. Signed-off-by: Jing Zhang --- .../arch/arm64/arm/neoverse-n2-v2/metrics.json | 49 ++++++++++++++++++++++ 1 file changed, 49 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 4e7417f..60bbd8f 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 @@ -13,5 +13,54 @@ }, { "ArchStdEvent": "BACKEND_BOUND" + }, + { + "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": "1MPKI" + }, + { + "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": "1MPKI" + }, + { + "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