Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5222201rwb; Mon, 14 Nov 2022 00:50:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf4uCNLbk5XwLklCq1w7tjogq3/xWofWHroao6/FxzQ23YuqAoMwJey7WjSmfKSfD6K9xUPJ X-Received: by 2002:a17:90b:2d84:b0:213:880:e931 with SMTP id sj4-20020a17090b2d8400b002130880e931mr12676438pjb.217.1668415852494; Mon, 14 Nov 2022 00:50:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668415852; cv=none; d=google.com; s=arc-20160816; b=uf85XGb/OU/YD4Q4bKa+rvXb19tbr7Z2bfWO2oMNvLPMfW7UldMCQJleFx2Ps+/6Hq Y7aYmMVrWDPV54Ie1eQX2ovaeznb+hnC6UCEuS15mp6Q6QNG6xJNJi788EZWsV4/1vvk QAZjQXlPJkE4Kp0R0/Q30PpL0gj+5n/+5u1HzOQRoxENxWisZQWL5a47dQpD4owHTL6R 88LrwEl1mcS5/B+P3noqlsSZzBbMuD3Kso0B3ylI9sTRTvt9uvZUwKiQ8rY/GC9uyaIz HStDdh8+aXBTj+gCOSyDXP2ckSCXS+BlJwfYjoSY+RhEs2sM74hCGR5t0PhGCF82vIle M/7g== 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=STW4avrM5P/OF0xnSiTk72rHwIOKN6PXLTqIB+8rLEI=; b=YKaelir/R0fjLmktwtf3vTjr5y23x9GpB3ZDxMNXy529Dpc/85IGIfKiFybAt3Jhz+ ImAcYTw+Pg2IbNAWZgiTwnUyimOxQln4k4Xeko+x3qJp/zq82SUhGwoZUBh8p5AR+VHP J66rPCtM3Y3XsgSC4gXv2t47aC4vZU2wbsMeFfx4YH5SfCa2y6Y3ohiO9LoAI6JvVWGc ugj7+xly3dYqQVf88AvH8bE8yml9rBk5pLSbtCxpQA0JsQreA6p46POytQfm3Eiph4An xQJS5ziiZmxSmU9G14pEduIVRfrwIIb86siHMo1qChPExHQj7OAJ69M/E/mQm7idV+3t 4j0Q== 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 w18-20020a63c112000000b0047014fb1e75si9212260pgf.523.2022.11.14.00.50.41; Mon, 14 Nov 2022 00:50:52 -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 S235970AbiKNHmt (ORCPT + 88 others); Mon, 14 Nov 2022 02:42:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235785AbiKNHmo (ORCPT ); Mon, 14 Nov 2022 02:42:44 -0500 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2F0C12778; Sun, 13 Nov 2022 23:42:42 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0VUjWi16_1668411758; Received: from j66e01291.sqa.eu95.tbsite.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VUjWi16_1668411758) by smtp.aliyun-inc.com; Mon, 14 Nov 2022 15:42:39 +0800 From: Jing Zhang To: linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, John Garry , Will Deacon , James Clark , Mike Leach , Leo Yan Cc: 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: [RFC PATCH v2 2/6] perf vendor events arm64: Add TLB metrics for neoverse-n2 Date: Mon, 14 Nov 2022 15:41:56 +0800 Message-Id: <1668411720-3581-3-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 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> 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 0048dfe..324ca12 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