WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "Akio Takebe" <takebe_akio@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [PATCH]: kexec: framework and i386
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <6AC66805BACE46takebe_akio@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D4BA3F4@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <b294a32a0604231816i1be50586k9c788bf134f50b59@xxxxxxxxxxxxxx> <b294a32a0604231830j4e4de03nd011a929dc09eac@xxxxxxxxxxxxxx> <6AC66805BACE46takebe_akio@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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