2021-02-20 17:13 UTC+0000 ~ grantseltzer <grantselt...@gmail.com> > This adds the CONFIG_DEBUG_INFO_BTF kernel compile option to output of > the bpftool feature command. This is relevant for developers that want > to use libbpf to account for data structure definition differences > between kernels. > > Signed-off-by: grantseltzer <grantselt...@gmail.com> > --- > tools/bpf/bpftool/feature.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/bpf/bpftool/feature.c b/tools/bpf/bpftool/feature.c > index 359960a8f..b90cc6832 100644 > --- a/tools/bpf/bpftool/feature.c > +++ b/tools/bpf/bpftool/feature.c > @@ -336,6 +336,8 @@ static void probe_kernel_image_config(const char > *define_prefix) > { "CONFIG_BPF_JIT", }, > /* Avoid compiling eBPF interpreter (use JIT only) */ > { "CONFIG_BPF_JIT_ALWAYS_ON", }, > + /* Kernel BTF debug information available */ > + { "CONFIG_DEBUG_INFO_BTF", }, > > /* cgroups */ > { "CONFIG_CGROUPS", }, >
Thanks for the change! Reviewed-by: Quentin Monnet <quen...@isovalent.com> (Note: the date of the email is not correct, but I discussed offline with Grant and this is now sorted out for future submissions.) Quentin