Message ID | 1682329456-19418-6-git-send-email-renyu.zj@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2622054vqo; Mon, 24 Apr 2023 02:51:49 -0700 (PDT) X-Google-Smtp-Source: AKy350agxEd/nkRo93JcqypcmPEyP+OvxtFLQH5B/iTZqx7rSbw5I3AN2AbvHtmA/dVc1/QAw7fE X-Received: by 2002:a17:902:d54b:b0:1a5:153f:2442 with SMTP id z11-20020a170902d54b00b001a5153f2442mr13850861plf.52.1682329909195; Mon, 24 Apr 2023 02:51:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682329909; cv=none; d=google.com; s=arc-20160816; b=N+7qzJH6A4DuP5vWsznfukdxU+bta9dHPX6MrusM2xgheEwfhvGkIJ9fn6v8vdt48E 18sPLza603inYw3MyPM+zXQ9/4+gJkkBKMxgqN14C6ndfaJ01tbK3VEjG915E+hTWb35 /cSLjubZNOLe4Fa8oumyhQ4XpfkW99kBnuEkvwgeFy5L40bdUJ0sylzegOTkB79e62Ol 8mwBquHFFQMTljv1VHuXN9YrrAyZ0efHlY65EAsiJJzs9e8eBv95Nea2HHtL7iro3XnQ IicFZALm+6MvHeH0Z25St9ACuKY4FlRYosaVM1qAlppwqKjqJln3VeM/B+eJJDYxjAQ7 yDXg== 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=JnCSpsnI25q9/P+FWc3eMCo9QeBQvmCCxDkvqzHGYgQ=; b=dJa97tT4EdskVD2EpP2LIuJOMBh2IlGjh4flVboWpBT8AHK7nRwQzrK48XnnOq3tRk 1QjJLOIsuKbnbNeiZSO8GxW/i6hEGBuaCm5yQa3A/nEy/XHonoR7XfMI2dPEIEZ5udue lNNP0O3ZwB8bb9AVn3EB58AEw5n/ZVaQWEr4H4XbllNdwtTRsgYpVroxl4DwPwS9qYjE 2QY/8li0o4ld8QDlJIjdgqLDC7qYmeycM4oZhG72X53GJrOvnqsz4WnbFvZFSojY/KF9 6l/3UtESAb1CvbxzOzNeizrmzb6doazX7zHiCs7igF3LcjFdlnmmNO5hubkPkFMHRso+ p4+A== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a170902a38c00b001a4fc13dfa5si10322204pla.276.2023.04.24.02.51.35; Mon, 24 Apr 2023 02:51:49 -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 S231483AbjDXJo6 (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Mon, 24 Apr 2023 05:44:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231270AbjDXJok (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Apr 2023 05:44:40 -0400 Received: from out30-98.freemail.mail.aliyun.com (out30-98.freemail.mail.aliyun.com [115.124.30.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3DCB26B0; Mon, 24 Apr 2023 02:44:37 -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=ay29a033018046049;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=18;SR=0;TI=SMTPD_---0VgsU8kx_1682329472; Received: from srmbuffer011165236051.sqa.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VgsU8kx_1682329472) by smtp.aliyun-inc.com; Mon, 24 Apr 2023 17:44:33 +0800 From: Jing Zhang <renyu.zj@linux.alibaba.com> To: John Garry <john.g.garry@oracle.com>, Ian Rogers <irogers@google.com>, Will Deacon <will@kernel.org>, Shuai Xue <xueshuai@linux.alibaba.com> Cc: James Clark <james.clark@arm.com>, Mike Leach <mike.leach@linaro.org>, Leo Yan <leo.yan@linaro.org>, Mark Rutland <mark.rutland@arm.com>, Ilkka Koskinen <ilkka@os.amperecomputing.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Adrian Hunter <adrian.hunter@intel.com>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, Zhuo Song <zhuo.song@linux.alibaba.com>, Jing Zhang <renyu.zj@linux.alibaba.com> Subject: [PATCH v2 5/5] perf vendor events: Add JSON metrics for Yitian 710 DDR Date: Mon, 24 Apr 2023 17:44:16 +0800 Message-Id: <1682329456-19418-6-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1682329456-19418-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1682329456-19418-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,RCVD_IN_MSPIKE_H2, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764050766872276184?= X-GMAIL-MSGID: =?utf-8?q?1764050766872276184?= |
Series |
Add JSON metrics for arm CMN and Yitian710 DDR
|
|
Commit Message
Jing Zhang
April 24, 2023, 9:44 a.m. UTC
Add JSON metrics for T-HEAD Yitian 710 SoC DDR.
Signed-off-by: Jing Zhang <renyu.zj@linux.alibaba.com>
---
.../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
Comments
On 24/04/2023 10:44, Jing Zhang wrote: > Add JSON metrics for T-HEAD Yitian 710 SoC DDR. > > Signed-off-by: Jing Zhang<renyu.zj@linux.alibaba.com> Reviewed-by: John Garry <john.g.garry@oracle.com>
On 2023/4/24 17:44, Jing Zhang wrote: > Add JSON metrics for T-HEAD Yitian 710 SoC DDR. > > Signed-off-by: Jing Zhang <renyu.zj@linux.alibaba.com> Could you also update the Documentation/admin-guide/perf/alibaba_pmu.rst with some example of how to use these metrics? Best Regards, Shuai > --- > .../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..1a92477 > --- /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": "ddr", > + "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": "ddr", > + "MetricExpr": "(hif_wr + hif_rmw) * 64 / 1e6 / duration_time", > + "ScaleUnit": "1MB/s", > + "Unit": "ali_drw", > + "Compat": "ali_drw_pmu" > + } > +]
在 2023/5/4 下午3:31, Shuai Xue 写道: > > > On 2023/4/24 17:44, Jing Zhang wrote: >> Add JSON metrics for T-HEAD Yitian 710 SoC DDR. >> >> Signed-off-by: Jing Zhang <renyu.zj@linux.alibaba.com> > > > Could you also update the Documentation/admin-guide/perf/alibaba_pmu.rst > with some example of how to use these metrics? > Yes,will do. Thanks, Jing > Best Regards, > Shuai > > >> --- >> .../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..1a92477 >> --- /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": "ddr", >> + "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": "ddr", >> + "MetricExpr": "(hif_wr + hif_rmw) * 64 / 1e6 / duration_time", >> + "ScaleUnit": "1MB/s", >> + "Unit": "ali_drw", >> + "Compat": "ali_drw_pmu" >> + } >> +]
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..1a92477 --- /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": "ddr", + "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": "ddr", + "MetricExpr": "(hif_wr + hif_rmw) * 64 / 1e6 / duration_time", + "ScaleUnit": "1MB/s", + "Unit": "ali_drw", + "Compat": "ali_drw_pmu" + } +]