Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp523201rwi; Mon, 31 Oct 2022 04:39:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5nlZJBkoufa35FV0sTdgJpXIHp6AqL0Y7jDhJX2OZPkcHjLk7YxxXA2z1L9mLhZdhPlEUl X-Received: by 2002:a05:6402:5cb:b0:452:e416:2bc4 with SMTP id n11-20020a05640205cb00b00452e4162bc4mr12944664edx.114.1667216398730; Mon, 31 Oct 2022 04:39:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667216398; cv=none; d=google.com; s=arc-20160816; b=TCeLcql/lxF17IdKaCNUIyBizYFk37/vv4T9BI7iaW5xY1jg1Z7RRbhh8397/y0D1Y jSIXM++cQsIzBJkCi7pEIrRUDQKVpPJduZ/oNgaVCsG9dWU3vFGq0TGSaioITlTAJwZG G+V9aH8A6zMzu91Cy8aQSD4hDBcHMGRhHIUxJdJHU8TEYzjbdEnjmb0v6MHhVSOZlcjE GBGuNWANL2blIr+c4Ms7CxnwODpA8TmmT2CC7kKdsOfyLfpuwScx0uBwe9BhttwHylNQ MRkBHjNbDiKOktjaktRYHOwCjkEDci/ZgQZZECmBkuT9wKNjBG1BIBf2hnzfjMRVHj4v ulHA== 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=iYys7ZRdE0wCMheJJ5B6mZggBjEpYsg8byV0Ujl7v2E=; b=IhwdX+fvoMenzGG9FKw8//Q7LbRzBwt1UM1413SglfFib7ikv1sOLXw7PQJHRlGF7K bljWyv4yykY/VMaej3kyDObx4cW3ItT08F56ct0zUlRL/C0EoTVhR0n2yGNS7tmKq90b +wsk/OEbM25vwQUsMaQIw/xqO9ILA2m+xAi3buims9wu5YcF5A7CYTpBuJDrhiG6pS9v XQIPLh0t6c6XZbPLdE5fJ9GUe/OTMaHaLEroIeUdILvFDnwowC+2SnytRPOCZTg+XLUq iL8aoa7NGk4f2Z0pjLVotU67V3GASZ0BUS6DqgbFS4h46yn6kXIiZEzqv8uv40Jilgd6 bUfw== 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 c17-20020a05640227d100b004627741e339si8668554ede.113.2022.10.31.04.39.35; Mon, 31 Oct 2022 04:39:58 -0700 (PDT) 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 S230228AbiJaLLz (ORCPT + 98 others); Mon, 31 Oct 2022 07:11:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230174AbiJaLLr (ORCPT ); Mon, 31 Oct 2022 07:11:47 -0400 Received: from out30-44.freemail.mail.aliyun.com (out30-44.freemail.mail.aliyun.com [115.124.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9AEBC75B; Mon, 31 Oct 2022 04:11:45 -0700 (PDT) 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=ay29a033018046060;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=18;SR=0;TI=SMTPD_---0VTVxoHo_1667214702; Received: from j66e01291.sqa.eu95.tbsite.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VTVxoHo_1667214702) by smtp.aliyun-inc.com; Mon, 31 Oct 2022 19:11:43 +0800 From: Jing Zhang To: linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Cc: John Garry , Will Deacon , James Clark , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Andrew Kilroy , Shuai Xue , Zhuo Song Subject: [PATCH RFC 2/6] perf vendor events arm64: Add TLB metrics for neoverse-n2 Date: Mon, 31 Oct 2022 19:11:30 +0800 Message-Id: <1667214694-89839-3-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1667214694-89839-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1667214694-89839-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,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 | 28 ++++++++++++++++++++++ 1 file changed, 28 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 b6b3b19..066d905 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,33 @@ "BriefDescription": "Backend Bound L1 topdown metric", "MetricGroup": "TopDownL1", "MetricName": "backend_bound" + }, + { + "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 TLB lookups initiated from the instruction side", + "BriefDescription": "The rate of ITLB Walks to the overall TLB lookups", + "MetricGroup": "TLB", + "MetricName": "itlb_walk_rate" + }, + { + "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 TLB lookups made by the program", + "BriefDescription": "The rate of DTLB Walks to the overall TLB lookups", + "MetricGroup": "TLB", + "MetricName": "dtlb_walk_rate" } ] \ No newline at end of file -- 1.8.3.1