|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Re: [PATCH]: kexec: framework and i386
Hi,
I update dom0cut script to extract dom0 in both Xen Core and ELF Core format.
With ELF Core, you can use gdb without gdbserver-xen.
typical usage is:
$ ./dom0cut.py -telf -f -dvmcore -odom0core -xxen-syms -vvmlinux-2.6.16
$ gdb vmlinux-2.6.16 dom0core
or
$ ./dom0cut.py -txen -f -dvmcore -odom0core -xxen-syms -vvmlinux-2.6.16
$ gdbserver-xen localhost:9999 --file dom0core
...
To make ELF headers, It use libelf
(http://directory.fsf.org/libs/misc/libelf.html)
and SWIG (http://www.swig.org/).
I attach the patch and libelf wrapper.
Todo:
- SMP support.
- other architecture support.
On 5/10/06, Kazuo Moriwaka <moriwaka@xxxxxxxxxxxxx> wrote:
Hi,
I'll send a patch for dom0 image extract (from kdump) script.
Update is..
- get register values in dom0 context from kdump's ELF Core PT_NOTE header.
- get cr3 register value in context info from vcpu.
- now you can look vmlinux symbols from gdbserver-xen.
Todo:
- It support only single processor now.
- ELF Core output.
On 4/24/06, Kazuo Moriwaka <moriwaka@xxxxxxxxxxxxx> wrote:
> Hi,
>
> On 4/24/06, Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx> wrote:
> > > When a panic occurs, Linux kexec jumps into the preloaded
> > > kdump kernel (if any). This kernel then reinitiases the
> > > hardware, using its own device drivers and uses these to
> > > write out the dump to disk. ISTR that the dump format is
> > > currently ELF, although I remember some talk on the Fastboot
> > > ML about adding some extra headers to make OS debugging easier.
> >
> > Is Xen and the dom0 kernel dumped as as separate ELF cores?
>
> I'm working on clipping domain image from whole-machine dump for x86_32 now.
> Now my prototype reads ELF core and write dom0 image.
>
> todo:
> - Output format is not ELF core yet. Xen domain core image
> format(works with gdbserverxen).
> - register information is not work well.
--
Kazuo Moriwaka
--
Kazuo Moriwaka
dumpread.diff
Description: Text Data
libelf-0.1.0.tar.gz
Description: GNU Zip compressed data
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|