From 4b492df97e5176e41a8c895a77871dfcc74aa466 Mon Sep 17 00:00:00 2001 From: Song Liu Date: Thu, 16 Feb 2023 14:31:02 -0800 Subject: [PATCH] sync: latest libbpf changes from kernel Syncing latest libbpf commits from kernel repository. Baseline bpf-next commit: a5f6b9d577eba18601c14bba2dbff4a9b76af962 Checkpoint bpf-next commit: 6c20822fada1b8adb77fa450d03a0d449686a4a9 Baseline bpf commit: e8c8fd9b8393d7064152c8806f5ac446d760a23e Checkpoint bpf commit: 6c20822fada1b8adb77fa450d03a0d449686a4a9 Dave Marchevsky (1): bpf: Add basic bpf_rb_{root,node} support Florian Lehner (1): bpf: fix typo in header for bpf_perf_prog_read_value Grant Seltzer (2): libbpf: Fix malformed documentation formatting libbpf: Add documentation to map pinning API functions Hao Xiang (1): libbpf: Correctly set the kernel code version in Debian kernel. Ilya Leoshkevich (4): libbpf: Simplify barrier_var() libbpf: Fix unbounded memory access in bpf_usdt_arg() libbpf: Fix BPF_PROBE_READ{_STR}_INTO() on s390x libbpf: Fix alen calculation in libbpf_nla_dump_errormsg() Jon Doron (1): libbpf: Add sample_period to creation options Lorenzo Bianconi (3): libbpf: add the capability to specify netlink proto in libbpf_netlink_send_recv libbpf: add API to get XDP/XSK supported features libbpf: Always use libbpf_err to return an error in bpf_xdp_query() Randy Dunlap (1): Documentation: bpf: correct spelling Tiezhu Yang (1): tools/bpf: Use tab instead of white spaces to sync bpf.h docs/libbpf_naming_convention.rst | 6 +- include/uapi/linux/bpf.h | 17 ++++- src/bpf_core_read.h | 4 +- src/bpf_helpers.h | 2 +- src/libbpf.c | 46 ++---------- src/libbpf.h | 97 +++++++++++++++++++++--- src/libbpf_probes.c | 83 +++++++++++++++++++++ src/netlink.c | 118 +++++++++++++++++++++++++++--- src/nlattr.c | 2 +- src/nlattr.h | 12 +++ src/usdt.bpf.h | 5 +- 11 files changed, 321 insertions(+), 71 deletions(-) Signed-off-by: Song Liu --- 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 bda569a..6712efa 100644 --- a/BPF-CHECKPOINT-COMMIT +++ b/BPF-CHECKPOINT-COMMIT @@ -1 +1 @@ -e8c8fd9b8393d7064152c8806f5ac446d760a23e +6c20822fada1b8adb77fa450d03a0d449686a4a9 diff --git a/CHECKPOINT-COMMIT b/CHECKPOINT-COMMIT index 7f76156..6712efa 100644 --- a/CHECKPOINT-COMMIT +++ b/CHECKPOINT-COMMIT @@ -1 +1 @@ -a5f6b9d577eba18601c14bba2dbff4a9b76af962 +6c20822fada1b8adb77fa450d03a0d449686a4a9