Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5348646rwr; Mon, 24 Apr 2023 02:46:47 -0700 (PDT) X-Google-Smtp-Source: AKy350bxxWQODy1PUdaYfv8iRzJzmA/mipA47PRfhcbA3QD/Z+djslz6B8kZlE/jBpOUU7MHRi4H X-Received: by 2002:a17:903:2095:b0:1a6:a7f4:b5 with SMTP id d21-20020a170903209500b001a6a7f400b5mr11501313plc.18.1682329607352; Mon, 24 Apr 2023 02:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682329607; cv=none; d=google.com; s=arc-20160816; b=GqLoLHH1TLm1aspxkpAmPMO0qhfwIWV5zXjdQaOXGTxEtFNNcC58HpSWrmYGfWc90Q 3w8iNKpeYqAGPRAE5d/tOd1cLZkJ3JuKNn+2qRyNgEf+7JO1N6DKiHTcteKa5nIOZB2P jNyMNPh5fHbt4vjEFqIZsKCjNecWOo9oQWpB8Vv/dqEKGveA4PWmaBCFuUn5j/C6nLMC 80iufz9X2nvA9tqQWYr9N1mLe8OsU/rkdxs6PMgkJDidJd2wc5oXG26SbHZXraEG/a9v kfCM9bs1L0CumJu1H4skyy4FuAayUXexWzTPKVkzuFM+S8HoNQqe3WMSO8L5KVJW1lkj B8bg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r20-20020a170903411400b001a920b1b5a0si9913853pld.648.2023.04.24.02.46.33; Mon, 24 Apr 2023 02:46:47 -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 S231461AbjDXJo5 (ORCPT + 99 others); Mon, 24 Apr 2023 05:44:57 -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 ); 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 To: John Garry , Ian Rogers , Will Deacon , Shuai Xue Cc: James Clark , Mike Leach , Leo Yan , Mark Rutland , 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, Zhuo Song , Jing Zhang 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: X-Mailing-List: linux-kernel@vger.kernel.org Add JSON metrics for T-HEAD Yitian 710 SoC DDR. Signed-off-by: Jing Zhang --- .../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" + } +] -- 1.8.3.1