BPF List
 help / color / mirror / Atom feed
* [PATCH] selftests/bpf: Drop conflicting DWARF choice from config.x86_64
@ 2026-11-27 18:03 Ricardo B. Marlière (SUSE)
  2026-11-28  1:40 ` Alexei Starovoitov
  0 siblings, 1 reply; 2+ messages in thread
From: Ricardo B. Marlière (SUSE) @ 2026-11-27 18:03 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Eduard Zingerman, Kumar Kartikeya Dwivedi, Martin KaFai Lau,
	Song Liu, Yonghong Song, Jiri Olsa, Emil Tsalapatis,
	Ihor Solodrai, Shuah Khan
  Cc: bpf, linux-kselftest, Ricardo B. Marlière (SUSE)

config sets CONFIG_DEBUG_INFO_DWARF4=y and config.x86_64 sets
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y. Both are members of the same
"Debug information" choice, so on x86_64 the fragments contradict each
other and which one survives depends on the order they are merged.

Neither needs a specific DWARF version; CONFIG_DEBUG_INFO_BTF does not
depend on DWARF4. They only need any member other than DEBUG_INFO_NONE,
which the generic fragment already provides for every architecture.

Signed-off-by: Ricardo B. Marlière (SUSE) <ricardo@marliere.net>
---
 tools/testing/selftests/bpf/config.x86_64 | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/testing/selftests/bpf/config.x86_64 b/tools/testing/selftests/bpf/config.x86_64
index 523e0d29bbd4..a6e9766b6b7e 100644
--- a/tools/testing/selftests/bpf/config.x86_64
+++ b/tools/testing/selftests/bpf/config.x86_64
@@ -44,7 +44,6 @@ CONFIG_CRYPTO_SEQIV=y
 CONFIG_CRYPTO_XXHASH=y
 CONFIG_DCB=y
 CONFIG_DEBUG_ATOMIC_SLEEP=y
-CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 CONFIG_DEBUG_MEMORY_INIT=y
 CONFIG_DEFAULT_FQ_CODEL=y
 CONFIG_DEFAULT_RENO=y

---
base-commit: 9437ee8b6cf607e883b36e44bd755968daaebd48
change-id: 20261127-selftests-bpf-config_dwarf-de38c19b7da6

Best regards,
--  
Ricardo B. Marlière (SUSE) <ricardo@marliere.net>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] selftests/bpf: Drop conflicting DWARF choice from config.x86_64
  2026-11-27 18:03 [PATCH] selftests/bpf: Drop conflicting DWARF choice from config.x86_64 Ricardo B. Marlière (SUSE)
@ 2026-11-28  1:40 ` Alexei Starovoitov
  0 siblings, 0 replies; 2+ messages in thread
From: Alexei Starovoitov @ 2026-11-28  1:40 UTC (permalink / raw)
  To: Ricardo B. Marlière (SUSE), Daniel Borkmann, Andrii Nakryiko,
	Eduard Zingerman, Kumar Kartikeya Dwivedi, Martin KaFai Lau,
	Song Liu, Yonghong Song, Jiri Olsa, Emil Tsalapatis,
	Ihor Solodrai, Shuah Khan
  Cc: bpf, linux-kselftest

On Fri, Nov 27, 2026 at 10:03 AM Ricardo B. Marlière (SUSE) <ricardo@marliere.net> wrote:
>  CONFIG_DEBUG_ATOMIC_SLEEP=y
> -CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y

gcc 11+ and clang 14+ default to DWARF5.
This moves x86-64 from DWARF5 to DWARF4:

  arch                              today              with the patch
  --------------------------------  -----------------  --------------
  x86_64                            toolchain default  DWARF4
  aarch64, s390x, riscv64, ppc64el  DWARF4             DWARF4


If you care about cleaning up configs then drop
CONFIG_DEBUG_INFO_DWARF4=y
instead.

pw-bot: cr

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-28  1:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 18:03 [PATCH] selftests/bpf: Drop conflicting DWARF choice from config.x86_64 Ricardo B. Marlière (SUSE)
2026-11-28  1:40 ` Alexei Starovoitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox