[Crash-utility] [PATCH] Add support for 'foreign' page sizes in kdump dumps

Bernhard Walle bwalle at suse.de
Thu Jan 15 17:33:18 UTC 2009


This affects only ppc64 and ia64 since that are the only architectures
that have a page size that is configurable at runtime by the system (which means
at boot by the kernel).

It also only affects dumps of the formats diskdump (which includes kdump
compressed dumps created by makedumpfile) and netdump (which includes kdump
ELF dumps copied from /proc/vmcore without any filtering applied and created
by makedumpfile with the -E option).

The patch reads the page size from the diskdump header or from the VMCOREINFO
in case of netdump (if it's there). For ia64 it also evaluates the page size
of the zero page to *change* the page size. In the past id didn't change the
page size, it only printed an error.

The patch has been tested on ppc64 (4k vs. 64k), ia64 (16k vs. 64k) and x86-64
(always 4k). It has been tested for compilation on i386, x86-64, ia64, PPC,
ppc64, s390 and s390x. Everything on a SLES 11/openSUSE 11.1 code base.


Signed-off-by: Bernhard Walle <bwalle at suse.de>


3 files changed, 127 insertions(+), 13 deletions(-)
diskdump.c |   18 +++++----
netdump.c  |  120 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
netdump.h  |    2 +


-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash-pagesize.diff
Type: text/x-patch
Size: 6486 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20090115/919a9410/attachment.bin>


More information about the Crash-utility mailing list