[PATCH 0/2] geneate correct PAGE_OFFSET for vmcore

Wang Nan wangnan0 at huawei.com
Thu May 29 02:20:01 PDT 2014


This two patches corrects PAGE_OFFSET for generated vmcore.

Original code uses fix PAGE_OFFSET: 0xc0000000. For kernel with
CONFIG_VMSPLIT_1G/2G, generated /proc/vmcore is incorrect. See
discussion:
  http://lists.infradead.org/pipermail/kexec/2014-May/011844.html

The first patch detects page_offset dynamically according to
/proc/kallsyms, the second patch intorduces a --page-offset option for
systems without KALLSYMS or /proc

Wang Nan (2):
  kexec-tools: detect page_offset dynamically
  kexec-tools: add --page-offset option for ARM

 kexec/arch/arm/crashdump-arm.c        | 64 ++++++++++++++++++++++++++++++++++-
 kexec/arch/arm/crashdump-arm.h        |  4 ++-
 kexec/arch/arm/include/arch/options.h |  4 ++-
 kexec/arch/arm/kexec-zImage-arm.c     |  7 ++++
 4 files changed, 76 insertions(+), 3 deletions(-)

-- 
1.8.4




More information about the kexec mailing list