* [PATCH bpf] bpf,kconfig: fix DEBUG_INFO_BTF_MODULES Kconfig definition
@ 2024-04-04 22:03 Andrii Nakryiko
2024-04-05 13:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Andrii Nakryiko @ 2024-04-04 22:03 UTC (permalink / raw)
To: bpf, ast, daniel, martin.lau; +Cc: andrii, kernel-team, Vincent Li
Turns out that due to CONFIG_DEBUG_INFO_BTF_MODULES not having an
explicitly specified "menu item name" in Kconfig, it's basically
impossible to turn it off (see [0]).
This patch fixes the issue by defining menu name for
CONFIG_DEBUG_INFO_BTF_MODULES, which makes it actually adjustable and
independent of CONFIG_DEBUG_INFO_BTF, in the sense that one can have
DEBUG_INFO_BTF=y and DEBUG_INFO_BTF_MODULES=n.
We still keep it as defaulting to Y, of course.
[0] https://lore.kernel.org/bpf/CAK3+h2xiFfzQ9UXf56nrRRP=p1+iUxGoEP5B+aq9MDT5jLXDSg@mail.gmail.com/
Reported-by: Vincent Li <vincent.mc.li@gmail.com>
Fixes: 5f9ae91f7c0d ("kbuild: Build kernel module BTFs if BTF is enabled and pahole supports it")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
---
lib/Kconfig.debug | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index c63a5fbf1f1c..291185f54ee4 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -375,7 +375,7 @@ config DEBUG_INFO_SPLIT
Incompatible with older versions of ccache.
config DEBUG_INFO_BTF
- bool "Generate BTF typeinfo"
+ bool "Generate BTF type information"
depends on !DEBUG_INFO_SPLIT && !DEBUG_INFO_REDUCED
depends on !GCC_PLUGIN_RANDSTRUCT || COMPILE_TEST
depends on BPF_SYSCALL
@@ -408,7 +408,8 @@ config PAHOLE_HAS_LANG_EXCLUDE
using DEBUG_INFO_BTF_MODULES.
config DEBUG_INFO_BTF_MODULES
- def_bool y
+ bool "Generate BTF type information for kernel modules"
+ default y
depends on DEBUG_INFO_BTF && MODULES && PAHOLE_HAS_SPLIT_BTF
help
Generate compact split BTF type information for kernel modules.
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH bpf] bpf,kconfig: fix DEBUG_INFO_BTF_MODULES Kconfig definition
2024-04-04 22:03 [PATCH bpf] bpf,kconfig: fix DEBUG_INFO_BTF_MODULES Kconfig definition Andrii Nakryiko
@ 2024-04-05 13:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-04-05 13:20 UTC (permalink / raw)
To: Andrii Nakryiko; +Cc: bpf, ast, daniel, martin.lau, kernel-team, vincent.mc.li
Hello:
This patch was applied to bpf/bpf.git (master)
by Daniel Borkmann <daniel@iogearbox.net>:
On Thu, 4 Apr 2024 15:03:44 -0700 you wrote:
> Turns out that due to CONFIG_DEBUG_INFO_BTF_MODULES not having an
> explicitly specified "menu item name" in Kconfig, it's basically
> impossible to turn it off (see [0]).
>
> This patch fixes the issue by defining menu name for
> CONFIG_DEBUG_INFO_BTF_MODULES, which makes it actually adjustable and
> independent of CONFIG_DEBUG_INFO_BTF, in the sense that one can have
> DEBUG_INFO_BTF=y and DEBUG_INFO_BTF_MODULES=n.
>
> [...]
Here is the summary with links:
- [bpf] bpf,kconfig: fix DEBUG_INFO_BTF_MODULES Kconfig definition
https://git.kernel.org/bpf/bpf/c/229087f6f1dc
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-05 13:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-04 22:03 [PATCH bpf] bpf,kconfig: fix DEBUG_INFO_BTF_MODULES Kconfig definition Andrii Nakryiko
2024-04-05 13:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox