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 B0DD7C433F5 for ; Wed, 19 Jan 2022 18:03:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353397AbiASSDS (ORCPT ); Wed, 19 Jan 2022 13:03:18 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:29160 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351948AbiASSDR (ORCPT ); Wed, 19 Jan 2022 13:03:17 -0500 Received: from pps.filterd (m0109332.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20JFuINd020457 for ; Wed, 19 Jan 2022 10:03:17 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=facebook; bh=9gpCmJYy0rdr4wC+XQX9ILtwyiLUU3y6MVsnB0A5fjk=; b=Z0fvqEBOG6FegByCxHBqznXod+5l/u3GONWcdJxD2qzgmOeZzRWl0G4/TdG4mO1zlv9r sX23TRskMNwuSgy8O6nNcfFou0tWDrW063u8+q5s30HtdE2+w81BpxYRXL62SlAQRW3Y QfRY3JCuBSi90zOZTBlSQdky/0QcBy++iMQ= Received: from mail.thefacebook.com ([163.114.132.120]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3dp16qg80b-10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 19 Jan 2022 10:03:17 -0800 Received: from twshared1259.42.prn1.facebook.com (2620:10d:c085:208::11) by mail.thefacebook.com (2620:10d:c085:21d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Wed, 19 Jan 2022 10:03:11 -0800 Received: by devbig921.prn2.facebook.com (Postfix, from userid 132113) id 0B1521EDF9A3; Wed, 19 Jan 2022 10:00:31 -0800 (PST) From: Christy Lee To: , , CC: , , , , , , , Subject: [PATCH bpf-next v3 0/2] perf: stop using deprecated bpf APIs Date: Wed, 19 Jan 2022 10:00:21 -0800 Message-ID: <20220119180023.835496-1-christylee@fb.com> X-Mailer: git-send-email 2.30.2 X-FB-Internal: Safe Content-Type: text/plain X-Proofpoint-ORIG-GUID: RJT6gwXl8x9xHYQLGU9LuuXJPjjt7drj X-Proofpoint-GUID: RJT6gwXl8x9xHYQLGU9LuuXJPjjt7drj Content-Transfer-Encoding: quoted-printable X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-19_10,2022-01-19_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=fb_outbound_notspam policy=fb_outbound score=0 priorityscore=1501 phishscore=0 adultscore=0 mlxscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 impostorscore=0 spamscore=0 mlxlogscore=882 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201190102 X-FB-Internal: deliver Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org libbpf's bpf_prog_load() and bpf__object_next() APIs are deprecated. remove perf's usage of these deprecated functions. After this patch set, the only remaining libbpf deprecated APIs in perf would be bpf_program__set_prep() and bpf_program__nth_fd(). Changelog: ---------- v2 -> v3: https://lore.kernel.org/all/20220106200032.3067127-1-christylee@fb.com/ Patch 2/2: Fixed commit message to use upstream perf v1 -> v2: https://lore.kernel.org/all/20211216222108.110518-1-christylee@fb.com/ Patch 1/2: Added missing commit message Patch 2/2: Added more details to commit message and added steps to reproduce original test case. Christy Lee (2): perf: stop using deprecated bpf_prog_load() API perf: stop using deprecated bpf__object_next() API tools/perf/tests/bpf.c | 14 ++----- tools/perf/util/bpf-loader.c | 72 +++++++++++++++++++++++++++--------- tools/perf/util/bpf-loader.h | 1 + 3 files changed, 59 insertions(+), 28 deletions(-) --=20 2.30.2