From 7c5583ab2d94dfb669c6fe8920bc6010d5e503f4 Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Thu, 19 Dec 2019 12:59:57 -0800 Subject: [PATCH] sync: latest libbpf changes from kernel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: 679152d3a32e305c213f83160c328c37566ae8bc Checkpoint bpf-next commit: 7745ff9842617323adbe24e71c495d5ebd9aa352 Baseline bpf commit: fe3300897cbfd76c6cb825776e5ac0ca50a91ca4 Checkpoint bpf commit: 1148f9adbe71415836a18a36c1b4ece999ab0973 Andrii Nakryiko (26): libbpf: Extract and generalize CPU mask parsing logic libbpf: Don't attach perf_buffer to offline/missing CPUs libbpf: Don't require root for bpf_object__open() libbpf: Add generic bpf_program__attach() libbpf: Move non-public APIs from libbpf.h to libbpf_internal.h libbpf: Add BPF_EMBED_OBJ macro for embedding BPF .o files libbpf: Extract common user-facing helpers libbpf: Expose btf__align_of() API libbpf: Expose BTF-to-C type declaration emitting API libbpf: Expose BPF program's function name libbpf: Refactor global data map initialization libbpf: Postpone BTF ID finding for TRACING programs to load phase libbpf: Reduce log level of supported section names dump libbpf: Add BPF object skeleton support libbpf: Extract internal map names into constants libbpf: Support libbpf-provided extern variables bpftool: Generate externs datasec in BPF skeleton libbpf: Support flexible arrays in CO-RE libbpf: Add zlib as a dependency in pkg-config template libbpf: Reduce log level for custom section names libbpf: Remove BPF_EMBED_OBJ macro from libbpf.h libbpf: Add bpf_link__disconnect() API to preserve underlying BPF resource libbpf: Put Kconfig externs into .kconfig section libbpf: Allow to augment system Kconfig through extra optional config libbpf: BTF is required when externs are present libbpf: Fix another __u64 printf warning Jakub Sitnicki (1): libbpf: Recognize SK_REUSEPORT programs from section name Prashant Bhole (1): libbpf: Fix build by renaming variables Toke Høiland-Jørgensen (4): libbpf: Print hint about ulimit when getting permission denied error libbpf: Fix libbpf_common.h when installing libbpf through 'make install' libbpf: Add missing newline in opts validation macro libbpf: Fix printing of ulimit value include/uapi/linux/btf.h | 7 +- src/bpf.h | 6 +- src/bpf_helpers.h | 11 + src/btf.c | 48 +- src/btf.h | 29 +- src/btf_dump.c | 115 ++- src/libbpf.c | 1673 ++++++++++++++++++++++++++++++++------ src/libbpf.h | 107 +-- src/libbpf.map | 12 + src/libbpf.pc.template | 2 +- src/libbpf_common.h | 40 + src/libbpf_internal.h | 21 +- 12 files changed, 1678 insertions(+), 393 deletions(-) create mode 100644 src/libbpf_common.h -- 2.17.1 --- BPF-CHECKPOINT-COMMIT | 2 +- CHECKPOINT-COMMIT | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BPF-CHECKPOINT-COMMIT b/BPF-CHECKPOINT-COMMIT index f331728..f6bc355 100644 --- a/BPF-CHECKPOINT-COMMIT +++ b/BPF-CHECKPOINT-COMMIT @@ -1 +1 @@ -fe3300897cbfd76c6cb825776e5ac0ca50a91ca4 +1148f9adbe71415836a18a36c1b4ece999ab0973 diff --git a/CHECKPOINT-COMMIT b/CHECKPOINT-COMMIT index d973725..df45150 100644 --- a/CHECKPOINT-COMMIT +++ b/CHECKPOINT-COMMIT @@ -1 +1 @@ -679152d3a32e305c213f83160c328c37566ae8bc +7745ff9842617323adbe24e71c495d5ebd9aa352