Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4218207rwr; Mon, 8 May 2023 04:55:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7bYoMuODwD5X0RMSHUEJcS4qjfhMMmMNm0/sqAuMNg7jHnrrYM3N9aw//1A2bLF5jRFDRd X-Received: by 2002:a17:902:ced1:b0:1ac:5def:d203 with SMTP id d17-20020a170902ced100b001ac5defd203mr7385134plg.35.1683546931043; Mon, 08 May 2023 04:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683546931; cv=none; d=google.com; s=arc-20160816; b=go+3CXYqTkVVhjcDbSjoKnFICl8C5DcxwBtRzNVXZj1osdEtGwzvVaq8zVG257Pejn gObNAbeQo1bBpos29qG5raQo3C+82TbaO5woolSrZkGR2nzE4qyCBtEi+XYzF1szsvLi J/DJtddtAfinIdWRjqks0N4i5Tpz2I9RcPSZD4vGp5y9Gy0yShx8pAoFJxNx14pIQ/mv qcohf6mmjvIXexKU3AEM5w/+tFtHIy8GK7H8WFONn0LEboKDpA5VhxIzWV0ctn8WCeA7 fk+z6hehvBNrnnDxhToQ/wcqtjJhKeR07Aarz5tEADoUTw3TnIxl7kIJA9BQ/2xasi7D baCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=bXmQesyIr06GA56CaLD3cB1kUXTfbOVwPceuH5sQ+0s=; b=pUJmi12L6qdsBsf06DIAwyyyhxGR3IHc/rrF6s+GDWhKFZDEmfGjnlHSrT+eJmtLIQ pz3hnCIm7gfZcbD4Naf5hRkC3PgnrqbFE7O796bhGSnr2XBx3yzlNvh+WxfY08ZnKL3E /Lvb5NSaiRryw1IKpNkQRrzShHv8mDLHqps9b63R2dweQ1rmmvc7SjeHg/kd/hl/a7/H bxrCvArJrLYyMW0HyIJhSLqe6Ds15v+aKIjKBgz/4OMHdobXHxoNReaHTpwy2RbpG+iS qWaOnKyvktAysWstO6LP+FcWe+2KLQbkROxJ1KvPA9eo0aQqpb6/RKs+L5V3zoLO/TKA 20nw== 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 t6-20020a170902b20600b001a19bd8aa63si6594182plr.36.2023.05.08.04.55.18; Mon, 08 May 2023 04:55:31 -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 S235549AbjEHLTm (ORCPT + 99 others); Mon, 8 May 2023 07:19:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235547AbjEHLTk (ORCPT ); Mon, 8 May 2023 07:19:40 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 838B237C6D; Mon, 8 May 2023 04:19:37 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R241e4;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=17;SR=0;TI=SMTPD_---0Vi4aMn6_1683544771; Received: from 30.221.149.87(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0Vi4aMn6_1683544771) by smtp.aliyun-inc.com; Mon, 08 May 2023 19:19:32 +0800 Message-ID: Date: Mon, 8 May 2023 19:19:30 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v2 0/5] Add JSON metrics for arm CMN and Yitian710 DDR To: Ian Rogers Cc: John Garry , Will Deacon , Shuai Xue , 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 References: <1682329456-19418-1-git-send-email-renyu.zj@linux.alibaba.com> From: Jing Zhang In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 在 2023/4/30 上午5:01, Ian Rogers 写道: > On Mon, Apr 24, 2023 at 2:44 AM Jing Zhang wrote: >> >> Changes since RFC: >> - Refact arm-cmn PMU identifier. >> - Not add arm-cmn PMU aliasing currently because it's Eventcode is >> difficult to define. >> - Rename ali_drw PMU identifier and Unit name. >> - Divide ali_drw PMU metric and aliasing into two patches. >> >> Add an identifier sysfs file for the yitian710 SoC DDR and arm CMN to >> allow userspace to identify the specific implementation of the device, >> so that the perf tool can match the corresponding uncore events and >> metrics through the identifier. Then added several general CMN700 metrics >> and yitian710 soc DDR metrics. >> >> $perf list: >> ... >> ali_drw: >> hif_rmw >> [A Read-Modify-Write Op at HIF interface. 64B. Unit: ali_drw] >> hif_hi_pri_rd >> [A high priority Read at HIF interface. 64B. Unit: ali_drw] >> hif_rd >> [A Read Op at HIF interface. 64B. Unit: ali_drw] >> hif_rd_or_wr >> [A Write or Read Op at HIF interface. 64B. Unit: ali_drw] >> hif_wr >> [A Write Op at HIF interface. 64B. Unit: ali_drw] >> ... >> >> $perf stat -M ddr_read_bandwidth.all ./test >> >> Performance counter stats for 'system wide': >> >> 38,150 hif_rd # 2.4 MB/s ddr_read_bandwidth.all >> 1,000,957,941 ns duration_time >> >> 1.000957941 seconds time elapsed >> >> Jing Zhang (5): >> driver/perf: Add identifier sysfs file for CMN >> perf vendor events: Add JSON metrics for CMN-700 >> driver/perf: Add identifier sysfs file for Yitian 710 DDR >> perf jevents: Add support for Yitian 710 DDR PMU aliasing >> perf vendor events: Add JSON metrics for Yitian 710 DDR > > The perf tool changes all make sense. John Garry is more of an expert > on the ARM part of this than me though. > Acked-by: Ian Rogers > Thanks Ian!