Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7415623rwd; Tue, 20 Jun 2023 00:33:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7CK22xE+oLTm9S0ZVm01+Q1K6icl6mVeVqoL+wfJraxAqq/7mtdyFJj1LVxT1vgRmPI3oA X-Received: by 2002:a05:6a00:1309:b0:663:5624:6fde with SMTP id j9-20020a056a00130900b0066356246fdemr10337388pfu.22.1687246396934; Tue, 20 Jun 2023 00:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687246396; cv=none; d=google.com; s=arc-20160816; b=H4Oo6DpYl+JCW5ltu+WTKj02HGdxxz1l8SmgwlVm+OOhmfyGL5Y4+ATA6INwfjsPw4 jkvIUHyEO/8uvhcLci3S8d3pZ7AyhvZeODsSLVIzilfK+vP20je+tF//SdICeIPYRS1i nPlNXGnJzfnxgT4wDES95eOLpExjVCXTCzfor4QjSuiq1JTuUxEzHRu04TO/3mmpiZZk OwOojoeXyGJFzju7pgA40+OnH0+YXnLdGvVvnaIATuASAw972T1mJcM+YtknNZfpvMW3 I5qnWYMQg/EN8GIZlK8ibsUC+FvZxfoyfvEWGlpVzUAG2ETrwsT9U7mpjL/jtusZtOtu cnBw== 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=aPTAN6kSb2r4FAKSV1rp5+9xYpqYaqFOLFnD5A/XWNw=; b=C+FncN69ifMvtvOS11Z3L/JGoqbGZlPERBThSHABJcQBlpoBJMWI3vqe+C4hyQVgDz EI/8qVJiN1ORoJvYK6MMhVZ9ZkNvgd3SBncRUHqY9fZk6Y0H71WEX2sKTLHSWqQhJ2MQ KtUzZED2DOkFyAzyR3NY60dl+25ktP/Mw95qphOL9xHqcUCfkD5AW+VZEzat0WkMK5bU buCeqWCuTOtaM9ZQeg7rYeHs8kFpuHm6ugWeXNcfGgDhH8JC4j7ZuWL5EUtF0ULlooeX hqvFSPu2453BCeg4T1umtlO2xnG+vbgFCoo600s1PObQKMhbBYLoqTMNXP5oX4T7oGSa 3bXQ== 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 205-20020a6219d6000000b00661e422cf5bsi1131344pfz.249.2023.06.20.00.33.01; Tue, 20 Jun 2023 00:33:16 -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 S231273AbjFTHNA (ORCPT + 99 others); Tue, 20 Jun 2023 03:13:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231184AbjFTHMx (ORCPT ); Tue, 20 Jun 2023 03:12:53 -0400 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 74167100; Tue, 20 Jun 2023 00:12:51 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R921e4;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=21;SR=0;TI=SMTPD_---0VlamlbJ_1687245166; Received: from srmbuffer011165236051.sqa.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VlamlbJ_1687245166) by smtp.aliyun-inc.com; Tue, 20 Jun 2023 15:12:47 +0800 From: Jing Zhang To: Will Deacon , Mark Rutland , Jonathan Corbet , John Garry , Shuai Xue , Ian Rogers Cc: Robin Murphy , James Clark , Mike Leach , Leo Yan , Ilkka Koskinen , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-doc@vger.kernel.org, Zhuo Song , Jing Zhang Subject: [PATCH v4 3/4] perf vendor events: Add JSON metrics for Yitian 710 DDR Date: Tue, 20 Jun 2023 15:12:35 +0800 Message-Id: <1687245156-61215-4-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1687245156-61215-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1687245156-61215-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, T_SCC_BODY_TEXT_LINE,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 JSON metrics for T-HEAD Yitian 710 SoC DDR. Signed-off-by: Jing Zhang Acked-by: Ian Rogers Reviewed-by: John Garry --- .../arch/arm64/freescale/yitian710/sys/metrics.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/yitian710/sys/metrics.json diff --git a/tools/perf/pmu-events/arch/arm64/freescale/yitian710/sys/metrics.json b/tools/perf/pmu-events/arch/arm64/freescale/yitian710/sys/metrics.json new file mode 100644 index 0000000..bc865b3 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/freescale/yitian710/sys/metrics.json @@ -0,0 +1,20 @@ +[ + { + "MetricName": "ddr_read_bandwidth.all", + "BriefDescription": "The ddr read bandwidth(MB/s).", + "MetricGroup": "ali_drw", + "MetricExpr": "hif_rd * 64 / 1e6 / duration_time", + "ScaleUnit": "1MB/s", + "Unit": "ali_drw", + "Compat": "ali_drw_pmu" + }, + { + "MetricName": "ddr_write_bandwidth.all", + "BriefDescription": "The ddr write bandwidth(MB/s).", + "MetricGroup": "ali_drw", + "MetricExpr": "(hif_wr + hif_rmw) * 64 / 1e6 / duration_time", + "ScaleUnit": "1MB/s", + "Unit": "ali_drw", + "Compat": "ali_drw_pmu" + } +] -- 1.8.3.1