Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp180822rwd; Tue, 30 May 2023 18:23:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5o87amjIPXSPBNpTdXeyQUghp38uOpDvgdn+kO57XQhhG3CrM0Bm3pHWpR0QVBHSWkJGMO X-Received: by 2002:a05:6808:191e:b0:398:100d:7ae7 with SMTP id bf30-20020a056808191e00b00398100d7ae7mr2549388oib.43.1685496205738; Tue, 30 May 2023 18:23:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685496205; cv=none; d=google.com; s=arc-20160816; b=fXYby3x/gMyzOeFAUykc+YosX6LiLqxlBusT40yHLQrvndbvvHU1D936UTxOlxTJ30 thETFBjttA2pdlIw2MImmED0kh73ngKbJ5OLy9M8aB1Aa/TfefedElLiD9m+Mcv6LBLz pfhcAVZh98Lnv6rEAMxRy0kH7Cb1yJjxaIbYQWdbb6FafuDJanYolOKixilMH006Rdol lXzpeijlUvTYXkXS41aW8y9yLUC4+UaOzd8cTPNOcXC60NxtOF7EQeSUjhOEE+8184mn l0IrJgjwBJ6y+A22+swO1+wGE5RdLReIVWl4r40F1fUwhu6Lut9QjuYJOh4FX7eXOcLu f1wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HAglrf8PCd1V6N2W8Uz36FXrK3c4ZLEoDhLUPZcuTSY=; b=DfTlO6FfpjagR/fO79NwZIM4fbVm5nN1P/ntwuJiIQBk6p2KxZ4AUGlUUpxRSWCB2+ 1hdZZqaj5rbd0MQLqv63Pwf3Y/IBf1Ten5xMMSwDgL9PTDWgES35eS9+EAiBZYVhNGlK K7eruOwtEK7tKlTMVEpMnHq4O7Nm+cdeeJLvbGGP4NYsTlMpfQFJ2Mu5QLVcReIK34R0 P5LiGKBeBMIr5QudOjkQcL5pNPIkH8/hWFaDW+VrNBNGRXardVjTqrK4SZRj4uTdLeRw ZotKiE7gI/8t6l9zLM4rx6+xtvZBnVKryrl0dltIsjULB9IdTazYV28trycqldgKWq4X U3Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=rD1tRmQ1; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h185-20020a6383c2000000b00528a60cc065si46764pge.380.2023.05.30.18.23.13; Tue, 30 May 2023 18:23:25 -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; dkim=pass header.i=@google.com header.s=20221208 header.b=rD1tRmQ1; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230500AbjEaBT4 (ORCPT + 99 others); Tue, 30 May 2023 21:19:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231558AbjEaBTw (ORCPT ); Tue, 30 May 2023 21:19:52 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31B90C9 for ; Tue, 30 May 2023 18:19:51 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1b025aaeddbso48425ad.1 for ; Tue, 30 May 2023 18:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1685495990; x=1688087990; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HAglrf8PCd1V6N2W8Uz36FXrK3c4ZLEoDhLUPZcuTSY=; b=rD1tRmQ1Fck5LJpxqUAqcYBVbzyaUltLUrkhuX+3a11rRgFrGU6Q0UQJWw0q+4N5ZS tlgb8H2pcD6SRCs9zfE4oAu4oA31A+1iqJgmN4Ex8Vuz8DMhl0p2EFxpCw7H5XzGccKb aoL3I0eZHZ2W2DmAkp+bvsQ6c/wynAInNPFhwLWr8vNGW+b4apDjK9DhQCz5YSZQT4kd RkyZZdS7HfnBKxRI994pW1J5M8NV/3cBg2LlWi68bubpFBzkCP4rsSqt6X1uW79Maah8 AlWaJUSiQEQG1AGyKiWyEYwa4LmsuJJXr18zxR0mY1MKg8LKgYQoOy/ocZuQuTSKL1qc s8yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685495990; x=1688087990; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HAglrf8PCd1V6N2W8Uz36FXrK3c4ZLEoDhLUPZcuTSY=; b=YowiIEQfz4TYIKsmg8nIixLgva+ABTO3UGBVpWLSxMmeN3YaghDcikfJNU13Hklsf6 x1xfF/iycgcTPF3FWLpylzBAvYpjb0pRBhN3pnMLP5NiH2HzjJyPKavha1Xo+wQx/Jfg Z0LOHCHu/5spsAp1BgwJ0llcACGT5gaTfgtcDnUVUc1F++SX5egAquDT87rywBa0WEhP 45U3UEUvUFSq9+CE4Xl2bBCibkZKFEnUQhQsg3OwMntmsstIOS8OAo9RXQqTm0+i/uiD u8gLqOkl8yjSLMcntst4evw3zWOc9slhQS7EQBt7PwXOCYFE4uSEhocgWvEdrONcg988 9MxA== X-Gm-Message-State: AC+VfDycPG9MiMH4ou5hO6FotRJCgr0AZpGK/59hmKqq3/69kzksPy6O /55lQJZGW4Ft1Mz1SOJpsbKYweB7VwZAgKzUq6fpvg== X-Received: by 2002:a17:903:74f:b0:1b0:cea:2952 with SMTP id kl15-20020a170903074f00b001b00cea2952mr21011plb.25.1685495990418; Tue, 30 May 2023 18:19:50 -0700 (PDT) MIME-Version: 1.0 References: <1685438374-33287-1-git-send-email-renyu.zj@linux.alibaba.com> <1685438374-33287-8-git-send-email-renyu.zj@linux.alibaba.com> In-Reply-To: <1685438374-33287-8-git-send-email-renyu.zj@linux.alibaba.com> From: Ian Rogers Date: Tue, 30 May 2023 18:19:39 -0700 Message-ID: Subject: Re: [PATCH v3 7/7] docs: perf: Update metric usage for Alibaba's T-Head PMU driver To: Jing Zhang Cc: John Garry , Will Deacon , Shuai Xue , Robin Murphy , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,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 Tue, May 30, 2023 at 2:19=E2=80=AFAM Jing Zhang wrote: > > 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 Thanks, Ian > --- > Documentation/admin-guide/perf/alibaba_pmu.rst | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/admin-guide/perf/alibaba_pmu.rst b/Documentati= on/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 =3D perf_hif_rd * DDRC_WIDTH * DDRC_Freq / DDRC_Cycle > -- > 1.8.3.1 >