Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2531385rwl; Fri, 6 Jan 2023 07:40:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXu5xyuqZ4fFj5VVXdLA9Byina+9g7OnSDOB8Gc7I4w5coiXLt3OHFgTaOO5z9mGGqqeBvSD X-Received: by 2002:a17:907:c99d:b0:7c0:d88b:1695 with SMTP id uj29-20020a170907c99d00b007c0d88b1695mr40077791ejc.55.1673019635963; Fri, 06 Jan 2023 07:40:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673019635; cv=none; d=google.com; s=arc-20160816; b=fUGWb5mon/bw6z80zQ/zYaaS6AJ4STS5tIHHsN1qHlU+Bs6wotekAHTZ6ujNL6UFFB zNFTWzNxYpprukpjlQQg12hGz5g6SYSXFaIy/qJqxk2jquF4sejt3uhuHn7y1M15slzP oH5F4/XwTU2sDC+mF3s34W4Q2jEMnjQ6K009LINLW0378LLpNxqytVtvZ9g3sIFzW4BB mpGgeU2vYnCo+QYcNf3w7m63ZSnbEOy+JLtSutAYm2o9NwnL0B8W9miIhlkS3ZayZLA5 NgU+mhgELr64zRCCqiYo82PHuO2IX4gd61YTZ2zLa/P1rB2fnFqgFvIHd1ONireJ4W22 T1zg== 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=LVmP1E78x3sX0evvovZucQV+01TOyCQqAE5wMWFuJiY=; b=N/lBUqRbmCGRYbeU967XTkQMscM6RzhXxop9QrNWmZeR3ehC0kwawSzOMVWkr1z41c 65vAN2zAh1RTQX1b2HPG2pJxJzSXgaHYD9JZSVwrAky9KByX9Br735WXWYypNNfwzH88 5zxyJ+l28EDnZDoCKWbAtxc/croSui/y84sJenw9eQRyUVuD9fNpPriQHJz/JxzQpxF3 VxaHwj2tNo5t+1GaD54OEmPzxfffJfYF6j8UGaWjQSFaJqfk/7haqtP/cUtEuXjVYJYB m0LlDE5mRIrB+KcrXB9b43pXoPY+mP+fZ38Vx1V3f/E3cc1jo7yL1EIr8a3GVl8gwrwL Hxsw== 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 o8-20020a170906974800b00791a3dd01b6si1759965ejy.864.2023.01.06.07.40.22; Fri, 06 Jan 2023 07:40: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 S232626AbjAFPGF (ORCPT + 54 others); Fri, 6 Jan 2023 10:06:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234964AbjAFPFt (ORCPT ); Fri, 6 Jan 2023 10:05:49 -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 8CE0D390; Fri, 6 Jan 2023 07:05:47 -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=ay29a033018046049;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0VZ-UXmz_1673017541; Received: from srmbuffer011165236051.sqa.eu95(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VZ-UXmz_1673017541) by smtp.aliyun-inc.com; Fri, 06 Jan 2023 23:05:42 +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 v6 3/7] perf vendor events arm64: Add TLB metrics for neoverse-n2-v2 Date: Fri, 6 Jan 2023 23:05:25 +0800 Message-Id: <1673017529-1429208-4-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1673017529-1429208-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1673017529-1429208-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-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