From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin KaFai Lau Subject: [PATCH bpf-next 0/7] BTF uapi cleanup Date: Fri, 18 May 2018 17:16:43 -0700 Message-ID: <20180519001650.4043980-1-kafai@fb.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Alexei Starovoitov , Daniel Borkmann , To: Return-path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:59214 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751860AbeESAQ6 (ORCPT ); Fri, 18 May 2018 20:16:58 -0400 Received: from pps.filterd (m0109333.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4J0FiLn009824 for ; Fri, 18 May 2018 17:16:58 -0700 Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2j28yd013f-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 18 May 2018 17:16:57 -0700 Sender: netdev-owner@vger.kernel.org List-ID: This patch set makes some changes to cleanup the unused bits in BTF uapi. It also makes the btf_header extensible. Please see individual patches for details. Martin KaFai Lau (7): bpf: Expose check_uarg_tail_zero() bpf: btf: Change how section is supported in btf_header bpf: btf: Check array->index_type bpf: btf: Remove unused bits from uapi/linux/btf.h bpf: btf: Rename btf_key_id and btf_value_id in bpf_map_info bpf: btf: Sync bpf.h and btf.h to tools/include/uapi/linux/ bpf: btf: Add tests for the btf uapi changes include/linux/bpf.h | 6 +- include/uapi/linux/bpf.h | 8 +- include/uapi/linux/btf.h | 28 +- kernel/bpf/arraymap.c | 2 +- kernel/bpf/btf.c | 318 ++++++++++++++------ kernel/bpf/syscall.c | 32 +- tools/include/uapi/linux/bpf.h | 8 +- tools/include/uapi/linux/btf.h | 28 +- tools/lib/bpf/bpf.c | 4 +- tools/lib/bpf/bpf.h | 4 +- tools/lib/bpf/btf.c | 5 +- tools/lib/bpf/libbpf.c | 34 +-- tools/lib/bpf/libbpf.h | 4 +- tools/testing/selftests/bpf/test_btf.c | 528 ++++++++++++++++++++++++++------- 14 files changed, 724 insertions(+), 285 deletions(-) -- 2.9.5