From 75452cd29066d829d0fbd9fe60cb40952fe7e181 Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Fri, 13 May 2022 11:31:34 -0700 Subject: [PATCH] sync: latest libbpf changes from kernel Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: d54d06a4c4bc5d76815d02e4b041b31d9dbb3fef Checkpoint bpf-next commit: b2531d4bdce19f28364b45aac9132e153b1f23a4 Baseline bpf commit: ba3beec2ec1d3b4fd8672ca6e781dac4b3267f6e Checkpoint bpf commit: f3f19f939c11925dadd3f4776f99f8c278a7017b Andrii Nakryiko (12): libbpf: Allow "incomplete" basic tracing SEC() definitions libbpf: Support target-less SEC() definitions for BTF-backed programs libbpf: Append "..." in fixed up log if CO-RE spec is truncated libbpf: Use libbpf_mem_ensure() when allocating new map libbpf: Allow to opt-out from creating BPF maps libbpf: Make __kptr and __kptr_ref unconditionally use btf_type_tag() attr libbpf: Improve usability of field-based CO-RE helpers libbpf: Complete field-based CO-RE helpers with field offset helper libbpf: Provide barrier() and barrier_var() in bpf_helpers.h libbpf: Automatically fix up BPF_MAP_TYPE_RINGBUF size, if necessary libbpf: Clean up ringbuf size adjustment implementation libbpf: Add safer high-level wrappers for map operations Feng Zhou (1): bpf: add bpf_map_lookup_percpu_elem for percpu map Jiri Olsa (1): libbpf: Add bpf_program__set_insns function Kaixi Fan (1): bpf: Add source ip in "struct bpf_tunnel_key" Kui-Feng Lee (3): bpf, x86: Generate trampolines from bpf_tramp_links bpf, x86: Attach a cookie to fentry/fexit/fmod_ret/lsm. libbpf: Assign cookies to links in libbpf. include/uapi/linux/bpf.h | 23 ++ src/bpf.c | 22 ++ src/bpf.h | 4 + src/bpf_core_read.h | 37 ++- src/bpf_helpers.h | 29 ++- src/libbpf.c | 473 ++++++++++++++++++++++++++++++++------- src/libbpf.h | 156 +++++++++++++ src/libbpf.map | 12 +- 8 files changed, 659 insertions(+), 97 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 c154e42..48e50cc 100644 --- a/BPF-CHECKPOINT-COMMIT +++ b/BPF-CHECKPOINT-COMMIT @@ -1 +1 @@ -ba3beec2ec1d3b4fd8672ca6e781dac4b3267f6e +f3f19f939c11925dadd3f4776f99f8c278a7017b diff --git a/CHECKPOINT-COMMIT b/CHECKPOINT-COMMIT index 840159a..32b3d19 100644 --- a/CHECKPOINT-COMMIT +++ b/CHECKPOINT-COMMIT @@ -1 +1 @@ -d54d06a4c4bc5d76815d02e4b041b31d9dbb3fef +b2531d4bdce19f28364b45aac9132e153b1f23a4