Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7599832rwl; Tue, 10 Jan 2023 03:02:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXuS7ToNNUEsJaT1WmwszwURFQ3SlJGfSCv8FCzngvEMPTRhslNnj2Ica0+K3+RhMqTqO5/R X-Received: by 2002:a05:6a20:ba92:b0:a4:cfe7:e6c0 with SMTP id fb18-20020a056a20ba9200b000a4cfe7e6c0mr74231452pzb.41.1673348569020; Tue, 10 Jan 2023 03:02:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673348569; cv=none; d=google.com; s=arc-20160816; b=sIrYpu5dMLPPzqnY9qR/AoRjFzqv8s4H9oJQxXqVOQY6mJaAMHyBjFp4zmWEjQU7B5 wInoafKVPqkBnPrBrZ1FdSXK0Q0SvOkyIEB/qetzplCEscZH7lpxpCBLBDW9eAWGd+3u wIRG/NMiZ1T69BlI0NpcKSU74NXHMMqF54DhxcqaLzFl9CMDDaJLCGjFaybSa1Zj2nqn ZC57u2REKF1Dki0PMHG7bQ39OMh30WpIo+gI8CGZBmLCTHTczfbgghTNHGWAU8Uu/CJZ lKafbCbshvmzi7NbP/JKYeVsXSrf7J1Pyxl/Se2Afb1/jjz/DDZDi7pmEIDsSP5MDKmS gVxQ== 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=DwnG/7g2P33yVRcTVR4UbyTUOCDXdwXWttdNXGVM2mw=; b=qe3ZanxyT0pRHpWcQ5QD1I6K0BB3yT82sPymwmMIaPEVcAa/LNi2NOJuPqZSoT8C5A uSfSDT8ldWBHOlusEH12aGIykO4fDxWScNT7tz6xijMYxQJfThZj4EEduHAFjdxY+vh1 4xQO4kCAMXcpbuxSD3fX0sgmgACRwqZdtqegiXO7IjriCG8hIsTBlqElOOGJQBYNwudf MWdTyVq8kltmVlYKtPI0vszJDZ+T+qKtgFSoc9UkaaO6UaT72VrbKuHjZbyQzJ4B7H86 J4LEGbP6bwZirByYkOJp8+J0yNa6dCiY6kdocEshuhN2JaQMeaumrgvz+TqOJSsxUea8 B4UQ== 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 a1-20020a17090ad80100b00226646d3605si11279128pjv.58.2023.01.10.03.02.41; Tue, 10 Jan 2023 03:02:49 -0800 (PST) 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 S235319AbjAJKiU (ORCPT + 55 others); Tue, 10 Jan 2023 05:38:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238015AbjAJKiP (ORCPT ); Tue, 10 Jan 2023 05:38:15 -0500 Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47595D2CC; Tue, 10 Jan 2023 02:38:13 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;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=19;SR=0;TI=SMTPD_---0VZIue7U_1673347087; Received: from 30.221.147.136(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VZIue7U_1673347087) by smtp.aliyun-inc.com; Tue, 10 Jan 2023 18:38:09 +0800 Message-ID: Date: Tue, 10 Jan 2023 18:38:07 +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.0 Subject: Re: [PATCH v6 1/7] perf vendor events arm64: Add common topdown L1 metrics To: John Garry Cc: Xing Zhengjun , Will Deacon , James Clark , Mike Leach , Leo Yan , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Andrew Kilroy , Shuai Xue , Zhuo Song References: <1673017529-1429208-1-git-send-email-renyu.zj@linux.alibaba.com> <1673017529-1429208-2-git-send-email-renyu.zj@linux.alibaba.com> <7f60c97a-18df-4f93-0e95-2a9a6dccbda7@oracle.com> <758b66bb-6f9e-8a9a-8b0f-10cd79a65613@oracle.com> From: Jing Zhang In-Reply-To: <758b66bb-6f9e-8a9a-8b0f-10cd79a65613@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 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,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/1/9 下午10:58, John Garry 写道: > On 09/01/2023 02:53, Jing Zhang wrote: >> I'll factor out the pmu_core__find function in tools/perf/arch/arm64/util/pmu.c: >> >> static const struct perf_pmu *pmu_core__find(void) > > maybe name as pmu_core__find_same() or similar to indicate that we're only dealing with homogeneous cores > >> { >>     struct perf_pmu *pmu = NULL; > > no need to init to NULL > >> >>     while ((pmu = perf_pmu__scan(pmu))) { > > 1x superfluous level of () > Ok, will do, Thank you!