lkml.org 
[lkml]   [2018]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH 1/2 v2] kdump: add the vmcoreinfo documentation
Date
-----Original Message-----
> > makedumpfile doesn't have any switch which dumps VMCOREINFO from kcore
> > for now. (I'm thinking to have makedumpfile dump it as debug message,
> > though.)
>
> Might be useful as people are looking into using VMCOREINFO when
> debugging a live kernel...

Now makedumpfile in 'devel' branch can print VMCOREINFO in /proc/kcore
as debug message with the following command:

# ./makedumpfile --mem-usage /proc/kcore -D
...
VMCOREINFO :
OSRELEASE=4.20.0-0.rc2.git0.1.fc30.x86_64
PAGESIZE=4096
page_size : 4096
SYMBOL(init_uts_ns)=ffffffff84213540
...

Also, it seems that recent crash utility in git repo with kernel 4.19
or newer can dump it with 'help -n' command:

# ./crash vmlinux /proc/kcore
...
crash> help -n
...
Elf64_Nhdr:
n_namesz: 11 ("VMCOREINFO")
n_descsz: 1955
n_type: 0 (unknown)

OSRELEASE=4.20.0-0.rc2.git0.1.fc30.x86_64
PAGESIZE=4096
SYMBOL(init_uts_ns)=ffffffff84213540
...

Thanks,
Kazu
\
 
 \ /
  Last update: 2018-12-10 22:14    [W:0.071 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site