On Fri, 2024-05-10 at 11:30 +0100, Alan Maguire wrote: > If the -R <base_btf> option is used, we can display BTF that has been > generated with distilled base BTF in its relocated form. For example > for bpf_testmod.ko (which is built as an out-of-tree module, so has > a distilled .BTF.base section: > > bpftool btf dump file bpf_testmod.ko > > Alternatively, we can display content relocated with > (a possibly changed) base BTF via > > bpftool btf dump -R /sys/kernel/btf/vmlinux bpf_testmod.ko > > The latter mirrors how the kernel will handle such split > BTF; it relocates its representation with the running > kernel, and if successful, renumbers BTF ids to reference > the current vmlinux BTF. > > Signed-off-by: Alan Maguire <alan.maguire@xxxxxxxxxx> > --- Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx>