Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp162082rwr; Thu, 4 May 2023 00:35:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5yzSMedxzynaUYfrmI4GXRT9HDsSOTBRdjyUYs4tSMEzb3RCgNZwaTFZC8SAytuzLzgebM X-Received: by 2002:a17:902:9342:b0:1aa:f78d:97b7 with SMTP id g2-20020a170902934200b001aaf78d97b7mr2726754plp.46.1683185748459; Thu, 04 May 2023 00:35:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683185748; cv=none; d=google.com; s=arc-20160816; b=nZmuaxcgaO75s9E/zOew6Un3ex/x0kZcwsbSKoL6x8KYGXnt85yYCkdAyKAvibLwI5 UlDwTTXs013iHKP4A8v6VCT2V15+eJFSHz8W22b903/lHQoRFj2OKMNhJ6Jbjszu0irk 5TGDUOaD0urL8swrLGttNhgdDqVAJgf3SRmqNkuhJGCVX96cXXLv/6mq1Tm2u1PZphNg AHb1FL11yZoSwABxw6C8PDAovFnA2Fz+LgddaNz4Dt8OO+C+/bnEZ5cO/NKC0YOaqoxr AQbxTj0xhJE7mXSyNLxSlLpZuqUlXRbRLNwuRlWUmnPMxGZez1NZkba7XRtQXRn6ZMTg 6h9w== 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:content-language:subject:user-agent:mime-version :date:message-id; bh=Lp8UXn8wuBXHes25fIFjilYhxaM5X6oFDwShVgBqCkE=; b=d0Vr/V4C+6JuTj37uFd4G0XeG3YduTFYi9KnFYH4mT3cU1y0v8QcrYDhUVkQh26Zct 72AhEty59quVQpCHB9BtnDXtwgNO+EazL3qjHQPD21geAFyG81NSJFFL5orKb6471+0L XfElst8ZuPu3ht9PJc1euoxdDZrVDaKELYKkTFfGoQETFE7fLxxQuES2H7I7dHxVEUSM 9LRs9LW5SA+H3v5uQnaJ5b/L6Deln1DcVjExIYHSrx5Say1fHtgkROyWM7YJuoJWeH1Q evqY3ljMKs8tQbZ/hJ+CR9sJahUiSzXajuhL6UA0JVW5q0fu1XqBkgaCNBlGoBHmKnwp QKtg== 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 p18-20020a170902ebd200b001a6cf4b4d6dsi30325103plg.289.2023.05.04.00.35.36; Thu, 04 May 2023 00:35:48 -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 S230071AbjEDHcS (ORCPT + 99 others); Thu, 4 May 2023 03:32:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbjEDHcN (ORCPT ); Thu, 4 May 2023 03:32:13 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBD802D6D; Thu, 4 May 2023 00:32:07 -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=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=17;SR=0;TI=SMTPD_---0VhfrQKo_1683185519; Received: from 30.240.112.215(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0VhfrQKo_1683185519) by smtp.aliyun-inc.com; Thu, 04 May 2023 15:32:01 +0800 Message-ID: Date: Thu, 4 May 2023 15:31:58 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v2 5/5] perf vendor events: Add JSON metrics for Yitian 710 DDR Content-Language: en-US To: Jing Zhang , 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: Shuai Xue In-Reply-To: <1682329456-19418-6-git-send-email-renyu.zj@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-14.2 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,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 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? 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" > + } > +]