Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7404105rwd; Tue, 20 Jun 2023 00:21:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7hs8EUIJm3FaBxfhsLXUkRrE3lvKoYOpcvHKHyzpZFSw29Lyy/Ey7BXe3xFZGuZ52Zsn4b X-Received: by 2002:a17:90a:744d:b0:25e:8ff2:3ce9 with SMTP id o13-20020a17090a744d00b0025e8ff23ce9mr8946757pjk.31.1687245666385; Tue, 20 Jun 2023 00:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687245666; cv=none; d=google.com; s=arc-20160816; b=milHhiIBGIkxkMMPBgk6qjnn2wGbPAd+6r2X+moF7Dns24krAMYWB5/oOloC/NPjlJ 5m0wzTCXTw66Qu+UOOFY4bkQ++p++29A6VHLKAc2aRjsUsWd+vd0L4Xrd2rloWVvctck a7UdlLa1bFeRE3LLdEh/1uoSfT+ox5kzaBaKevlGbgdr1yKWK1YuXF2QBBDy/uduunnr V6IXR3fDEZL0SFNa/RSct+UcKCc6JRaA1RDgfPoVfJjlKpR90P0kpitf1XhEtf6b7WXb rTHiyW0tRsdj5jS05YC98jpwuE9Du40PN4hl4/f7JrDl7jt8LYBPVnDuLht+ksc4aX5I euAQ== 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=kp0LBbKqh5nLpVWpsClUAnEca2YFu38UchpguSaGOeM=; b=nz/fXSs9B43gVXx++EPC7+f0BN45Xda4Iv2VYFPiMX8Y9c+lIxY5aKa765V62AHKgv rIDUTJRfIW/5zoCY4tVS1WQNqcgHa/I66qANO/OBvWkY3y7d3Jn+3ziSWvzHNZ3kjv/W 2FAWn5RKfiNYRxVfM2WpWu4lLvQ018mP3xKFhIJgFvTS07k01MPiogxnZZt6irXu3s1a iuwE2rJucqS4nmj5R0duZll0lzILqcOe5iuCyc++QzO5LA2BcGtIT7BepZn6jsl+cWcu jGjBmLnfm8yMaaxiQ1Cm25uwv1IHhPsV1Fq5vIrcfwW3EHtRfeeG+U+ETdIRWiK/kbux diTw== 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 ez13-20020a17090ae14d00b00255b7adb2d8si1296011pjb.90.2023.06.20.00.20.53; Tue, 20 Jun 2023 00:21:06 -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 S231184AbjFTHND (ORCPT + 99 others); Tue, 20 Jun 2023 03:13:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231215AbjFTHMz (ORCPT ); Tue, 20 Jun 2023 03:12:55 -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 9D691E7; Tue, 20 Jun 2023 00:12:53 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R951e4;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=21;SR=0;TI=SMTPD_---0Vlamlc3_1687245167; Received: from srmbuffer011165236051.sqa.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0Vlamlc3_1687245167) by smtp.aliyun-inc.com; Tue, 20 Jun 2023 15:12:48 +0800 From: Jing Zhang To: Will Deacon , Mark Rutland , Jonathan Corbet , John Garry , Shuai Xue , Ian Rogers Cc: Robin Murphy , James Clark , Mike Leach , Leo Yan , 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, linux-doc@vger.kernel.org, Zhuo Song , Jing Zhang Subject: [PATCH v4 4/4] docs: perf: Update metric usage for Alibaba's T-Head PMU driver Date: Tue, 20 Jun 2023 15:12:36 +0800 Message-Id: <1687245156-61215-5-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1687245156-61215-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1687245156-61215-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 Acked-by: Ian Rogers --- 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