aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.c
diff options
context:
space:
mode:
authorLarysa Zaremba <[email protected]>2022-05-13 12:17:43 +0000
committerAndrii Nakryiko <[email protected]>2022-05-13 23:07:53 +0000
commit418fbe82578e2889dcc2c0ae4d367ea4e28dd05c (patch)
tree140f329c224fbe8ee0b59c3db64d7aec459f5dbb /tools/lib/bpf/libbpf.c
parentbpf: Add MEM_UNINIT as a bpf_type_flag (diff)
downloadkernel-418fbe82578e2889dcc2c0ae4d367ea4e28dd05c.tar.gz
kernel-418fbe82578e2889dcc2c0ae4d367ea4e28dd05c.zip
bpftool: Use sysfs vmlinux when dumping BTF by ID
Currently, dumping almost all BTFs specified by id requires using the -B option to pass the base BTF. For kernel module BTFs the vmlinux BTF sysfs path should work. This patch simplifies dumping by ID usage by loading vmlinux BTF from sysfs as base, if base BTF was not specified and the ID corresponds to a kernel module BTF. Signed-off-by: Larysa Zaremba <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Reviewed-by: Alexander Lobakin <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions