From 3a4e26307d0f9b227e3ebd28b443a1a715e4e17d Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Wed, 27 Apr 2022 12:31:35 -0700 Subject: [PATCH] sync: latest libbpf changes from kernel Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: 34ba23b44c664792a4308ec37b5788a3162944ec Checkpoint bpf-next commit: d54d06a4c4bc5d76815d02e4b041b31d9dbb3fef Baseline bpf commit: 8de8b71b787f38983d414d2dba169a3bfefa668a Checkpoint bpf commit: ba3beec2ec1d3b4fd8672ca6e781dac4b3267f6e Alan Maguire (1): libbpf: Usdt aarch64 arg parsing support Andrii Nakryiko (10): libbpf: Support opting out from autoloading BPF programs declaratively libbpf: Teach bpf_link_create() to fallback to bpf_raw_tracepoint_open() libbpf: Fix anonymous type check in CO-RE logic libbpf: Drop unhelpful "program too large" guess libbpf: Fix logic for finding matching program for CO-RE relocation libbpf: Avoid joining .BTF.ext data with BPF programs by section name libbpf: Record subprog-resolved CO-RE relocations unconditionally libbpf: Refactor CO-RE relo human description formatting routine libbpf: Simplify bpf_core_parse_spec() signature libbpf: Fix up verifier log for unguarded failed CO-RE relos Gaosheng Cui (1): libbpf: Remove redundant non-null checks on obj_elf Grant Seltzer (4): libbpf: Add error returns to two API functions libbpf: Update API functions usage to check error libbpf: Add documentation to API functions libbpf: Improve libbpf API documentation link position Kumar Kartikeya Dwivedi (2): bpf: Allow storing referenced kptr in map libbpf: Add kptr type tag macros to bpf_helpers.h Pu Lehui (2): libbpf: Fix usdt_cookie being cast to 32 bits libbpf: Support riscv USDT argument parsing logic Runqing Yang (1): libbpf: Fix a bug with checking bpf_probe_read_kernel() support in old kernels Vladimir Isaev (1): libbpf: Add ARC support to bpf_tracing.h Yuntao Wang (1): libbpf: Remove unnecessary type cast docs/index.rst | 3 +- include/uapi/linux/bpf.h | 12 ++ src/bpf.c | 34 ++++- src/bpf_helpers.h | 7 + src/bpf_tracing.h | 23 +++ src/btf.c | 9 +- src/libbpf.c | 322 ++++++++++++++++++++++++++++++--------- src/libbpf.h | 82 +++++++++- src/libbpf_internal.h | 9 +- src/relo_core.c | 104 +++++++------ src/relo_core.h | 6 + src/usdt.c | 191 ++++++++++++++++++++++- 12 files changed, 668 insertions(+), 134 deletions(-) -- 2.30.2 --- 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 b06894b..c154e42 100644 --- a/BPF-CHECKPOINT-COMMIT +++ b/BPF-CHECKPOINT-COMMIT @@ -1 +1 @@ -8de8b71b787f38983d414d2dba169a3bfefa668a +ba3beec2ec1d3b4fd8672ca6e781dac4b3267f6e diff --git a/CHECKPOINT-COMMIT b/CHECKPOINT-COMMIT index 31ad88e..840159a 100644 --- a/CHECKPOINT-COMMIT +++ b/CHECKPOINT-COMMIT @@ -1 +1 @@ -34ba23b44c664792a4308ec37b5788a3162944ec +d54d06a4c4bc5d76815d02e4b041b31d9dbb3fef