From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CAA79C4167B for ; Tue, 12 Dec 2023 18:00:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XZ24xccfvqA7//SUSbcMdN9cO/mLt1LpxGUiXPbw0yE=; b=Xpxv55knbcBMhe smj9iLoKNCa+PXHuILhqcXHl8CJRYp+wt0+u1ey/cjGIdfNVAJrQtHTIlFlkt8mSnFISkUjeY7pDi 45sQEpnQHvrzt0Tp2xyPpPSgV6ZR0yERo67H5MjZvF5TDr6CeVWaQUQIQTKn7YkLddnxX+8XxjANy 70Rv5y9gccYw3eBV8/tZFMFtvoqqcqtYQIxM+jkAH+TCSOJFNrz63DNPanpEuYKLLqrbOijLsIoen M1ISRdnN5bms50LTcaVn3S3Dyncboze5U9/zyiP72E4YyqhZOpEFbwWiesQMRwDEtSFDg8Okoqf1y oZhzqO50FRR6rENGhEUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rD72o-00CRrP-1Q; Tue, 12 Dec 2023 17:59:46 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rD72n-00CRrI-19 for linux-arm-kernel@bombadil.infradead.org; Tue, 12 Dec 2023 17:59:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Qh2X6zRxFaZD3vhSzBqmOfC8+HyBhkzST6QMCYRhoTQ=; b=VBeWd7nTZw47tC2YvgAODMfTfl ZiEoM4WmI26aBN2QnaS8Ljm009qFTpW9PUG5VNc2ooTey4P578uwWP/SbmuTVDT2Bgx1N3/WGsNvf GP/Ax4PLExQr0DJ5Pra+oKoH/65izi0Q7WIRr5yRfWiQCjUH4JlQSu7Gzyq2PPsD4wucVjDxST6G0 2ZpH6dLSZfbqxkF7Oe29i+km7CByla49DJrjlwHTNH5DGiaUlLaOMy/AGQm6nP++hlK0fP4cAhnvZ LVmFJeIo0X5YTP0lWjdby9dmJ9hJEKIrRIyEME0j4rJ8mjAchbcXAEybWUS785JmhekPRtLbhiZ3V xzMxHkFQ==; Received: from [2804:14d:128a:9455::1002] (helo=quaco.ghostprotocols.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rD72k-008njN-0G; Tue, 12 Dec 2023 17:59:43 +0000 Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 945A9403EF; Tue, 12 Dec 2023 14:59:37 -0300 (-03) Date: Tue, 12 Dec 2023 14:59:37 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers , Adrian Hunter Cc: Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Suzuki K Poulose , Mike Leach , James Clark , Leo Yan , John Garry , Will Deacon , Thomas Gleixner , Darren Hart , Davidlohr Bueso , =?iso-8859-1?Q?Andr=E9?= Almeida , Kan Liang , K Prateek Nayak , Sean Christopherson , Paolo Bonzini , Kajol Jain , Athira Rajeev , Andrew Jones , Alexandre Ghiti , Atish Patra , "Steinar H. Gunderson" , Yang Jihong , Yang Li , Changbin Du , Sandipan Das , Ravi Bangoria , Paran Lee , Nick Desaulniers , Huacai Chen , Yanteng Si , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, bpf@vger.kernel.org Subject: Re: [PATCH v1 00/14] Clean up libperf cpumap's empty function Message-ID: References: <20231129060211.1890454-1-irogers@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231129060211.1890454-1-irogers@google.com> X-Url: http://acmel.wordpress.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Em Tue, Nov 28, 2023 at 10:01:57PM -0800, Ian Rogers escreveu: > Rename and clean up the use of libperf CPU map functions particularly > focussing on perf_cpu_map__empty that may return true for maps > containing CPUs but also with an "any CPU"/dummy value. > > perf_cpu_map__nr is also troubling in that iterating an empty CPU map > will yield the "any CPU"/dummy value. Reduce the appearance of some > calls to this by using the perf_cpu_map__for_each_cpu macro. > > Ian Rogers (14): > libperf cpumap: Rename perf_cpu_map__dummy_new > libperf cpumap: Rename and prefer sysfs for perf_cpu_map__default_new > libperf cpumap: Rename perf_cpu_map__empty > libperf cpumap: Replace usage of perf_cpu_map__new(NULL) > libperf cpumap: Add for_each_cpu that skips the "any CPU" case Applied 1-6, with James Reviewed-by tags, would be good to have Adrian check the PT and BTS parts, testing the end result if he things its all ok. - Arnaldo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel