Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp864282rwb; Fri, 28 Jul 2023 00:32:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlHBBUp/CQQIObC7px9G9luvL1cKcQsg+Wxe2Njw0K0smbqjCF81fEqEPXwANKrwlv8E9Rsr X-Received: by 2002:a05:6a00:2e91:b0:668:69fa:f791 with SMTP id fd17-20020a056a002e9100b0066869faf791mr1040824pfb.3.1690529539704; Fri, 28 Jul 2023 00:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690529539; cv=none; d=google.com; s=arc-20160816; b=k2C9vKEcyToGii142Xdh/yw1LXWWAdjy2Jgvu7Ue9XqVl4LU+y+aJ0ZG1FH2KsvaV+ 8zdy0Yl25ydC05FnGrsdWTKjxJRsGLlzW93yuwVwVHX2b8iPW2o9LkrZ3GdBx1IEqxrQ eV2mX9uDiQpIjuY9sZCXHHQnpGRmb0Tu5/qc7++khNFvTJkfbECDJYkwT9BDjDUKvHFY 6xxHCN9fwx3usWzMtACGXH1CdJM9rMKmQP+aedHOGyGvf56IKseZSh4Psz3RRgFv0ws5 SkYECedH2apz7rydImXpJArwRfpE+5pEIXFiTz+j7jt4hvQhCioahIfbY/biGAyuOuWn pEjQ== 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=F/U9CKZ+flx1ucWKrfN1vsJXtHHBIeMVoyYns21VaBA=; fh=ZcwPNP6axHBFth/IEKC/IOfetP9JUiSr5EA08OhDZKo=; b=LF+SqTPMtDUaz24zXK3ud4ejM49Yx55lml/nPp7a/9nmsTU99AccCoABw16SclH/7f uWbeizwLtXZFhlYVT46rD0kEtcVA6cHV5NproxSM9BW6BMm9xrngiD6EXAEIOTwoVQvW DKY1Xbup8VVuAdxuawQlIdQhRpxGd3NGEQO5wlUdV5/+18oNkMBCT3EAf19ebs51AR8n vhY7vcL5W9ERDqVxV5RctwLZvaQtgD1hVw2ra0+o44DBU6sWCEIGW0cupgPkiHG4pTJu 5rF0cMX7G6hLmdL8cGZ0vwsp2zZ15px38Am+R9QRxgfp1joLSy4KmXGQ/m3F8btpNsui xCyw== 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 p26-20020a63741a000000b0055c07307e5bsi2666134pgc.64.2023.07.28.00.32.07; Fri, 28 Jul 2023 00:32:19 -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 S233973AbjG1HKW (ORCPT + 99 others); Fri, 28 Jul 2023 03:10:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233883AbjG1HJ5 (ORCPT ); Fri, 28 Jul 2023 03:09:57 -0400 Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86CD73A8B; Fri, 28 Jul 2023 00:09:49 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VoP1ovS_1690528184; Received: from srmbuffer011165236051.sqa.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VoP1ovS_1690528184) by smtp.aliyun-inc.com; Fri, 28 Jul 2023 15:09:45 +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 3/3] docs: perf: Update metric usage for Alibaba's T-Head PMU driver Date: Fri, 28 Jul 2023 15:09:35 +0800 Message-Id: <1690528175-2499-4-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_BLOCKED,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 Acked-by: Ian Rogers Reviewed-by: John Garry --- 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