Commit 708e9a79 authored by Matt Mackall's avatar Matt Mackall Committed by Linus Torvalds

[PATCH] tiny: Configure ELF core dump support

configurable support for ELF core dumps

   text    data     bss     dec     hex filename
3330172  529036  190556 4049764  3dcb64 vmlinux-baseline
3325552  528912  190556 4045020  3db8dc vmlinux-no-elf

add/remove: 0/8 grow/shrink: 0/0 up/down: 0/-4424 (-4424)
function                                     old     new   delta
fill_note                                     32       -     -32
maydump                                       58       -     -58
dump_seek                                     67       -     -67
writenote                                    180       -    -180
elf_dump_thread_status                       274       -    -274
fill_psinfo                                  308       -    -308
fill_prstatus                                466       -    -466
elf_core_dump                               3039       -   -3039
Signed-off-by: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e585e470
...@@ -58,7 +58,7 @@ extern int dump_fpu (struct pt_regs *, elf_fpregset_t *); ...@@ -58,7 +58,7 @@ extern int dump_fpu (struct pt_regs *, elf_fpregset_t *);
* If we don't support core dumping, then supply a NULL so we * If we don't support core dumping, then supply a NULL so we
* don't even try. * don't even try.
*/ */
#ifdef USE_ELF_CORE_DUMP #if defined(USE_ELF_CORE_DUMP) && defined(CONFIG_ELF_CORE)
static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file); static int elf_core_dump(long signr, struct pt_regs * regs, struct file * file);
#else #else
#define elf_core_dump NULL #define elf_core_dump NULL
...@@ -1113,7 +1113,7 @@ static int load_elf_library(struct file *file) ...@@ -1113,7 +1113,7 @@ static int load_elf_library(struct file *file)
* Note that some platforms still use traditional core dumps and not * Note that some platforms still use traditional core dumps and not
* the ELF core dump. Each platform can select it as appropriate. * the ELF core dump. Each platform can select it as appropriate.
*/ */
#ifdef USE_ELF_CORE_DUMP #if defined(USE_ELF_CORE_DUMP) && defined(CONFIG_ELF_CORE)
/* /*
* ELF core dumper * ELF core dumper
......
...@@ -327,6 +327,12 @@ config DOUBLEFAULT ...@@ -327,6 +327,12 @@ config DOUBLEFAULT
would otherwise cause a system to silently reboot. Disabling this would otherwise cause a system to silently reboot. Disabling this
option saves about 4k. option saves about 4k.
config ELF_CORE
default y
bool "Enable ELF core dumps" if EMBEDDED
help
Enable support for generating core dumps. Disabling saves about 4k.
config BASE_FULL config BASE_FULL
default y default y
bool "Enable full-sized data structures for core" if EMBEDDED bool "Enable full-sized data structures for core" if EMBEDDED
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment