From 07ba0eeb8e0a4ed492464af55b0ca89a40161615 Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Fri, 22 Oct 2021 17:39:26 -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: 5319255b8df9271474bc9027cabf82253934f28d Checkpoint bpf-next commit: c825f5fee19caf301d9821cd79abaa734322de26 Baseline bpf commit: 8d6c414cd2fb74aa6812e9bfec6178f8246c4f3a Checkpoint bpf commit: 04f8ef5643bcd8bcde25dfdebef998aea480b2ba Andrii Nakryiko (9): libbpf: Deprecate btf__finalize_data() and move it into libbpf.c libbpf: Extract ELF processing state into separate struct libbpf: Use Elf64-specific types explicitly for dealing with ELF libbpf: Remove assumptions about uniqueness of .rodata/.data/.bss maps libbpf: Support multiple .rodata.* and .data.* BPF maps libbpf: Simplify look up by name of internal maps libbpf: Fix the use of aligned attribute libbpf: Fix overflow in BTF sanity checks libbpf: Fix BTF header parsing checks Dave Marchevsky (2): libbpf: Migrate internal use of bpf_program__get_prog_info_linear bpf: Add verified_insns to bpf_prog_info and fdinfo Hengqi Chen (2): bpf: Add bpf_skc_to_unix_sock() helper libbpf: Add btf__type_cnt() and btf__raw_data() APIs Ilya Leoshkevich (3): libbpf: Fix dumping big-endian bitfields libbpf: Fix dumping non-aligned __int128 libbpf: Fix ptr_is_aligned() usages Mauricio Vásquez (1): libbpf: Fix memory leak in btf__dedup() Stanislav Fomichev (1): libbpf: Use func name when pinning programs with LIBBPF_STRICT_SEC_NAME Yonghong Song (1): bpf: Rename BTF_KIND_TAG to BTF_KIND_DECL_TAG include/uapi/linux/bpf.h | 8 + include/uapi/linux/btf.h | 8 +- src/btf.c | 187 +++----- src/btf.h | 17 +- src/btf_dump.c | 56 ++- src/libbpf.c | 984 ++++++++++++++++++++++++--------------- src/libbpf.map | 4 +- src/libbpf_internal.h | 12 +- src/libbpf_legacy.h | 3 + src/linker.c | 29 +- 10 files changed, 744 insertions(+), 564 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 6226e74..b431f29 100644 --- a/BPF-CHECKPOINT-COMMIT +++ b/BPF-CHECKPOINT-COMMIT @@ -1 +1 @@ -8d6c414cd2fb74aa6812e9bfec6178f8246c4f3a +04f8ef5643bcd8bcde25dfdebef998aea480b2ba diff --git a/CHECKPOINT-COMMIT b/CHECKPOINT-COMMIT index 4d3d8d8..be84d06 100644 --- a/CHECKPOINT-COMMIT +++ b/CHECKPOINT-COMMIT @@ -1 +1 @@ -5319255b8df9271474bc9027cabf82253934f28d +c825f5fee19caf301d9821cd79abaa734322de26