* Cross architecture analysis for Crash
@ 2013-06-14 10:10 Suzuki K. Poulose
2013-06-19 13:33 ` Petr Tesarik
0 siblings, 1 reply; 2+ messages in thread
From: Suzuki K. Poulose @ 2013-06-14 10:10 UTC (permalink / raw)
To: kexec@lists.infradead.org, crash-utiliy; +Cc: kumagai-atsushi, anderson
Hi,
We have been working on enabling 'cross' analysis support for
Crash, where the target and the host differ in endian-ness.
For e.g, analysing a powerpc dump on an Intel box.
This would be useful for debugging the dumps captured on an
embedded board (say ppc44x), on a normal desktop PC(Intel based).
While the patches are being tested for 'Crash' utility we came
across a problem with the analysis of the compressed dump formats(aka
diskdump). There is no information about the endian-ness of the dump
unlike the ELF format. Hence, we need to embed this information during
the makedumpfile processing of vmcores.
Here are some of the options we thought about :
1) Interpret the new_utsname.machine and decode the endian-ness/word
size.
2) Extend the signature string to contain information about the
endian-ness / word size.
e.g, KDUMPB64 - for KDUMP, BigEndian 64bit
Since we don't know the endian-ness yet, we may not be able to use any
of the other fields which are 'int' or 'long' (e.g, status)
I am looking for suggestions or directions on the approach to add this
information.
Thanks
Suzuki
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Cross architecture analysis for Crash
2013-06-14 10:10 Cross architecture analysis for Crash Suzuki K. Poulose
@ 2013-06-19 13:33 ` Petr Tesarik
0 siblings, 0 replies; 2+ messages in thread
From: Petr Tesarik @ 2013-06-19 13:33 UTC (permalink / raw)
To: kexec
On Fri, 14 Jun 2013 15:40:02 +0530
"Suzuki K. Poulose" <suzuki@in.ibm.com> wrote:
> Hi,
>
> We have been working on enabling 'cross' analysis support for
> Crash, where the target and the host differ in endian-ness.
>
> For e.g, analysing a powerpc dump on an Intel box.
>
> This would be useful for debugging the dumps captured on an
> embedded board (say ppc44x), on a normal desktop PC(Intel based).
>
> While the patches are being tested for 'Crash' utility we came
> across a problem with the analysis of the compressed dump formats(aka
> diskdump). There is no information about the endian-ness of the dump
> unlike the ELF format. Hence, we need to embed this information during
> the makedumpfile processing of vmcores.
>
> Here are some of the options we thought about :
>
> 1) Interpret the new_utsname.machine and decode the endian-ness/word
> size.
>
> 2) Extend the signature string to contain information about the
> endian-ness / word size.
>
> e.g, KDUMPB64 - for KDUMP, BigEndian 64bit
I had the same issue with a dump identification tool. I ended up with
checking whether the fields are "sane" if interpreted in a specific
way. You may want to check my code here:
http://sourceforge.net/projects/kdumpid/
I agree that this is ugly and a better approach would be to store the
information in the header, but then you would not be able to read
legacy dumps, which is a major drawback.
BTW how far did you get with a cross-platform crash? I did some research
on this subject earlier, so maybe I can help you avoid some dead ends..?
HTH,
Petr Tesarik
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-19 13:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-14 10:10 Cross architecture analysis for Crash Suzuki K. Poulose
2013-06-19 13:33 ` Petr Tesarik
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.