From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin KaFai Lau Subject: [PATCH bpf-next 0/6] Introduce BTF ID Date: Fri, 4 May 2018 14:49:49 -0700 Message-ID: <20180504214955.1058805-1-kafai@fb.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Alexei Starovoitov , Daniel Borkmann , To: Return-path: Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:34958 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751777AbeEDVt6 (ORCPT ); Fri, 4 May 2018 17:49:58 -0400 Received: from pps.filterd (m0001303.ppops.net [127.0.0.1]) by m0001303.ppops.net (8.16.0.22/8.16.0.22) with SMTP id w44LlR28001569 for ; Fri, 4 May 2018 14:49:58 -0700 Received: from mail.thefacebook.com ([199.201.64.23]) by m0001303.ppops.net with ESMTP id 2hryj4r18n-3 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 04 May 2018 14:49:58 -0700 Sender: netdev-owner@vger.kernel.org List-ID: This series introduces BTF ID which is exposed through the new BPF_BTF_GET_FD_BY_ID cmd, new "struct bpf_btf_info" and new members in the "struct bpf_map_info". Please see individual patch for details. Martin KaFai Lau (6): bpf: btf: Avoid WARN_ON when CONFIG_REFCOUNT_FULL=y bpf: btf: Introduce BTF ID bpf: btf: Add struct bpf_btf_info bpf: btf: Some test_btf clean up bpf: btf: Update tools/include/uapi/linux/btf.h with BTF ID bpf: btf: Tests for BPF_OBJ_GET_INFO_BY_FD and BPF_BTF_GET_FD_BY_ID include/linux/btf.h | 2 + include/uapi/linux/bpf.h | 11 + kernel/bpf/btf.c | 136 ++++++++-- kernel/bpf/syscall.c | 41 ++- tools/include/uapi/linux/bpf.h | 11 + tools/lib/bpf/bpf.c | 10 + tools/lib/bpf/bpf.h | 1 + tools/testing/selftests/bpf/test_btf.c | 478 +++++++++++++++++++++++++-------- 8 files changed, 563 insertions(+), 127 deletions(-) -- 2.9.5