public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Anderson <anderson@redhat.com>
To: vivek goyal <vgoyal@in.ibm.com>
Cc: fastboot <fastboot@lists.osdl.org>,
	lkml <linux-kernel@vger.kernel.org>,
	haren myneni <hbabu@us.ibm.com>,
	Maneesh Soni <maneesh@in.ibm.com>,
	"Eric W. Biederman" <ebiederm@xmission.com>,
	Andrew Morton <akpm@osdl.org>
Subject: Re: Query: Kdump: Core Image ELF Format
Date: Tue, 08 Mar 2005 10:14:46 -0500	[thread overview]
Message-ID: <422DC166.BFFF3CC0@redhat.com> (raw)
In-Reply-To: 1110286210.4195.27.camel@wks126478wss.in.ibm.com

vivek goyal wrote:

> Hi,
>
> Kdump (A kexec based crash dumping mechanism) is going to export the
> kernel core image in ELF format. ELF was chosen as a format, keeping in
> mind that gdb can be used for limited debugging and "Crash" can be used
> for advanced debugging.
>
> Core image ELF headers are prepared before crash and stored at a safe
> place in memory. These headers are retrieved over a kexec boot and final
> elf core image is prepared for analysis.
>
> Given the fact physical memory can be dis-contiguous, One program header
> of type PT_LOAD is created for every contiguous memory chunk present in
> the system. Other information like register states etc. is captured in
> notes section.
>
> Now the issue is, on i386, whether to prepare core headers in ELF32 or
> ELF64 format. gdb can not analyze ELF64 core image for i386 system. I
> don't know about "crash". Can "crash" support ELF64 core image file for
> i386 system?
>

Not in its current state, but it can certainly be modified to do so.
The embedded gdb module never is even aware of the vmcore file.
(It is essentially executed as "gdb vmlinux").

And currently crash only expects a single PT_LOAD section, but
that's due for a change.  It's been OK for its current set of supported
processors to use sparse file space for non-existent memory,
but it's kind of a pain with ia64's 256GB holes.

The point is that adapting crash to handle whatever format
you come up with is the easy part of the whole equation.

>
> Given the limitation of analysis tools, if core headers are prepared in
> ELF32 format then how to handle PAE systems?
>

Are you asking about what would be the p_vaddr values for the higher
memory segments?   FWIW, with the single-PT_LOAD segment currently
supported by crash, there's only one p_vaddr, but in any case, crash doesn't
use it, so PAE is not a problem.

Dave Anderson


>
> Any thoughts or suggestions on this?
>
> Thanks
> Vivek


  reply	other threads:[~2005-03-08 15:17 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-08 12:50 Query: Kdump: Core Image ELF Format vivek goyal
2005-03-08 15:14 ` Dave Anderson [this message]
2005-03-08 18:11   ` Eric W. Biederman
2005-03-08 19:26     ` Dave Anderson
2005-03-08 18:00 ` Eric W. Biederman
2005-03-09  6:43   ` Vivek Goyal
2005-03-09 14:17     ` [Fastboot] " Eric W. Biederman
2005-03-09 15:06       ` Dipankar Sarma
2005-03-10  7:11         ` Eric W. Biederman
2005-03-10  5:02       ` Vivek Goyal
2005-03-10  6:56         ` Eric W. Biederman
2005-03-15  5:49           ` Vivek Goyal
2005-03-10  8:16         ` Itsuro Oda
2005-03-09  6:57 ` Itsuro Oda
2005-03-23  4:26 ` Fernando Luis Vazquez Cao
2005-03-23 10:36   ` Vivek Goyal
2005-03-23 19:54     ` Eric W. Biederman
2005-03-23 19:47   ` [Fastboot] " Eric W. Biederman
     [not found]     ` <200503300258.34239.mark.williamson@cl.cam.ac.uk>
2005-03-30  7:42       ` Eric W. Biederman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=422DC166.BFFF3CC0@redhat.com \
    --to=anderson@redhat.com \
    --cc=akpm@osdl.org \
    --cc=ebiederm@xmission.com \
    --cc=fastboot@lists.osdl.org \
    --cc=hbabu@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maneesh@in.ibm.com \
    --cc=vgoyal@in.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox