Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4245197rwd; Tue, 30 May 2023 02:33:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7v8G2BdCt2ninIteBcJWDMQUsJRH8iuEsmzNmXFhtEQrEicXdBZe3/EABRfaFMtPKKJlKj X-Received: by 2002:a17:90a:74c8:b0:253:5728:f631 with SMTP id p8-20020a17090a74c800b002535728f631mr1869744pjl.15.1685439221601; Tue, 30 May 2023 02:33:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685439221; cv=none; d=google.com; s=arc-20160816; b=A0kWlXFrV1ELKqooTBJFB6yEyY96vRIUwbUATuRchtCPUdP8tYd0LSrr6nQ2n643Xx Zx7G3N5PMXfDz3TWSWMhIAAh1eWTFg1/NRS9NdMLYJWUJvYplwRSZ0p0bDiqqCzDu0hR Cdx9VPjug5dvP/XPd+Cnrw8//KnQ4pFE/Vsf5HjSB+nbp0QG8PgZVLInEcvNeGiDmmLM DQ+cu+zQt7xG0Uy4VLrSbYujVdG+i5Z4O8i7WQ5UpeKcarDG5u44yKw8Gxi2yFTY467d L2njU+TYSDDgtvxwQiIzqQY3WhjykSVf9kScuC/Xj3XRi2IYc3MP1l1UQGMkWPhes/hf meIQ== 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=jyfNCH3vryfVQ8ezr+LcfERgvRjxigLiuIur2rQ+TZI=; b=lkX8aHhy19xXYz6I8PsnSFG5yE2fZ6eRkUFKJhLA6fjhawKsTQ/7OGOOmYI5/KEJ4f O0lKq8CSvaM0D4qc5imnF8hkYWACKfslwCLtTjWlLENBMhIChOOSoRwAdwpVVfHMMwBu LYwLXxZZ9l3r9wkoQFhWmF6znU6iAZj+k9qR4qfs4mW6RShZ20haQxK3cVvpzwlcd4pB XIRy2xi2CJx1vc0Xchln0U7Uq4jL0o0UvhbCKfiPt9WwWGa20qmPawYkF2Y1UURs3iUr 8x+wZEXwNqVJ7d2eEguVXtJaE+TrHs2PBVpVejH+IWn5Yo6Lyg9ZviuvL1kDf0bC12GP Vs4A== 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 m16-20020a637d50000000b0053f01e23c47si10303018pgn.607.2023.05.30.02.33.29; Tue, 30 May 2023 02:33:41 -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 S231140AbjE3JUs (ORCPT + 99 others); Tue, 30 May 2023 05:20:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230360AbjE3JUQ (ORCPT ); Tue, 30 May 2023 05:20:16 -0400 Received: from out30-112.freemail.mail.aliyun.com (out30-112.freemail.mail.aliyun.com [115.124.30.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9034109; Tue, 30 May 2023 02:19:53 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R861e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0Vjt6o28_1685438386; Received: from srmbuffer011165236051.sqa.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0Vjt6o28_1685438386) by smtp.aliyun-inc.com; Tue, 30 May 2023 17:19:47 +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 7/7] docs: perf: Update metric usage for Alibaba's T-Head PMU driver Date: Tue, 30 May 2023 17:19:34 +0800 Message-Id: <1685438374-33287-8-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 Alibaba's T-Head ali_drw PMU supports DDR bandwidth metrics. Update its usage in the documentation. Signed-off-by: Jing Zhang --- Documentation/admin-guide/perf/alibaba_pmu.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/admin-guide/perf/alibaba_pmu.rst b/Documentation/admin-guide/perf/alibaba_pmu.rst index 11de998..7d84002 100644 --- a/Documentation/admin-guide/perf/alibaba_pmu.rst +++ b/Documentation/admin-guide/perf/alibaba_pmu.rst @@ -88,6 +88,11 @@ data bandwidth:: -e ali_drw_27080/hif_rmw/ \ -e ali_drw_27080/cycle/ -- sleep 10 +Example usage of counting all memory read/write bandwidth by metric:: + + perf stat -M ddr_read_bandwidth.all -- sleep 10 + perf stat -M ddr_write_bandwidth.all -- sleep 10 + The average DRAM bandwidth can be calculated as follows: - Read Bandwidth = perf_hif_rd * DDRC_WIDTH * DDRC_Freq / DDRC_Cycle -- 1.8.3.1