Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9584653rwl; Wed, 11 Jan 2023 07:30:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXuP1laLNTgNu3WlA4TwIXmDH3efGJCuJiVIJtGVDqcxtlGegbdoG9smB+bZyw6OcugYCwEW X-Received: by 2002:a17:907:1b0b:b0:7c1:6344:84a with SMTP id mp11-20020a1709071b0b00b007c16344084amr98521282ejc.5.1673451040040; Wed, 11 Jan 2023 07:30:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673451040; cv=none; d=google.com; s=arc-20160816; b=IWCv4NSRaScfSD4QNlTenfhrLR9jo3mBSId6k4Eld3Z9LHCy1d4I1dPqjC+QeQEXec j0nnj1w80TuBKtM3tgewNJxp1WcGa0laHVgSEbPTP50OnG0O9IVkSFR8Wa6n+aiM//5U 11QTazp4BdtTmRrrcV+0nogbR5JG1PbHHLY+EuhrUveKm1TZRxULz3KrkbzgeZ6xUaGK JXl5bUb9KjBrbsNJGwEVcJJxI1wm/sEkLGNcTBMj3NPd7Svf0t0rOlW9QvA4f9vKWKua yOCSobilrvjKnROXQ44/PivitSZgCMyTGqkdDQpYWJ6gyageyXX7R+5oJaCS5eUAfMCe gFAw== 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:content-language:subject:user-agent:mime-version :date:message-id; bh=VWrmjkb1SUeVZNAHo5ouVc/c8Y4Y+JrP5mxYbFnEPQU=; b=hSnuKPNmKGW+gCsFrqAsBc5Yy19YsP1hLukaxwFcz+IPNTqpFcYoG6UnTfvstvvuCM eDMD/lYPSfqytu1nmhZ6jhagGHgtB6koX3GhMIDi8+2ZhStPPxTk/sOw5Xh5j0ctMOuN FhuqGxeMPzmP3DRWoH/7GppPu1ANQcYeZVvAdf6FVzznNsYCNL/aK+c+UOkf7RH8mTO/ MSepXRswMxM19AhfkjFnoOsuX1p/aBxQ5C9mEIyrQxKeo1f7Wmh8OCfbmgW99Gn5B4NV QIufPpl6LE0WnwAVs4TD2XyXj9TO/Syk7JppxZFyRF1Dk8FsO5tEP5PQSqx2ucv2czV2 Zd/A== 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=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di6-20020a170906730600b00857c01c6b3fsi5029119ejc.164.2023.01.11.07.30.27; Wed, 11 Jan 2023 07:30:40 -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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232469AbjAKPOV (ORCPT + 53 others); Wed, 11 Jan 2023 10:14:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233027AbjAKPOL (ORCPT ); Wed, 11 Jan 2023 10:14:11 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D866411C05; Wed, 11 Jan 2023 07:14:10 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 671DFFEC; Wed, 11 Jan 2023 07:14:52 -0800 (PST) Received: from [10.57.45.242] (unknown [10.57.45.242]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 543903F71A; Wed, 11 Jan 2023 07:14:07 -0800 (PST) Message-ID: <974e7d1e-45c1-217f-1331-8cb498b187eb@arm.com> Date: Wed, 11 Jan 2023 15:14:05 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v3 2/7] perf: Use perf_pmu__open_file() and perf_pmu__scan_file() Content-Language: en-US To: Leo Yan Cc: linux-perf-users@vger.kernel.org, tanmay@marvell.com, mike.leach@linaro.org, sgoutham@marvell.com, gcherian@marvell.com, lcherian@marvell.com, bbhushan2@marvell.com, Mathieu Poirier , Suzuki K Poulose , John Garry , Will Deacon , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230103162042.423694-1-james.clark@arm.com> <20230103162042.423694-3-james.clark@arm.com> From: James Clark In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 11/01/2023 07:09, Leo Yan wrote: > On Tue, Jan 03, 2023 at 04:20:36PM +0000, James Clark wrote: >> Remove some code that duplicates existing methods. This requires that >> some consts are removed because one of the existing helper methods takes >> a struct perf_pmu instead of a name which has a non const name field. >> But except for the tests, the strings were already non const. >> >> No functional changes. > > [...] > >> diff --git a/tools/perf/util/pmu.h b/tools/perf/util/pmu.h >> index 2f2bb0286e2a..8f39e2d17fb1 100644 >> --- a/tools/perf/util/pmu.h >> +++ b/tools/perf/util/pmu.h >> @@ -2,6 +2,7 @@ >> #ifndef __PMU_H >> #define __PMU_H >> >> +#include > > Nitpick: it's good to use to replace . > > Either way, this patch looks good to me: Looks like I also forgot to update the commit message about removing the consts after the last change. Will update both in the next change. Thanks for the review! > > Reviewed-by: Leo Yan