Skip to contentSkip to conversation

makedumpfile: xen extraction

RFC New Itsuro ODA 1 participant 1 message May 29, 2007 Kbuild

lore
Share & tools
lore

Itsuro ODA

author
#0 lore raw

RFC 1/1 makedumpfile: xen extraction

Hi,

I sent the following e-mail to kexec-mailing list ([email protected]) since subjects of makedumpfile are discussed on the mailing list.

I want to inform this to xen developers since I think this function is useful for xen developers.

Thanks.
Itsuro Oda

(see https://sourceforge.net/projects/makedumpfile/
about makedumpfile command.)

Forwarded by Itsuro ODA <[email protected]> ----------------------- Original Message -----------------------

 From:    Itsuro ODA <[email protected]>
 To:      [email protected]
 Cc:      [email protected]
 Date:    Mon, 28 May 2007 10:49:49 +0900

Subject: [RFC] makedumpfile: xen extraction
----

Hi,

I think the part of xen hypervisor and domain-0 is enough to analyze a cause of system crash in almost of all cases under xen environment. Thus extracting the part of xen and domain-0 from /proc/vmcore under the second kernel is useful to reduce down time.

The attached patch enables makedumpfile to extract the part of xen and domain-0 from vmcore.
I implemented this function as an option of makedumpfile since many parts of makedumpfile can be used for implement of this function and the aim of this function is same as the aim of makedumpfile.

usage: -X option is added for this funtion. -E and "-x xen-syms" must be
specified with -X.
"makedumpfile -XE -x xen-syms [-D] vmcore output-vmcore"

This patch is for makedumpfile-1.1.3.

This patch supports x86-PAE and ia64 now.
(x86 and x86_64 is easy to support. I'd like to get feedbacks before implement many architectures.)

The output-vmcore can be analyzed by "crash" command for both of xen hypervisor and domain-0.

Your comments are welcome.

Thanks.
Itsuro Oda

-------------------------------------------------------------------------------
Index: Makefile
===================================================================
RCS file: /cvsroot/xen_ia64/people/oda/makedumpfile-1.1.3/Makefile,v retrieving revision 1.1
retrieving revision 1.2

Makefile +1 -1
diff -u -r1.1 -r1.2
@@ -6,7 +6,7 @@
 CC	= gcc
 CFLAGS = -g -O2 -Wall -D_FILE_OFFSET_BITS=64 \
 	  -DVERSION='"$(VERSION)"' -DRELEASE_DATE='"$(DATE)"'
-CFLAGS_ARCH	= -g -O2 -Wall
+CFLAGS_ARCH	= -g -O2 -Wall -D_FILE_OFFSET_BITS=64
 
 ARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/sun4u/sparc64/ \
 			       -e s/arm.*/arm/ -e s/sa110/arm/ \

Index: ia64.c
===================================================================
RCS file: /cvsroot/xen_ia64/people/oda/makedumpfile-1.1.3/ia64.c,v retrieving revision 1.1
retrieving revision 1.6

ia64.c +89 -0

94 lines not on this page · raw message

Index: makedumpfile.c
===================================================================
RCS file: /cvsroot/xen_ia64/people/oda/makedumpfile-1.1.3/makedumpfile.c,v retrieving revision 1.1
retrieving revision 1.14

makedumpfile.c +435 -1

466 lines not on this page · raw message

Index: makedumpfile.h
===================================================================
RCS file: /cvsroot/xen_ia64/people/oda/makedumpfile-1.1.3/makedumpfile.h,v retrieving revision 1.1
retrieving revision 1.13

makedumpfile.h +128 -0

161 lines not on this page · raw message

Index: x86.c
===================================================================
RCS file: /cvsroot/xen_ia64/people/oda/makedumpfile-1.1.3/x86.c,v retrieving revision 1.1
retrieving revision 1.6

x86.c +93 -1

98 lines not on this page · raw message

Itsuro ODA <[email protected]>

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

--------------------- Original Message Ends --------------------

Signature · 1 line
Itsuro ODA <[email protected]>