Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4220737rwr; Mon, 8 May 2023 04:58:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7dlggtjn8J3WhKkPpPu8Ek7Zm4KS+wK+FphkEzQc+++QffiKfEKVYOHdxGbr8fYpm/UszF X-Received: by 2002:a05:6a21:110c:b0:f7:fbd8:5951 with SMTP id oh12-20020a056a21110c00b000f7fbd85951mr10697116pzb.49.1683547103620; Mon, 08 May 2023 04:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683547103; cv=none; d=google.com; s=arc-20160816; b=YkOFdksnoq816ec36zx0s0uoEgIB+SxL9C/XqcDJnvWEA9kYWX00PtA9/AcWi/pm6i QoJ/WBX3HJSaD/pwq3Q41BLKoc/1Xh2ENC9wwLAj/kPTbkkAdzz0SI4h0ojoeP4Z/+09 3TnV0gkqb97RLqU39oO+nTavuuIwzsS3JqMLmM+jRD1Sdcxtzgy0HwQsrXMIDcRNWhOp WgSzQvn3M6DX5RQfMkHNcXCm/2YvqAxXKneaHMqV72x4SbsWBBZGJOf40r/e7vC7qzwq sZRiHGtYzfAgS+1jKHfC0Af2KEusacNWtlXM4YJnmva8K0lqybJIgtEHqiTcMQLnTwGu vSoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=NxRmiMRCGEaYPPRaE87UdNw7G6QNeZPoMs5CoIiGZbg=; b=dpfi4r0o1aOwN+0eqEwRMkGIVPf7fRCW3v+s16pRxiCo6dgjhvXNrHF/5PH8OyYPrl xUcNTgvDaG+6pPblIyt/TUctmPUZ+bkKqBA1Bxu2pNuxZTQh1NUH3uNTBlOb7PEH7mwZ /wPylSq9WAj4HTb26WnicIz5HkKLTekfRBQJ/+5s2qhQQg0bAfCDCAPsrr2ySwW5X3+7 WsvPXPueYQZG6d5IJ11H0oMcf0b1d8eOQqceZy79t/LF4NTXau+s2D9ixNxnCuYJsXwa hJUZZbmlcmxbt53Jc/3ctmivmd2yA1WNuyPGrjEiUp4/bnartT31PvyXT8OcygcMEyii jgHQ== 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 j190-20020a638bc7000000b0052c830b3069si8657899pge.461.2023.05.08.04.58.11; Mon, 08 May 2023 04:58:23 -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 S236187AbjEHLlW (ORCPT + 99 others); Mon, 8 May 2023 07:41:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236088AbjEHLlA (ORCPT ); Mon, 8 May 2023 07:41:00 -0400 Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A14024031C; Mon, 8 May 2023 04:40:36 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R311e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=17;SR=0;TI=SMTPD_---0Vi5DXX._1683546030; Received: from 30.221.149.87(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0Vi5DXX._1683546030) by smtp.aliyun-inc.com; Mon, 08 May 2023 19:40:32 +0800 Message-ID: <5a90f26d-980f-794e-c620-09d50dd9e310@linux.alibaba.com> Date: Mon, 8 May 2023 19:40:29 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v2 5/5] perf vendor events: Add JSON metrics for Yitian 710 DDR To: Shuai Xue , John Garry , Ian Rogers , Will Deacon 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 References: <1682329456-19418-1-git-send-email-renyu.zj@linux.alibaba.com> <1682329456-19418-6-git-send-email-renyu.zj@linux.alibaba.com> From: Jing Zhang In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,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 在 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 > > > 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" >> + } >> +]