[RFC] move ksymoops to the "embedded" section

From: Diego Calleja García (diegocg@teleline.es)
Date: Tue Jul 08 2003 - 15:12:09 EST


This patch moves the "Load all symbols for debugging/kksymoops"
config option out of the kernel hacking.

It doesn't belong there; average users aren't kernel hackers
and they need to report their bugs. There're already some
bug reports un 2.5 from systems were this doesn't harm. For most
of the people, it doesn't have a lot of sense to remove it if
they have enought ram.

So move it to the "General setup" -> "Remove kernel features for
embedded systems"; where it belongs, IMHO

It has been moved from all arch/*/Kconfig files to init/Kconfig
(where the embedded section resides)

I suppose this won't work for all arches; some of them doesn't
define KALLSYMS in their arch/*/Kconfig files; and they include init/Kconfig
so now they have KALLSYMS when they shouldn't need it

diff -puN arch/i386/Kconfig~ksymoops_config_move arch/i386/Kconfig
--- unsta.moo/arch/i386/Kconfig~ksymoops_config_move 2003-07-08 16:46:27.000000000 +0200
+++ unsta.moo-diego/arch/i386/Kconfig 2003-07-08 16:51:35.000000000 +0200
@@ -1346,13 +1346,6 @@ config DEBUG_HIGHMEM
           This options enables addition error checking for high memory systems.
           Disable for production systems.
 
-config KALLSYMS
- bool "Load all symbols for debugging/kksymoops"
- help
- Say Y here to let the kernel print out symbolic crash information and
- symbolic stack backtraces. This increases the size of the kernel
- somewhat, as all symbols have to be loaded into the kernel image.
-
 config DEBUG_SPINLOCK_SLEEP
         bool "Sleep-inside-spinlock checking"
         help
diff -puN init/Kconfig~ksymoops_config_move init/Kconfig
--- unsta.moo/init/Kconfig~ksymoops_config_move 2003-07-08 16:52:49.000000000 +0200
+++ unsta.moo-diego/init/Kconfig 2003-07-08 21:51:36.000000000 +0200
@@ -117,6 +117,14 @@ menuconfig EMBEDDED
           a "non-standard" kernel. Only use this if you really know what you
           are doing.
 
+config KALLSYMS
+ bool "Load all symbols for debugging/kksymoops" if EMBEDDED
+ default y
+ help
+ Say Y here to let the kernel print out symbolic crash information and
+ symbolic stack backtraces. This increases the size of the kernel
+ somewhat, as all symbols have to be loaded into the kernel image.
+
 config FUTEX
         bool "Enable futex support" if EMBEDDED
         default y
diff -puN arch/arm/Kconfig~ksymoops_config_move arch/arm/Kconfig
--- unsta.moo/arch/arm/Kconfig~ksymoops_config_move 2003-07-08 16:57:43.000000000 +0200
+++ unsta.moo-diego/arch/arm/Kconfig 2003-07-08 16:58:05.000000000 +0200
@@ -1061,14 +1061,6 @@ config DEBUG_ERRORS
           you are concerned with the code size or don't want to see these
           messages.
 
-config KALLSYMS
- bool "Load all symbols for debugging/kksymoops"
- depends on DEBUG_KERNEL
- help
- Say Y here to let the kernel print out symbolic crash information and
- symbolic stack backtraces. This increases the size of the kernel
- somewhat, as all symbols have to be loaded into the kernel image.
-
 # These options are only for real kernel hackers who want to get their hands dirty.
 config DEBUG_LL
         bool "Kernel low-level debugging functions"
diff -puN arch/arm26/Kconfig~ksymoops_config_move arch/arm26/Kconfig
--- unsta.moo/arch/arm26/Kconfig~ksymoops_config_move 2003-07-08 16:58:35.000000000 +0200
+++ unsta.moo-diego/arch/arm26/Kconfig 2003-07-08 16:58:40.000000000 +0200
@@ -523,14 +523,6 @@ config DEBUG_ERRORS
           you are concerned with the code size or don't want to see these
           messages.
 
-config KALLSYMS
- bool "Load all symbols for debugging/kksymoops"
- depends on DEBUG_KERNEL
- help
- Say Y here to let the kernel print out symbolic crash information and
- symbolic stack backtraces. This increases the size of the kernel
- somewhat, as all symbols have to be loaded into the kernel image.
-
 # These options are only for real kernel hackers who want to get their hands dirty.
 config DEBUG_LL
         bool "Kernel low-level debugging functions"
diff -puN arch/ia64/Kconfig~ksymoops_config_move arch/ia64/Kconfig
--- unsta.moo/arch/ia64/Kconfig~ksymoops_config_move 2003-07-08 16:59:55.000000000 +0200
+++ unsta.moo-diego/arch/ia64/Kconfig 2003-07-08 16:59:58.000000000 +0200
@@ -667,14 +667,6 @@ config DEBUG_KERNEL
           Say Y here if you are developing drivers or trying to debug and
           identify kernel problems.
 
-config KALLSYMS
- bool "Load all symbols for debugging/kksymoops"
- depends on DEBUG_KERNEL
- help
- Say Y here to let the kernel print out symbolic crash information and
- symbolic stack backtraces. This increases the size of the kernel
- somewhat, as all symbols have to be loaded into the kernel image.
-
 config IA64_PRINT_HAZARDS
         bool "Print possible IA-64 dependency violations to console"
         depends on DEBUG_KERNEL
diff -puN arch/parisc/Kconfig~ksymoops_config_move arch/parisc/Kconfig
--- unsta.moo/arch/parisc/Kconfig~ksymoops_config_move 2003-07-08 17:01:26.000000000 +0200
+++ unsta.moo-diego/arch/parisc/Kconfig 2003-07-08 17:01:35.000000000 +0200
@@ -287,14 +287,6 @@ config MAGIC_SYSRQ
           keys are documented in <file:Documentation/sysrq.txt>. Don't say Y
           unless you really know what this hack does.
 
-config KALLSYMS
- bool "Load all symbols for debugging/kksymoops"
- depends on DEBUG_KERNEL
- help
- Say Y here to let the kernel print out symbolic crash information and
- symbolic stack backtraces. This increases the size of the kernel
- somewhat, as all symbols have to be loaded into the kernel image.
-
 endmenu
 
 source "security/Kconfig"
diff -puN arch/ppc/Kconfig~ksymoops_config_move arch/ppc/Kconfig
--- unsta.moo/arch/ppc/Kconfig~ksymoops_config_move 2003-07-08 17:03:23.000000000 +0200
+++ unsta.moo-diego/arch/ppc/Kconfig 2003-07-08 17:03:25.000000000 +0200
@@ -1450,13 +1450,6 @@ config DEBUG_HIGHMEM
           This options enables additional error checking for high memory
           systems. Disable for production systems.
 
-config KALLSYMS
- bool "Load all symbols for debugging/kksymoops"
- help
- Say Y here to let the kernel print out symbolic crash information and
- symbolic stack backtraces. This increases the size of the kernel
- somewhat, as all symbols have to be loaded into the kernel image.
-
 config DEBUG_SPINLOCK_SLEEP
         bool "Sleep-inside-spinlock checking"
         depends on DEBUG_KERNEL
diff -puN arch/x86_64/Kconfig~ksymoops_config_move arch/x86_64/Kconfig
--- unsta.moo/arch/x86_64/Kconfig~ksymoops_config_move 2003-07-08 17:05:58.000000000 +0200
+++ unsta.moo-diego/arch/x86_64/Kconfig 2003-07-08 17:06:00.000000000 +0200
@@ -540,13 +540,6 @@ config INIT_DEBUG
           Fill __init and __initdata at the end of boot. This helps debugging
           illegal uses of __init and __initdata after initialization.
 
-config KALLSYMS
- bool "Load all symbols for debugging/kksymoops"
- help
- Say Y here to let the kernel print out symbolic crash information and
- symbolic stack backtraces. This increases the size of the kernel
- somewhat, as all symbols have to be loaded into the kernel image.
-
 config FRAME_POINTER
        bool "Compile the kernel with frame pointers"
        help

_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 15 2003 - 22:00:28 EST