From: Dave Anderson <anderson(a)redhat.com>
Subject: Re: [Crash-utility] [PATCH] kmem, snap: iomem/ioport display and vmcore snapshot
support
Date: Wed, 14 Mar 2012 09:16:29 -0400 (EDT)
----- Original Message -----
> From: Dave Anderson <anderson(a)redhat.com>
> Subject: Re: [Crash-utility] [PATCH] kmem, snap: iomem/ioport display
> and vmcore snapshot support
> Date: Tue, 13 Mar 2012 10:17:20 -0400 (EDT)
>
<snip>
>
> Anyway it's natural that we should modify the extension module, and
> we'll do that soon. The patch for snap command was a workaround, but
> there's merit to the patch that it makes it possible to use it as
> handy vmcore conversion tool, not just as live kernel dump command, so
> I've posted this here. By this, snap command will become able to
> convert all the format currently crash supports into ELF. Though I
> have yet to test this, this can convert lkcd foramt into ELF, for
> example. Someone might want to use this for vmcore not suppoted by
> Makedumpfile.
OK, here's what to do. The snap extension module is just that -- it
takes a "snapshot" of live physical memory and creates an ELF file.
I don't want to change that.
It appeared to me that it's natural to add the support of vmcore
memory to snap command for a small change of the code; part of getting
memory mapping only.
However, I suppose the concept of a "conversion-to-ELF"
tool makes sense.
That being the case, please create a standalone extension module, and
call it "mkelf", or "kvm2elf", or whatever name you want. Then we
can
add it to the collection of modules on the extension module web page.
OK. This takes just a little more time than extending snap
command. I'll send the patch next or a few weeks later. I would barrow
most part from the source code of snap command.
Thanks.
HATAYAMA, Daisuke