Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp898998pxp; Sat, 5 Mar 2022 23:57:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyavQysEEavA75SOkx2/qNdm05K+yI9KBW3iu3FoUHx0CcXZj9/Jyyxd9VY2dEsXqQqXOdt X-Received: by 2002:a50:9d89:0:b0:410:ff04:5a98 with SMTP id w9-20020a509d89000000b00410ff045a98mr5827538ede.404.1646553465171; Sat, 05 Mar 2022 23:57:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646553465; cv=none; d=google.com; s=arc-20160816; b=fat+sJNoZjsBYsnWT8WqD3Zg4h5Un8tgu29tizM9aizOP13Pe83nNzuo6MeCStmtZs IvzJMkGu2LLEdakOYFphyjrhDLIaycs1yJEYqfOd2u8+nQzVVjHs2dH/HobU4+1D61YW 6xk0N89HigKBKdki4XmTAi2WaDEsWbjesgVIpRql2Gkq5MNqeDcZetzrIkhzp81WkDBt zvsX6v1rZUcvNSsW+tXOrh3zL01XKkS0WAzLxGshr0EuUeDCuEGT0mGUYJiRZ1orn/pR TQnA+XidKbfpmpgV1WJdy6sD3thew1lZY2dUUZDYXRtOdHPuweDjdh4Wkj91pTtwVbyN 9e2A== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bfS62qDiCwWbi+7XAtdvVv+sc4F7f0HaNH58pLGMCNM=; b=Gqcnmr4gYDpnHGdNUbXfglHLABYaPNYw9r1hKrxNw5JDfJo3iF6d977ZFxRsExhGec 4/zvTOfRQQhBFhrhW1pUMu8Q+yHGH84XLfwtjBEFifUdY6WKV55++1TTl1Bm6snlKe2C KRyMabgKM1aBfRaDzT4Wj4ZT6cRGk3T7EtHHqEoPfByrowZ1E944w/jl6I9/36aUKw2W W/ijgpxEHEG2sN/KrseRjIzOFHRSGK/ebtD6JfW92yTbmRUN+bwbTVDa5ZJPOZzqp7UE Yh/iBlmXJPPN/9/09GMoGni5d4+Df6/g+60Pj/QBwHzTzShVIkxb5gn13UZb+Vdi+BQB 0dOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AaAVBuzR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a05640226cc00b00416439a6ab2si145385edd.103.2022.03.05.23.57.23; Sat, 05 Mar 2022 23:57:45 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AaAVBuzR; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231468AbiCETOH (ORCPT + 99 others); Sat, 5 Mar 2022 14:14:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230022AbiCETOF (ORCPT ); Sat, 5 Mar 2022 14:14:05 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EED51DF3; Sat, 5 Mar 2022 11:13:14 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7AFD960B58; Sat, 5 Mar 2022 19:13:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96A5FC004E1; Sat, 5 Mar 2022 19:13:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646507593; bh=ismCCXTQN4wRCQCh0iN8ukxF4lK+mQ4/GREdYf3TjbA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AaAVBuzRjfjoeHXPcCDbsYEY6FYB+MB7x0U30ugLRbtGOf6xm0Xdn9VxkPcC2wWKV Rf98iyA7igwEvWFKG696RBSIO3ke+tw2ZzC4LhCsg7inaLR9sChckCJUhBT5Q4xlyf hGexSd5xg0qFXZVjg1Wv2MpkF+8EtVokfFXVtQ+JNIweif5g87a9fCWrgCryrBpfUf vHJPCUj++EU8McL1o7lGAT8k35o7FqbGEGFbti2SYPi/e/XsohASkaDl4Vjxzi3tyu 0vfUPXL5fb3ulsGAHjIQre7VID89ckDEb3sXmTy6EU1Vcskuwhe49F9UfYcBmNEg7Y yL3xAPvlIhs4g== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 78027403C8; Sat, 5 Mar 2022 16:13:09 -0300 (-03) Date: Sat, 5 Mar 2022 16:13:09 -0300 From: Arnaldo Carvalho de Melo To: Andrii Nakryiko Cc: Jiri Olsa , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Ian Rogers , "linux-perf-use." , bpf , Andrii Nakryiko Subject: Re: [PATCHv3 0/2] perf/bpf: Replace deprecated code Message-ID: References: <20220224155238.714682-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Em Mon, Feb 28, 2022 at 05:49:55PM -0800, Andrii Nakryiko escreveu: > On Thu, Feb 24, 2022 at 7:52 AM Jiri Olsa wrote: > > > > hi, > > the original patchset [1] removed the whole perf functionality > > with the hope nobody's using that. But it turned out there's > > actually bpf script using prologue functionality, so there > > might be users of this. > > > > v3 changes: > > - sending priv related changes, because they can be already > > merged, the rest will need more discussion and work > > > > - this version gets rid of and adds workaround (and keeps the > > current functionality) for following deprecated libbpf functions: > > > > bpf_program__set_priv > > bpf_program__priv > > bpf_map__set_priv > > bpf_map__priv > > > > Basically it implements workarounds suggested by Andrii in [2]. > > > > LGTM, for the series: > > Acked-by: Andrii Nakryiko Thanks, applied. - Arnaldo > > Also available in here: > > git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git > > bpf/depre > > > > thanks, > > jirka > > > > > > [1] https://lore.kernel.org/linux-perf-users/YgoPxhE3OEEmZqla@krava/T/#t > > [2] https://lore.kernel.org/linux-perf-users/YgoPxhE3OEEmZqla@krava/T/#md3ccab9fe70a4583e94603b1a562e369bd67b17d > > --- > > Jiri Olsa (2): > > perf tools: Remove bpf_program__set_priv/bpf_program__priv usage > > perf tools: Remove bpf_map__set_priv/bpf_map__priv usage > > > > tools/perf/util/bpf-loader.c | 164 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------- > > 1 file changed, 141 insertions(+), 23 deletions(-) -- - Arnaldo