Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1748845pxm; Thu, 24 Feb 2022 08:39:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyT1MHgQwpKF27UiqRlOphgpP3Rcw9IwiKeZwp2VvrUqgJdsiA6b2DEpnx1rgw0iTicdbnd X-Received: by 2002:a17:902:8bcc:b0:14f:2294:232e with SMTP id r12-20020a1709028bcc00b0014f2294232emr3524459plo.105.1645720770058; Thu, 24 Feb 2022 08:39:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645720770; cv=none; d=google.com; s=arc-20160816; b=rL6CuLj2wK7YWNHLE9vRyKArDagCpj5gOlpVE3o4nQARgElqH4NYFX5OGzXkgUWX2B lNsWrA4Sjb3Rg7jIgk2475zaQ74Dy+BMexOgAnKYl6ND9FO55j1qgbOdKoc86Cp8HT82 Ym3NRFmH3iAJxVMsUsIQhj6oR/46cALZ6/BP5mr3M6V3yCVXYSr1P0j2NOXkput/+4hJ nMnEcQWfAMp01bRrPyKEeKOFoLtt30gS3XhSs5Rov7z1Qy2rKXF7VHVpBQL9Lo7a4qF8 CrS0gsUqpg3z5tOeIO4asUPW/3H9a2xBdyxAA8Uy9xl1uTgDA94pOOsCecF5Wa720rip QfAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vsFGQUY8quNQQSWBB/g4OUFR63docOEdU3jKdSOqvJ8=; b=MKI83Fa4Kf0q+qPHEXSQLcVFHzVzEXQaxaQWdLM+j3HDHskk/4DwV3HXLSkUNh+mP+ BAV1oOaHjXVuhEFnOKBx0gyq+si2gIe5gphAMxAQvE5I2Q1Vpp+2onbkxnfdiyOdx42y VjmmhRPfXWHVjALfKLuAP6jA5ofQwsCQvjHZmcWwBTarXAnO3VHaka+BxKUIU2KswRst jWdy7IgcrmNO9ECGqAk6/y+aDHE9+JibPz2Xw0CLQMkpIaAPQP/S1fqS6J+iwSZP7ovN Ubb5lyRtlWktpAJfikWJ+uoTdRSSvLA9Ce75EJKX005jJUa58A9d6f3vejAF4Ay6D6u0 dNDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VFFKlZFL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 195si2758592pge.555.2022.02.24.08.39.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 08:39:30 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VFFKlZFL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1E57CE0E0; Thu, 24 Feb 2022 08:21:38 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236694AbiBXPxS (ORCPT + 99 others); Thu, 24 Feb 2022 10:53:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236687AbiBXPxQ (ORCPT ); Thu, 24 Feb 2022 10:53:16 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42CAC16DADB; Thu, 24 Feb 2022 07:52:46 -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 ams.source.kernel.org (Postfix) with ESMTPS id B6C28B826EB; Thu, 24 Feb 2022 15:52:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2AD7C340E9; Thu, 24 Feb 2022 15:52:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645717963; bh=5PIGB+4IM8Fn9hA2P/gMQ/CRlNKBfAwnseV7hJCN9w4=; h=From:To:Cc:Subject:Date:From; b=VFFKlZFLLJ2lSxC1U0v70U0jBFnfX1tnVHRJK9w16q4yqkGGrv7nPL1BRxq5rVc9i jYAfc7mnYQFsN5XJYwpiIrds/bckMQ3kj2tkdxLE1gB4shbbPZe0l+l+cGROS2DxHo GyYiooq23FhrZVdUjwkGKWHSaEDpvEOXEKEcC3Nfm2+UwzLW6lmeiL/RxqEgX34NwK MvtTfPFXmpglBNxD0F7W5201f3hLG8+8pt/duiWGyv9rNs3BzlBgufxWNumJzbigjV DdTs8rzmg1msstKb8z+Q+f7jvWcAizvNSh+8mIvDXv0nVTjBufRXo6Sd7kXJX9WjNx 7jrMDRUk2rB+A== From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Ian Rogers , linux-perf-users@vger.kernel.org, bpf@vger.kernel.org, Andrii Nakryiko Subject: [PATCHv3 0/2] perf/bpf: Replace deprecated code Date: Thu, 24 Feb 2022 16:52:36 +0100 Message-Id: <20220224155238.714682-1-jolsa@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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]. 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(-)