* [PATCH] ARM: multi_v7_defconfig: Enable debugging symbols by default
@ 2024-09-06 21:39 Florian Fainelli
2024-09-07 12:03 ` Arnd Bergmann
0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2024-09-06 21:39 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Florian Fainelli, Russell King, Arnd Bergmann,
Krzysztof Kozlowski, Marek Szyprowski, Geert Uytterhoeven,
Andrew Davis, Jason Gunthorpe, Mark Brown, Etienne Carriere,
Trevor Woerner, Javier Carrasco, open list
Similarly to the ARM64 defconfig, enable debugging symbols and rely upon
the toolchain's default DWARF implementation.
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
---
arch/arm/configs/multi_v7_defconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
index 62734530a3d6..eee71f6ae131 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/multi_v7_defconfig
@@ -1322,5 +1322,8 @@ CONFIG_CRYPTO_DEV_STM32_HASH=m
CONFIG_CRYPTO_DEV_STM32_CRYP=m
CONFIG_CMA_SIZE_MBYTES=64
CONFIG_PRINTK_TIME=y
+CONFIG_DEBUG_KERNEL=y
+CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
+CONFIG_DEBUG_INFO_REDUCED=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_FS=y
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: multi_v7_defconfig: Enable debugging symbols by default
2024-09-06 21:39 [PATCH] ARM: multi_v7_defconfig: Enable debugging symbols by default Florian Fainelli
@ 2024-09-07 12:03 ` Arnd Bergmann
0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2024-09-07 12:03 UTC (permalink / raw)
To: Florian Fainelli, linux-arm-kernel
Cc: Russell King, Krzysztof Kozlowski, Marek Szyprowski,
Geert Uytterhoeven, Andrew Davis, Jason Gunthorpe, Mark Brown,
Etienne Carriere, Trevor Woerner, Javier Carrasco, open list
On Fri, Sep 6, 2024, at 21:39, Florian Fainelli wrote:
> Similarly to the ARM64 defconfig, enable debugging symbols and rely upon
> the toolchain's default DWARF implementation.
>
> Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
I usually build with debug info disabled when I'm build testing,
but turn it on explicitly when I try to actually debug a problem.
Depending on the configuration, adding debug info can significantly
increase the build time and file size. I've tried to record exact
data here, building the arm defconfig on gcc-14 with and without
debug info, which doesn't seem too bad, especially with the
reduced debug info:
config vmlinux time total time vmlinux size
disabled-gcc9 49s 81s 35MB
reduced-gcc9 55s 98s 148MB
full-gcc9 66s 105s 443MB
disabled-gcc14 55s 90s 34MB
reduced-gcc14 60s 99s 124MB
full-gcc14 68s 115s 349MB
There is still added disk usage for build testing, but
the time overhead seems fine. I'd like to hear what others
think about the tradeoff.
Arnd
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-07 10:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-06 21:39 [PATCH] ARM: multi_v7_defconfig: Enable debugging symbols by default Florian Fainelli
2024-09-07 12:03 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox