[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Re: [PATCH]: kexec: framework and i386


  • To: "Akio Takebe" <takebe_akio@xxxxxxxxxxxxxx>
  • From: "Kazuo Moriwaka" <moriwaka@xxxxxxxxxxxxx>
  • Date: Tue, 25 Apr 2006 11:34:33 +0900
  • Cc: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>, Magnus Damm <magnus@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Mark Williamson <mark.williamson@xxxxxxxxxxxx>
  • Delivery-date: Mon, 24 Apr 2006 19:34:54 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=js001GEIYfPEYek9rsy5+bLSJBLzXeRFaUFUWUsNNUR4Yk2Gmy29QeRhVurokMNXE3o+IlIpQ9I8BLNkex8rsqLer2asLT6k4WwtiQCOyo3hCaVI2ZPOLwKm9B8N/n/BtYS+EpGF7lXmaQOY0ypIaj2IqPDkU0Gcm04w/Ep31Rk=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

HI, Akio,

On 4/25/06, Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> wrote:
> Could you explain usage of your tool?

I'm sorry for lack of description.
Its usage is:
  ./dom0cut_x86_32.py -oOutputFile -dDumpFile -xXenSymsFile -vVmlinuxFile -telf

Argument -t 's filetype is input dumpfile's type.

and it shows some help:
   ./dom0cut_x86_32.py --help

> For using your tool, do I need xen-syms, vmlinux(with debug option),
> and so on?

Yes, and internally, it calls readelf and nm to fetch ELF sections and
some info.
# now this script doesn't use vmlinux debug info yet.

> Can this tool extract only dom0 from coredump file?
Yes, now it extract only dom0.

> Can this tool also extract xen or domU?

Not yet. But I think to extend the script to extract domU is not so difficult.

To support domU:
- In dom0cut_x86_32.py, dom0extract() calls XenImage.get_dom0p() to
get *dom0 now.
  It should be replaced with some function like
XenImage.get_domainp(id) to extract
  domU image.

- kdump saves dom0's latest CPU register info ELF core's PT_NOTE,
  so dom0 needs some special treatment about register.

For xen, I'm not clear how to set up suitable context information
for dump file.

regards,
--
Kazuo Moriwaka

> Best Regards,
>
> Akio Takebe
>
> >I forgot attach my scripts and readme.
> >
> >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
> >
> >-------------------------------text/plain-------------------------------
> >_______________________________________________
> >Xen-devel mailing list
> >Xen-devel@xxxxxxxxxxxxxxxxxxx
> >http://lists.xensource.com/xen-devel
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.