Skip to contentSkip to conversation

enable CONFIG_KALLSYMS_ALL unconditionally after allnoconfig

PATCH New Olaf Hering 2 participants 3 messages May 28, 2006 – May 29, 2006 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 enable CONFIG_KALLSYMS_ALL unconditionally after allnoconfig

CONFIG_KALLSYMS_ALL is disabled after these commands:

rm -rf ../foo-$$
mkdir ../foo-$$
make -j ARCH=powerpc O=../foo-$$ allnoconfig > /dev/null grep KALLSYMS ../foo-$$/.config
make -j ARCH=powerpc O=../foo-$$ menuconfig
# 'Kernel hacking ---> ' , enable 'Kernel debugging '
grep KALLSYMS ../foo-$$/.config

enabled it along with CONFIG_KALLSYMS, because CONFIG_KALLSYMS is not selectable per default xmon can not lookup all symbols without CONFIG_KALLSYMS_ALL,
'ls log_buf' will not work as example.

---
 init/Kconfig |    1 +
 1 file changed, 1 insertion(+)
init/Kconfig +1 -0
Index: linux-2.6/init/Kconfig
===================================================================
@@ -276,6 +276,7 @@ config KALLSYMS
 config KALLSYMS_ALL
 	bool "Include all symbols in kallsyms"
 	depends on DEBUG_KERNEL && KALLSYMS
+	default y
 	help
 	   Normally kallsyms only contains the symbols of functions, for nicer
 	   OOPS messages.  Some debuggers can use kallsyms for other
#1 lore raw

PATCH 1/1 enable CONFIG_KALLSYMS_ALL unconditionally for xmon after allnoconfig

CONFIG_KALLSYMS_ALL is disabled after these commands:

rm -rf ../foo-$$
mkdir ../foo-$$
make -j ARCH=powerpc O=../foo-$$ allnoconfig > /dev/null
grep KALLSYMS ../foo-$$/.config
make -j ARCH=powerpc O=../foo-$$ menuconfig
# 'Kernel hacking ---> ' , enable 'Kernel debugging ' + 'Enable debugger hooks' + 'Include xmon kernel debugger'
grep KALLSYMS ../foo-$$/.config

enable CONFIG_KALLSYMS_ALL, because CONFIG_KALLSYMS is not selectable per default xmon can not lookup all symbols without CONFIG_KALLSYMS_ALL,
'ls log_buf' will not work as example.

---
 arch/powerpc/Kconfig.debug |    1 +
 1 file changed, 1 insertion(+)
arch/powerpc/Kconfig.debug +1 -0
Index: linux-2.6/arch/powerpc/Kconfig.debug
===================================================================
@@ -64,6 +64,7 @@ config KGDB_CONSOLE
 config XMON
 	bool "Include xmon kernel debugger"
 	depends on DEBUGGER && !PPC_ISERIES
+	select KALLSYMS_ALL
 	help
 	  Include in-kernel hooks for the xmon kernel monitor/debugger.
 	  Unless you are intending to debug the kernel, say N here.
#2 lore raw

Re: [PATCH] enable CONFIG_KALLSYMS_ALL unconditionally for xmon after allnoconfig

Hi,

Quoted 3 lines · Olaf Hering

enable CONFIG_KALLSYMS_ALL, because CONFIG_KALLSYMS is not selectable per default xmon can not lookup all symbols without CONFIG_KALLSYMS_ALL,
'ls log_buf' will not work as example.

Unless xmon is completely unusable without CONFIG_KALLSYMS_ALL, I'd rather leave it optional.

bye, Roman