Skip to content

Commit acd99db

Browse files
Ken'ichi Ohmichitorvalds
authored andcommitted
kdump: add vmlist.addr to vmcoreinfo for x86 vmalloc translation.
Add the symbols 'vmlist' and offset 'vm_struct.addr' to the vmcoreinfo[1] data for i386 vmalloc translation. makedumpfile[2] needs VMALLOC_START value for distinguishing a vmalloc address or not, because it should choose suitable translation method. If applying this patch, makedumpfile will be able to take VMALLOC_START value from 'vmlist.addr'. vmcoreinfo[1]: The vmcoreinfo data has the minimum debugging information only for dump filtering. makedumpfile[2] uses it to distinguish unnecessary pages and creates a small dumpfile. makedumpfile[2]: dump filtering command https://sourceforge.net/projects/makedumpfile/ Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d9a9855 commit acd99db

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎kernel/kexec.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,6 +1371,7 @@ static int __init crash_save_vmcoreinfo_init(void)
13711371
VMCOREINFO_SYMBOL(node_online_map);
13721372
VMCOREINFO_SYMBOL(swapper_pg_dir);
13731373
VMCOREINFO_SYMBOL(_stext);
1374+
VMCOREINFO_SYMBOL(vmlist);
13741375

13751376
#ifndef CONFIG_NEED_MULTIPLE_NODES
13761377
VMCOREINFO_SYMBOL(mem_map);
@@ -1406,6 +1407,7 @@ static int __init crash_save_vmcoreinfo_init(void)
14061407
VMCOREINFO_OFFSET(free_area, free_list);
14071408
VMCOREINFO_OFFSET(list_head, next);
14081409
VMCOREINFO_OFFSET(list_head, prev);
1410+
VMCOREINFO_OFFSET(vm_struct, addr);
14091411
VMCOREINFO_LENGTH(zone.free_area, MAX_ORDER);
14101412
VMCOREINFO_LENGTH(free_area.free_list, MIGRATE_TYPES);
14111413
VMCOREINFO_NUMBER(NR_FREE_PAGES);

0 commit comments

Comments
 (0)