summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorLarysa Zaremba <larysa.zaremba@intel.com>2022-05-13 14:17:43 +0200
committerAndrii Nakryiko <andrii@kernel.org>2022-05-13 16:07:53 -0700
commit418fbe82578e2889dcc2c0ae4d367ea4e28dd05c (patch)
tree140f329c224fbe8ee0b59c3db64d7aec459f5dbb /tools/lib
parent16d1e00c7e8a4950e914223b3112144289a82913 (diff)
downloadlinux-418fbe82578e2889dcc2c0ae4d367ea4e28dd05c.tar.bz2
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 <larysa.zaremba@intel.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Reviewed-by: Alexander Lobakin <alexandr.lobakin@intel.com> Link: https://lore.kernel.org/bpf/20220513121743.12411-1-larysa.zaremba@intel.com
Diffstat (limited to 'tools/lib')
0 files changed, 0 insertions, 0 deletions