From 491d826bef4447b450c8856173ecf552d457114f Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Sat, 28 May 2022 00:26:37 -0700 Subject: [PATCH] [TESTING] gki: disable debug core Trying to speed up the system Signed-off-by: acuicultor --- android/abi_gki_aarch64_generic | 2 -- arch/arm64/configs/gki_defconfig | 3 --- lib/Kconfig.debug | 5 +++-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/android/abi_gki_aarch64_generic b/android/abi_gki_aarch64_generic index 966896aa05e3..caf27681f820 100644 --- a/android/abi_gki_aarch64_generic +++ b/android/abi_gki_aarch64_generic @@ -820,8 +820,6 @@ dw_pcie_read dw_pcie_setup_rc dw_pcie_write - __dynamic_dev_dbg - __dynamic_pr_debug em_cpu_get emergency_restart enable_irq diff --git a/arch/arm64/configs/gki_defconfig b/arch/arm64/configs/gki_defconfig index ea0365bf7f39..5e4ca49da642 100644 --- a/arch/arm64/configs/gki_defconfig +++ b/arch/arm64/configs/gki_defconfig @@ -681,10 +681,7 @@ CONFIG_DMA_CMA=y CONFIG_STACK_HASH_ORDER=12 CONFIG_PRINTK_TIME=y CONFIG_PRINTK_CALLER=y -CONFIG_DYNAMIC_DEBUG_CORE=y CONFIG_DEBUG_INFO=y -CONFIG_DEBUG_INFO_DWARF4=y -CONFIG_DEBUG_INFO_BTF=y # CONFIG_ENABLE_MUST_CHECK is not set CONFIG_HEADERS_INSTALL=y # CONFIG_SECTION_MISMATCH_WARN_ONLY is not set diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 8fa27693e1bf..91c6883d613b 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -189,7 +189,7 @@ config SYMBOLIC_ERRNAME config DEBUG_BUGVERBOSE bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EXPERT depends on BUG && (GENERIC_BUG || HAVE_DEBUG_BUGVERBOSE) - default y + default n help Say Y here to make BUG() panics output the file name and line number of the BUG call as well as the EIP and oops trace. This aids @@ -201,7 +201,7 @@ menu "Compile-time checks and compiler options" config DEBUG_INFO bool "Compile the kernel with debug info" - depends on DEBUG_KERNEL && !COMPILE_TEST + depends on !COMPILE_TEST help If you say Y here the resulting kernel image will include debugging info resulting in a larger kernel image. @@ -525,6 +525,7 @@ endmenu config DEBUG_KERNEL bool "Kernel debugging" + default n help Say Y here if you are developing drivers or trying to debug and identify kernel problems.