From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Ignatov Subject: [PATCH bpf-next v2 0/4] libbpf: ABI versioning and documentation Date: Fri, 23 Nov 2018 16:44:31 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Cc: Andrey Ignatov , , , , , To: Return-path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:39558 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728551AbeKXLbV (ORCPT ); Sat, 24 Nov 2018 06:31:21 -0500 Received: from pps.filterd (m0044012.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wAO0iR4K017968 for ; Fri, 23 Nov 2018 16:44:56 -0800 Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2nxn2qh43f-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 23 Nov 2018 16:44:56 -0800 Sender: netdev-owner@vger.kernel.org List-ID: This patch set adds ABI versioning and documentation to libbpf. Patch 1 renames btf_get_from_id to btf__get_from_id to follow naming convention. Patch 2 adds version script and has more details on ABI versioning. Patch 3 adds simple check that all global symbols are versioned. Patch 4 documents a few aspects of libbpf API and ABI in dev process. v1->v2: * add patch from Martin KaFai Lau to rename btf_get_from_id; * add documentation for libbpf API and ABI. Andrey Ignatov (3): libbpf: Add version script for DSO libbpf: Verify versioned symbols libbpf: Document API and ABI conventions Martin KaFai Lau (1): libbpf: Name changing for btf_get_from_id tools/bpf/bpftool/map.c | 4 +- tools/bpf/bpftool/prog.c | 2 +- tools/lib/bpf/Makefile | 23 +++- tools/lib/bpf/README.rst | 139 +++++++++++++++++++++++++ tools/lib/bpf/btf.c | 2 +- tools/lib/bpf/btf.h | 2 +- tools/lib/bpf/libbpf.map | 121 +++++++++++++++++++++ tools/testing/selftests/bpf/test_btf.c | 2 +- 8 files changed, 287 insertions(+), 8 deletions(-) create mode 100644 tools/lib/bpf/README.rst create mode 100644 tools/lib/bpf/libbpf.map -- 2.17.1