Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4243638rwd; Tue, 30 May 2023 02:31:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ClAg99rwdwDYWVTPGEDjjIUO9xoWuorTrY4Y5d85tz7vxIPiddsXIpRTI6MbzEsUUo0uU X-Received: by 2002:a05:6a21:9182:b0:10b:40a9:ec48 with SMTP id tp2-20020a056a21918200b0010b40a9ec48mr1732628pzb.29.1685439117493; Tue, 30 May 2023 02:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685439117; cv=none; d=google.com; s=arc-20160816; b=U+1PyUns7H/92CjXSOA6vg0xUmrqfq/UE1MsxA8wUZnkqZjXQOrSna1mzzKTi306Ps 5e2I2s+KK5YD5q8alWjhI3bCvq9EC3lno0xJoBF67Qc61YeLI39Do+wvJio6v8btb81o e10NjNEZ3i4tvpQ+ATeQtXzXpsicfuABOYccx1cZiI3TuOWpCqKkpFzaOr5NpXNOBm/j 6qrmV/s3NT+MDK67PRNUFWt7DpEDbB0b1dQHQ72LwniWtr4uYErPBLWBh+JEqFwr2cdb rpOeAsy9elIU9rFTjdCkodlcvNDIIlLGvlRvgu1d+TDXVQuajzCVBN56GCbB5TqrAg8R R5pg== 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=bqnMGkkpcB6DZLCpAJlldhVSi+aJ0VGSyjBbV6goJOI=; b=UTU8RKpjemaz3bhwL889QWHhYQRCiWPPEmL3LWjLcnzbPERFJtsYiMEMsO3AUiOtED N9SPvtJXYy/BeCcvb9h4Of5sho/U3pebd2lJQXZJJ2h/rlrEY9sH6rTFTL4sd5vlps3V A9gm6N0AXoj+cAvM/xAZPmEMjDRGIxtJQjcPXwp3hNDMhtbAiq909Ts0mVZ/f7iJCATX 1ek6U277p3WfsADqpYQDGsB/LXoJKwtsisC9kWb5isOBUUbGvHaz6eCmJODLEgu76FOp wQwp7CoyWNqj88dAsS2K3K+wvv7fQaYIVcRH/Sq0Ayal0bg1MYiPFp7TM4Ecg6h0IdTE dCVg== 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 a18-20020a637f12000000b005347fcae977si564007pgd.832.2023.05.30.02.31.43; Tue, 30 May 2023 02:31:57 -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 S231133AbjE3JUp (ORCPT + 99 others); Tue, 30 May 2023 05:20:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230319AbjE3JUP (ORCPT ); Tue, 30 May 2023 05:20:15 -0400 Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A32D131; Tue, 30 May 2023 02:19:51 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;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=19;SR=0;TI=SMTPD_---0Vjt6o1W_1685438385; Received: from srmbuffer011165236051.sqa.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0Vjt6o1W_1685438385) by smtp.aliyun-inc.com; Tue, 30 May 2023 17:19:46 +0800 From: Jing Zhang To: John Garry , Ian Rogers , Will Deacon , Shuai Xue , Robin Murphy 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 v3 6/7] perf vendor events: Add JSON metrics for Yitian 710 DDR Date: Tue, 30 May 2023 17:19:33 +0800 Message-Id: <1685438374-33287-7-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1685438374-33287-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1685438374-33287-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..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": "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