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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24E94C433EF for ; Thu, 6 Jan 2022 20:03:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243553AbiAFUD3 (ORCPT ); Thu, 6 Jan 2022 15:03:29 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:44060 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235093AbiAFUD2 (ORCPT ); Thu, 6 Jan 2022 15:03:28 -0500 Received: from pps.filterd (m0109331.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 206HVHYf007323 for ; Thu, 6 Jan 2022 12:03:28 -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=BsHjBj2qBnAdsRaSdIbvPX5mZs9cMTkKpJXZ9AsuSgo=; b=DkvmVFB5J4XzLtgr9Q7q6Jdmf6IxbmTIzLwFE7uaT6qUba3ptB52XkNUjj0hbmVloGUM 94n6GjmzpSYSol41O7eXO8G+kxo3kmndVAVd7948lsAAQIaD4AiAAenhcl23rL9R6K0s zonYmk65iFl1hbwaVlJc6LP+eN0qHanOxFE= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3de4vv907w-8 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 06 Jan 2022 12:03:28 -0800 Received: from twshared13833.42.prn1.facebook.com (2620:10d:c0a8:1b::d) by mail.thefacebook.com (2620:10d:c0a8:83::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Thu, 6 Jan 2022 12:03:25 -0800 Received: by devbig921.prn2.facebook.com (Postfix, from userid 132113) id 3225815AB142; Thu, 6 Jan 2022 12:00:41 -0800 (PST) From: Christy Lee To: , , CC: , , , , , , , Subject: [PATCH bpf-next v2 0/2] perf: stop using deprecated bpf APIs Date: Thu, 6 Jan 2022 12:00:30 -0800 Message-ID: <20220106200032.3067127-1-christylee@fb.com> X-Mailer: git-send-email 2.30.2 X-FB-Internal: Safe Content-Type: text/plain X-Proofpoint-GUID: BqA0LJ0uuubp-y4uPDcgmXF3NLjMZVkb X-Proofpoint-ORIG-GUID: BqA0LJ0uuubp-y4uPDcgmXF3NLjMZVkb 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.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-06_08,2022-01-06_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=fb_outbound_notspam policy=fb_outbound score=0 bulkscore=0 phishscore=0 spamscore=0 impostorscore=0 mlxlogscore=750 clxscore=1015 lowpriorityscore=0 mlxscore=0 adultscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201060126 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: ---------- 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(-) -- 2.30.2