Skip to content
  • Atsushi Kumagai's avatar
    kexec, vmalloc: export additional vmalloc layer information · 13ba3fcb
    Atsushi Kumagai authored
    
    
    Now, vmap_area_list is exported as VMCOREINFO for makedumpfile to get
    the start address of vmalloc region (vmalloc_start).  The address which
    contains vmalloc_start value is represented as below:
    
      vmap_area_list.next - OFFSET(vmap_area.list) + OFFSET(vmap_area.va_start)
    
    However, both OFFSET(vmap_area.va_start) and OFFSET(vmap_area.list)
    aren't exported as VMCOREINFO.
    
    So this patch exports them externally with small cleanup.
    
    [akpm@linux-foundation.org: vmalloc.h should include list.h for list_head]
    Signed-off-by: default avatarAtsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
    Cc: Joonsoo Kim <js1304@gmail.com>
    Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
    Cc: Chris Metcalf <cmetcalf@tilera.com>
    Cc: Dave Anderson <anderson@redhat.com>
    Cc: Eric Biederman <ebiederm@xmission.com>
    Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Vivek Goyal <vgoyal@redhat.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    13ba3fcb