Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp889406rwb; Fri, 28 Jul 2023 01:04:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlFO4mQepAGbDLoPAv4rhXxtqCC/kqE3r3kMfJYzTul9crxkoLvA0VZjVTgbKXfRWE84Ov3D X-Received: by 2002:a17:902:b20a:b0:1b6:4bbd:c3a3 with SMTP id t10-20020a170902b20a00b001b64bbdc3a3mr875310plr.52.1690531483069; Fri, 28 Jul 2023 01:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690531483; cv=none; d=google.com; s=arc-20160816; b=h11zqWam2Dl5bimOXvgcwko+ZWe/Q6abfRErnErNXFKdHvzmXbevosBppEa0fDzaFA R+dpr1Hi0ust8ZJKJY89O8csMUf46NaHmUKva4dqs8I99Gg3+Ae/Ik0oxI1vTvaFdrmD C88wLGkM/a205zUlPygl9ryH4Jkurrc18IF4Ux833JEdsftR1ycuS9/u2DuTKPNyDQIJ 8sEoxKPRl34/79fC3q8dcJaAXaKQcdVZp5zXhpDr8erH9h9eiwBxGf8piMdPHe8EfXnV sIvfoYCWph9sqW+pB8Dk1kJuCHYhm4iNwGLuqbOrMInxP/fQMzOnKYQEHq+y3b7JTF/f laKA== 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=; fh=ZcwPNP6axHBFth/IEKC/IOfetP9JUiSr5EA08OhDZKo=; b=o59QXOF9TY3MsefLyGgsrUwy884hs5zXAXRWP3io0s9ihlQPKhJ96O9paiJky/wphZ km4OS8YD5ryKiC3srUOYIQhlaMpxdjEw8sbS3z6O27M0hMcDQSY4gpF29wcWMuWET7T0 SydDL62oEBXk+ftNHLEbZHWoAVRZOg5TxMlLJzCUBy3TL2XnrBppaW5uXqIk8x35BgX7 /yly8wIpovKMmJPkHK98+hIzy8KpDzgSpdvKRZ1FZW8QoR3CpVjLXJNo1br3SiJ64FUe fh3aodxVdXHDvYbaal4D2sUvBQXIcYL50EGMNbgXd6n+F41PvUhygBu6xy9gdfY0eTjO kQ+g== 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 l8-20020a170903244800b001b8b44273b0si2769893pls.403.2023.07.28.01.04.31; Fri, 28 Jul 2023 01:04:43 -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 S233999AbjG1HK3 (ORCPT + 99 others); Fri, 28 Jul 2023 03:10:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233889AbjG1HJ5 (ORCPT ); Fri, 28 Jul 2023 03:09:57 -0400 Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BFA93598; Fri, 28 Jul 2023 00:09:49 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R601e4;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=12;SR=0;TI=SMTPD_---0VoP1ov6_1690528183; Received: from srmbuffer011165236051.sqa.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VoP1ov6_1690528183) by smtp.aliyun-inc.com; Fri, 28 Jul 2023 15:09:44 +0800 From: Jing Zhang To: Namhyung Kim , Arnaldo Carvalho de Melo , Will Deacon Cc: John Garry , Ian Rogers , 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 , Shuai Xue Subject: [PATCH v5 2/3] perf vendor events: Add JSON metrics for Yitian 710 DDR Date: Fri, 28 Jul 2023 15:09:34 +0800 Message-Id: <1690528175-2499-3-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1690528175-2499-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1690528175-2499-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