]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add kernel/modules BTF presence checks to bpftool feature command
authorGrant Seltzer <grantseltzer@gmail.com>
Mon, 22 Feb 2021 19:58:46 +0000 (19:58 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 24 Feb 2021 16:24:37 +0000 (17:24 +0100)
commit166002b0f1c2e5467750f4967ff526ead5541318
treeeaece48e6c6e55335c1af28dbf2747b91dcd1c72
parent68d88287b1867cf4d88b95e0314503fec81836c7
bpf: Add kernel/modules BTF presence checks to bpftool feature command

This adds both the CONFIG_DEBUG_INFO_BTF and CONFIG_DEBUG_INFO_BTF_MODULES
kernel compile option to output of the bpftool feature command.

This is relevant for developers that want to account for data structure
definition differences between kernels.

Signed-off-by: Grant Seltzer <grantseltzer@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20210222195846.155483-1-grantseltzer@gmail.com
tools/bpf/bpftool/feature.c