Thread (4 messages) 4 messages, 4 authors, 2021-02-23

Re: [PATCH v4 bpf-next] Add CONFIG_DEBUG_INFO_BTF and CONFIG_DEBUG_INFO_BTF_MODULES check to bpftool feature command

From: Andrii Nakryiko <hidden>
Date: 2021-02-23 06:38:39
Also in: bpf

On Mon, Feb 22, 2021 at 11:59 AM grantseltzer [off-list ref] wrote:
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 <redacted>
---
Applied to bpf-next, but adjusted subject to shorter:

"Add kernel/modules BTF presence checks to bpftool feature command"
quoted hunk ↗ jump to hunk
 tools/bpf/bpftool/feature.c | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/tools/bpf/bpftool/feature.c b/tools/bpf/bpftool/feature.c
index 359960a8f..40a88df27 100644
--- a/tools/bpf/bpftool/feature.c
+++ b/tools/bpf/bpftool/feature.c
@@ -336,6 +336,10 @@ 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", },
+               /* Kernel module BTF debug information available */
+               { "CONFIG_DEBUG_INFO_BTF_MODULES", },

                /* cgroups */
                { "CONFIG_CGROUPS", },
--
2.29.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help