Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp987140rdb; Wed, 6 Dec 2023 05:54:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQTe1yIYqs7zRBSbcCev8YTJ5YoRHSdjuRnVWrvrimyA1a/RfwLW/BTdBYX0KKKFLthT5w X-Received: by 2002:a17:902:f54c:b0:1d0:6ffd:e2ce with SMTP id h12-20020a170902f54c00b001d06ffde2cemr1117025plf.104.1701870853280; Wed, 06 Dec 2023 05:54:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701870853; cv=none; d=google.com; s=arc-20160816; b=gAvLoiNGK+5g1oox3zJ0ix/6CPgY+FlfRYuT+20VTSx5XldcgCf5kX6zsTFKkvFqki +lzb932716gAx5IYFXFC/GuPeZ+8CS+fnGAKd9kJvKnO5hNNCAM6Dd9qVkFQejjvUdqB 9NdbLUydG0KXQ2h4ER/P76Lf8rl4qKgkJTQfyeyux/f8pnyCAmqz18CnMfjF2O8mKtCJ IG8b8ydcOsXfN75Qy7QwlvJM5B8eHhP5QmOHO4BdqEPVkUs/ZY4y5dUJ81ZKRuN+Zpac ah99OtgoQyXM7RR9r1LqUFW3LIkVefwOhqxLIy1won9bLUCoyxPICiyTXj+uOar8ITPC +HXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gsCdJW3oGDvVA3lYB6eGT5W2z0F80hG6ff+BXl2Bd0g=; fh=DQJFzYhDw7s0aDcP4xCXMnXDV+wvgCJQmGzbcu5VG4A=; b=GdkKgTmQHE/rjpH4L+/PlQUWroPcW3XsAkPktpujmyhlTX/0Kv/fyIOlyFYUc38Ygg lj82rYpcYqOPe02PBtlh1IiRSdJpwQwbA97kmoFCweHSY0KvNanJ1s/HtV8yv9i9jn+V x6C9gF9PDojXqTLHoeMNfysSliBlYhDbW6GoX5yoLStN6es9YE8unitkkPPsvCM1fMaV rTqMk/GLYr0OU/HRy9S4nR2Wa6R4vaJ6UjqjXjofJwxq5nDfiyO+fB6Sd3N0lMgtUe0e JsgovH9SsZLAhq7R+ABtJ9JLd/u0TwtEr7ab8r5FOn9OdLnhI2DSGzvKNwCbS8hlb5+L iTkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SNetY+09; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id c15-20020a170903234f00b001d05450e410si169448plh.208.2023.12.06.05.54.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 05:54:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SNetY+09; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9854680BE87C; Wed, 6 Dec 2023 05:54:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378654AbjLFNxz (ORCPT + 99 others); Wed, 6 Dec 2023 08:53:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378633AbjLFNxz (ORCPT ); Wed, 6 Dec 2023 08:53:55 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8415ED1 for ; Wed, 6 Dec 2023 05:54:01 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E23B6C433C8; Wed, 6 Dec 2023 13:54:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701870841; bh=iOiOJkTHnXU+Cx/umDTZmLjx0e963P9Lpk2W/B0Z0h0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SNetY+09l8T5OlZOcmBgb0T3ptNyxuuAU5+V+o4vPKuL3Ec0VU71f0CGagHKZHQEi M6bVHDTxWRhoL/jwEvg6lB/47df/cnlWSy6UIVC5KhwGB45Dz9h9AniC45p1aWFYx2 wybGsenQoJUvSkBUuHTJ4IZi+RnH2AX5vRqh8o/6g171zdhkecjcZI5KXk7p3wPOkE Ypzn8h0Z3eyv4fkbqSCUf1NpRnL4g+t+KCUKrzcEIXUGO107WFsbGG73VX362Rn2F2 1i+MbgMqhlbFedpuyRLAFktaLlKRUc6V0H+f2mn2BXWLpffn1uSen03ScOjk4joZbR uhZ9Gz6XvYr6Q== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 42842403EF; Wed, 6 Dec 2023 10:53:58 -0300 (-03) Date: Wed, 6 Dec 2023 10:53:58 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Ian Rogers , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Nick Terrell , Kan Liang , Andi Kleen , Kajol Jain , Athira Rajeev , Huacai Chen , Masami Hiramatsu , Vincent Whitchurch , "Steinar H. Gunderson" , Liam Howlett , Miguel Ojeda , Colin Ian King , Dmitrii Dolgov <9erthalion6@gmail.com>, Yang Jihong , Ming Wang , James Clark , K Prateek Nayak , Sean Christopherson , Leo Yan , Ravi Bangoria , German Gomez , Changbin Du , Paolo Bonzini , Li Dong , Sandipan Das , liuwenyu , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Guilherme Amadio Subject: Re: [PATCH v5 15/50] perf maps: Add maps__for_each_map to call a function on each entry Message-ID: References: <20231127220902.1315692-1-irogers@google.com> <20231127220902.1315692-16-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 06 Dec 2023 05:54:10 -0800 (PST) Em Mon, Dec 04, 2023 at 03:46:08PM -0800, Namhyung Kim escreveu: > On Mon, Nov 27, 2023 at 2:10 PM Ian Rogers wrote: > > > > Most current uses of maps don't take the rwsem introducing a risk that > > the maps will change during iteration. Introduce maps__for_each_map > > that iterates the entries under the read lock of the rwsem. This > > replaces the maps__for_each_entry macro that is moved into > > maps.c. maps__for_each_entry_safe will be replaced in a later change. > > > > Signed-off-by: Ian Rogers > > At first, I wanted to have each conversion in a separate commit. > But it's all mechanical changes so probably ok to go together. > Acked-by: Namhyung Kim I think we should do it in separate commits, Ian, can you please consider doing that, please? I'm pushing what I have to tmp.perf-tools-next now. - Arnaldo