From 4f875865b772c4f534bc0a665bbd988193825bd4 Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Wed, 6 Mar 2024 11:44:53 -0800 Subject: [PATCH] sync: latest libbpf changes from kernel Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: 2ab256e93249f5ac1da665861aa0f03fb4208d9c Checkpoint bpf-next commit: 7d763bc4a44a51e48dde406d6c6c8a26a60ec647 Baseline bpf commit: dced881ead78e4d6add3735d02a9186ba2415630 Checkpoint bpf commit: 2487007aa3b9fafbd2cb14068f49791ce1d7ede5 Aahil Awatramani (1): bonding: Add independent control state machine Alexei Starovoitov (1): bpf: Introduce may_goto instruction Chen Shen (1): libbpf: Correct debug message in btf__load_vmlinux_btf Eduard Zingerman (7): libbpf: Allow version suffixes (___smth) for struct_ops types libbpf: Tie struct_ops programs to kernel BTF ids, not to local ids libbpf: Honor autocreate flag for struct_ops maps libbpf: Sync progs autoload with maps autocreate for struct_ops maps libbpf: Replace elf_state->st_ops_* fields with SEC_ST_OPS sec_type libbpf: Struct_ops in SEC("?.struct_ops") / SEC("?.struct_ops.link") libbpf: Rewrite btf datasec names starting from '?' Kees Cook (1): bpf: Replace bpf_lpm_trie_key 0-length array with flexible array Kui-Feng Lee (2): libbpf: Set btf_value_type_id of struct bpf_map for struct_ops. libbpf: Convert st_ops->data to shadow type. include/uapi/linux/bpf.h | 24 +++- include/uapi/linux/if_link.h | 1 + src/btf.c | 2 +- src/features.c | 22 +++ src/libbpf.c | 252 +++++++++++++++++++++++++++-------- src/libbpf_internal.h | 2 + 6 files changed, 242 insertions(+), 61 deletions(-) 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 be8ecbf..def0a92 100644 --- a/BPF-CHECKPOINT-COMMIT +++ b/BPF-CHECKPOINT-COMMIT @@ -1 +1 @@ -dced881ead78e4d6add3735d02a9186ba2415630 +2487007aa3b9fafbd2cb14068f49791ce1d7ede5 diff --git a/CHECKPOINT-COMMIT b/CHECKPOINT-COMMIT index f173859..a0c8df7 100644 --- a/CHECKPOINT-COMMIT +++ b/CHECKPOINT-COMMIT @@ -1 +1 @@ -2ab256e93249f5ac1da665861aa0f03fb4208d9c +e63985ecd22681c7f5975f2e8637187a326b6791