From: "Wang, Xiao/Wang Xiao" <wangx.fnst@cn.fujitsu.com>
To: kexec@lists.infradead.org
Subject: makedumpfile: regenerate the incomplete vmcore generated by ENOSPC error
Date: Wed, 20 Aug 2014 16:54:09 +0800 [thread overview]
Message-ID: <53F46231.2020008@cn.fujitsu.com> (raw)
Hello,
Sometimes when the dump device doesn't have enough space to store a
vmcore, makedumpfile will report an ENOSPC error and leave an incomplete
vmcore in the dump device, but this file can't be analyzed by crash
utility. Since this file may contains important informations for
debugging, in order to use it we came up with an approach to deal with
it, which described as follow:
Add an option to makedumpfile to make it can analyze incomplete vmcore
and generate an usable vmcore(can be analyzed by crash utility).
Since there are two formats of a vmcore, the analysis of an incomplete
vmcore are different in each condition.
1.kdump-compressed format:
If the 'page data' are written but not complete, then we can modify
the header(main header and sub header) and the bitmap(1st-bitmap and
2nd-bitmap) to make the core act as if the missing page data were
filtered.
Otherwise if there's no 'page data' written to the core file, this
core file couldn't become usable in any case.
2.elf format:
If the PT_LOAD segments in a vmcore are written but not complete,
then we can modify the associated values in the 'Program segment header'
to correctly reflect the existing memory of the vmcore.
Otherwise if the PT_LOAD segments doesn't exist, this core file
can't become usable in any case.
We are trying to implement this approach now and are sincerely expecting
any comments or discussions, thanks.
--
Regards
Wang Xiao
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
reply other threads:[~2014-08-20 8:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=53F46231.2020008@cn.fujitsu.com \
--to=wangx.fnst@cn.fujitsu.com \
--cc=kexec@lists.infradead.org \
/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