makedumpfile: xen extraction
Subsystems (3)
RFC 1/1 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
@@ -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
Hi Oda-san,
Quoted 17 lines · Itsuro ODA
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/vmcoreunder 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.
Quoted 8 lines
This patch supports x86-PAE and ia64 now.
(x86 andx86_64is 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.
Thank you for the xen patch, I'm interested in your patch. I'd like to separate the command of xen from the makedumpfile command, because the commandline usage should be simple and the binary file should be small in 2nd-kernel memory. Please let me know your opinion.
Thanks
Ken'ichi Ohmichi
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Hi Ken'ichi,
Quoted 4 lines
Thank you for the xen patch, I'm interested in your patch. I'd like to separate the command of xen from the makedumpfile command, because the commandline usage should be simple and the binary file should be small in 2nd-kernel memory. Please let me know your opinion.
I think separated command is possible option too. How about to be "ifdef"ed the part of structures I added and the main is sepatated ?
BTW,
All pages used by the dom-0 are saved now.
Do you think it is better to be available to select pages like makedumpfile from the dom-0 ?
Thanks.
Signature · 7 lines
Itsuro ODA <[email protected]> _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Hi Oda-san,
Quoted 5 lines · Itsuro ODA
Quoted 4 lines
Thank you for the xen patch, I'm interested in your patch. I'd like to separate the command of xen from the makedumpfile command, because the commandline usage should be simple and the binary file should be small in 2nd-kernel memory. Please let me know your opinion.
Quoted 8 lines
I think separated command is possible option too. How about to be "ifdef"ed the part of structures I added and the main is sepatated ?
BTW,
All pages used by the dom-0 are saved now.
Do you think it is better to be available to select pages like makedumpfile from the dom-0 ?
Yes, I do. It is a good idea.
I think that it is better that the command for xen isn't separated from makedumpfile if unnecessary pages will be filtered out from dom-0, because the command for xen will need almost the same code.
I'll start testing makedumpfile with your patch (2007/05/28) and inform you of the result.
Thanks
Ken'ichi Ohmichi
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec