Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0FFBC46467 for ; Wed, 11 Jan 2023 07:09:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235627AbjAKHJl (ORCPT ); Wed, 11 Jan 2023 02:09:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234716AbjAKHJj (ORCPT ); Wed, 11 Jan 2023 02:09:39 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA818B1ED for ; Tue, 10 Jan 2023 23:09:37 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id d15so15850066pls.6 for ; Tue, 10 Jan 2023 23:09:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=wXu3NFcy3E6k/qTfyZTmDtcSnmUuSgUYcvuwQn2oJ08=; b=AaKP+UATMx3qvunIjeo8Fd8WCxjRzcQ2m4z8RrCbs9qE5GaxtYhBDFiYyuWNkKlrIT 4VhcL785Ej0lA/p5qdYgwYyqZp7MXoquBd3mXSN/o2A7RPnRnBvDoMcI9ZsPywKKmLpe wtvZTOzq3bG95CyKDA0aWNQn8ZHZRBcjjGUACSqRsKk4so1SzGeCEB+R7H2KNpIpkEzr tzyj2JmO6OCyzqc/OSdGvqI+buH7eCAwKkLGkFD/UAJfScuVIQcIQuSxvv7jNZ/przIA 2t0LcTa7s9dU/uJ2ndgoNFY0YrwpQbx7x1EQMlA9UDMeoyzdzXRl+gj8+ThmPR/BTdSi YiMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wXu3NFcy3E6k/qTfyZTmDtcSnmUuSgUYcvuwQn2oJ08=; b=lfEiEIs6iTsTHTAt5kJPmn0Jwgmm+gjWsFI1ZqsyeJc4bFjuif2rnm7oRL7VM0WRl2 PiMke33rDdpu5UmFX7/p8dCvW/1AYNRi1efwk0kFjK0C0pD5pdfE0nuiSf0cgxqywo7L PQlG1slv9DY5B4c7bNo2bgDGlEYkpwZOcFnTGAaL1fBqNSXauZ9FH/1xB71+xxIUHLik U5zPcwkYNg19Zr/aohTslod4A7bqi081t82oeAq2gCtksQExF+0uBPfFwt7el2jkuqR1 R9MSjeHhFweemRa8bISl7HPf25mS+DEsM1n6OTWh7WWycpQO1Qs2VIltzqIuUHvMuD04 dskw== X-Gm-Message-State: AFqh2kpIgprylDuHIKlJSya5cl9zO6L4EgxLEfolGyO8rdoAOk4aIN6I T3mpy91vYL50gQwZ+dRARRmrlQ== X-Google-Smtp-Source: AMrXdXs6dhihzdE8mH+xS+p4iaiATH5a3EjmMV3wqpinRnkNIIzJhknQz2wZ96miw/SyXkTQh7ljNg== X-Received: by 2002:a17:902:7b94:b0:191:3ebd:c3a5 with SMTP id w20-20020a1709027b9400b001913ebdc3a5mr67556468pll.17.1673420977122; Tue, 10 Jan 2023 23:09:37 -0800 (PST) Received: from leoy-yangtze.lan ([152.70.116.104]) by smtp.gmail.com with ESMTPSA id m18-20020a170902db1200b00192d07b8222sm9359429plx.100.2023.01.10.23.09.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 23:09:36 -0800 (PST) Date: Wed, 11 Jan 2023 15:09:24 +0800 From: Leo Yan To: James Clark 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 Subject: Re: [PATCH v3 2/7] perf: Use perf_pmu__open_file() and perf_pmu__scan_file() Message-ID: References: <20230103162042.423694-1-james.clark@arm.com> <20230103162042.423694-3-james.clark@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230103162042.423694-3-james.clark@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@vger.kernel.org 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: Reviewed-by: Leo Yan