FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Crash Utility

 
 
LinkBack Thread Tools
 
Old 06-30-2010, 10:09 AM
Mika Westerberg
 
Default crash: add support for ARM kernel image

ARM kernel image is slightly different than the currently supported images so
implement necessary support for it.

Signed-off-by: Mika Westerberg <ext-mika.1.westerberg@nokia.com>
---
kernel.c | 2 +-
lkcd_vmdump_v2_v3.h | 4 ++--
symbols.c | 8 +++++++-
3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/kernel.c b/kernel.c
index 5fc27d3..c24f7a4 100644
--- a/kernel.c
+++ b/kernel.c
@@ -736,7 +736,7 @@ verify_version(void)

if (!(sp = symbol_search("linux_banner")))
error(FATAL, "linux_banner symbol does not exist?
");
- else if ((sp->type == 'R') || (sp->type == 'r'))
+ else if ((sp->type == 'R') || (sp->type == 'r') || (sp->type == 'T'))
linux_banner = symbol_value("linux_banner");
else
get_symbol_data("linux_banner", sizeof(ulong), &linux_banner);
diff --git a/lkcd_vmdump_v2_v3.h b/lkcd_vmdump_v2_v3.h
index 006b0b6..afdcc53 100644
--- a/lkcd_vmdump_v2_v3.h
+++ b/lkcd_vmdump_v2_v3.h
@@ -35,7 +35,7 @@
#include <asm/vmdump.h> /* for architecture-specific header */
#endif

-#if defined(X86) || defined(PPC) || defined(S390) || defined(S390X)
+#if defined(ARM) || defined(X86) || defined(PPC) || defined(S390) || defined(S390X)

/*
* Kernel header file for Linux crash dumps.
@@ -92,7 +92,7 @@ typedef struct _dump_header_asm_s {

#endif /* _ASM_VMDUMP_H */

-#endif /* X86 || PPC */
+#endif /* ARM || X86 || PPC */

#if defined(ALPHA) || defined(IA64) || defined(X86_64) || defined(PPC64)

diff --git a/symbols.c b/symbols.c
index e92de1a..a6c0449 100644
--- a/symbols.c
+++ b/symbols.c
@@ -490,7 +490,8 @@ get_text_init_space(void)
return;

if (((section = get_kernel_section(".text.init")) == NULL) &&
- ((section = get_kernel_section(".init.text")) == NULL)) {
+ ((section = get_kernel_section(".init.text")) == NULL) &&
+ ((section = get_kernel_section(".init")) == NULL)) {
error(WARNING, "cannot determine text init space
");
return;
}
@@ -2660,6 +2661,11 @@ is_kernel(char *file)
goto bailout;
break;

+ case EM_ARM:
+ if (machine_type_mismatch(file, "ARM", NULL, 0))
+ goto bailout;
+ break;
+
default:
if (machine_type_mismatch(file, "(unknown)", NULL, 0))
goto bailout;
--
1.5.6.5

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 

Thread Tools




All times are GMT. The time now is 10:06 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org