linux-kernelorg-stable/tools/bpf/bpftool
Jiayuan Chen 1ae7a84ed8 bpftool: Add support for custom BTF path in prog load/loadall
This patch exposes the btf_custom_path feature to bpftool, allowing users
to specify a custom BTF file when loading BPF programs using prog load or
prog loadall commands.

The argument 'btf_custom_path' in libbpf is used for those kernels that
don't have CONFIG_DEBUG_INFO_BTF enabled but still want to perform CO-RE
relocations.

Suggested-by: Quentin Monnet <qmo@kernel.org>
Reviewed-by: Quentin Monnet <qmo@kernel.org>
Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev>
Link: https://lore.kernel.org/r/20250516144708.298652-1-jiayuan.chen@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2025-05-27 10:31:20 -07:00
..
Documentation bpftool: Add support for custom BTF path in prog load/loadall 2025-05-27 10:31:20 -07:00
bash-completion bpftool: Add support for custom BTF path in prog load/loadall 2025-05-27 10:31:20 -07:00
skeleton
.gitignore
Makefile bpf-next-6.15 2025-03-30 12:43:03 -07:00
btf.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
btf_dumper.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
cfg.c bpftool: Fix control flow graph segfault during edge creation 2025-01-10 14:16:13 -08:00
cfg.h
cgroup.c bpftool: Fix cgroup command to only show cgroup bpf programs 2025-05-08 11:34:56 -07:00
common.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
feature.c bpftool: Probe for ISA v4 instruction set extension 2024-12-12 17:25:17 +01:00
gen.c bpftool: Using the right format specifiers 2025-02-10 16:08:13 -08:00
iter.c
jit_disasm.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
json_writer.c
json_writer.h
link.c bpftool: Display ref_ctr_offset for uprobe link info 2025-05-09 13:01:08 -07:00
main.c bpftool: Using the right format specifiers 2025-02-10 16:08:13 -08:00
main.h
map.c bpftool: Check map name length when map create 2025-02-13 20:11:38 -08:00
map_perf_ring.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
net.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
netlink_dumper.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
netlink_dumper.h
perf.c
pids.c
prog.c bpftool: Add support for custom BTF path in prog load/loadall 2025-05-27 10:31:20 -07:00
struct_ops.c
tracelog.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
xlated_dumper.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
xlated_dumper.h