From dc4e7076ad134559eb1051d353570f74cfd5606d Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Thu, 23 Mar 2023 11:30:56 -0700 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: b8a2e3f93d412114a1539ea97b59b3e6ed6e1f9a Checkpoint bpf-next commit: 226bc6ae6405c46a6e9865835c36a1d45fc0b3bf Baseline bpf commit: a33a6eaa19d3af261e8708bfc8ba62020703117f Checkpoint bpf commit: 915efd8a446b74442039d31689d5d863caf82517 Alexei Starovoitov (5): libbpf: Fix relocation of kfunc ksym in ld_imm64 insn. libbpf: Introduce bpf_ksym_exists() macro. libbpf: Fix ld_imm64 copy logic for ksym in light skeleton. libbpf: Rename RELO_EXTERN_VAR/FUNC. libbpf: Support kfunc detection in light skeleton. Daniel Müller (1): libbpf: Ignore warnings about "inefficient alignment" Kui-Feng Lee (5): bpf: Create links for BPF struct_ops maps. libbpf: Create a bpf_link in bpf_map__attach_struct_ops(). bpf: Update the struct_ops of a bpf_link. libbpf: Update a bpf_link with another struct_ops. libbpf: Use .struct_ops.link section to indicate a struct_ops with a link. Liu Pan (1): libbpf: Explicitly call write to append content to file Sreevani Sreejith (1): bpf, docs: Libbpf overview documentation docs/index.rst | 25 +++-- docs/libbpf_overview.rst | 228 +++++++++++++++++++++++++++++++++++++ include/uapi/linux/bpf.h | 33 +++++- src/bpf.c | 8 +- src/bpf.h | 3 +- src/bpf_gen_internal.h | 4 +- src/bpf_helpers.h | 5 + src/gen_loader.c | 48 ++++---- src/libbpf.c | 235 +++++++++++++++++++++++++++++---------- src/libbpf.h | 1 + src/libbpf.map | 1 + src/zip.c | 6 + 12 files changed, 501 insertions(+), 96 deletions(-) create mode 100644 docs/libbpf_overview.rst Signed-off-by: Andrii Nakryiko --- 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 bdb3a3a..db6c0fa 100644 --- a/BPF-CHECKPOINT-COMMIT +++ b/BPF-CHECKPOINT-COMMIT @@ -1 +1 @@ -a33a6eaa19d3af261e8708bfc8ba62020703117f +915efd8a446b74442039d31689d5d863caf82517 diff --git a/CHECKPOINT-COMMIT b/CHECKPOINT-COMMIT index 79e0a33..c803b12 100644 --- a/CHECKPOINT-COMMIT +++ b/CHECKPOINT-COMMIT @@ -1 +1 @@ -b8a2e3f93d412114a1539ea97b59b3e6ed6e1f9a +226bc6ae6405c46a6e9865835c36a1d45fc0b3bf