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 X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8942C2D0A3 for ; Fri, 6 Nov 2020 05:25:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 378E6208C3 for ; Fri, 6 Nov 2020 05:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604640355; bh=v06R0TkAEEK1hQkJ7kUy0HWCcE7L4d6SdmsRAl9pKks=; h=From:To:CC:Subject:Date:List-ID:From; b=CFJLruVgU53MX4SIpHPT+BUC970WJmw7EqetUe2oWNPan/nSUkegM5B2kNQhQRr/C 2Ta3i4uUQMOfYFfxE1iDKF2y52x3YKTXzgZJzNqT5mInBIlQN9WNdNebOUc6HjanLJ jXBxjpXq9n4jN2LAkmvx8yqxQNjMTr42WIhThVhs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725776AbgKFFZy convert rfc822-to-8bit (ORCPT ); Fri, 6 Nov 2020 00:25:54 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:6786 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725835AbgKFFZy (ORCPT ); Fri, 6 Nov 2020 00:25:54 -0500 Received: from pps.filterd (m0109332.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0A65OAtB001456 for ; Thu, 5 Nov 2020 21:25:53 -0800 Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 34mx9p8e64-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 05 Nov 2020 21:25:53 -0800 Received: from intmgw003.08.frc2.facebook.com (2620:10d:c0a8:1b::d) by mail.thefacebook.com (2620:10d:c0a8:83::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Thu, 5 Nov 2020 21:25:52 -0800 Received: by devbig012.ftw2.facebook.com (Postfix, from userid 137359) id 5DC732EC8EF6; Thu, 5 Nov 2020 21:25:51 -0800 (PST) From: Andrii Nakryiko To: , , CC: , Subject: [PATCH dwarves 0/4] Add split BTF support to pahole Date: Thu, 5 Nov 2020 21:25:45 -0800 Message-ID: <20201106052549.3782099-1-andrii@kernel.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT X-FB-Internal: Safe Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-06_01:2020-11-05,2020-11-06 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 lowpriorityscore=0 phishscore=0 spamscore=0 malwarescore=0 impostorscore=0 mlxscore=0 mlxlogscore=677 suspectscore=8 clxscore=1015 adultscore=0 priorityscore=1501 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011060037 X-FB-Internal: deliver Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org Add ability to generate split BTF (for kernel modules), as well as load split BTF. --btf_base argument is added to specify base BTF for split BTF. This works for both btf_loader and btf_encoder. Andrii Nakryiko (4): btf_encoder: fix array index type numbering libbtf: improve variable naming and error reporting when writing out BTF libbpf: update libbpf submodlue reference to latest master btf: add support for split BTF loading and encoding btf_encoder.c | 15 ++++++++------- btf_loader.c | 2 +- lib/bpf | 2 +- libbtf.c | 43 +++++++++++++++++++++++++++---------------- libbtf.h | 4 +++- pahole.c | 23 +++++++++++++++++++++++ 6 files changed, 63 insertions(+), 26 deletions(-) -- 2.24.1