• Neil Horman's avatar
    kexec: add dmesg log symbols to /proc/vmcoreinfo lists · 04d491ab
    Neil Horman authored
    It would be nice to be able to extract the dmesg log from a vmcore file
    without needing to keep the debug symbols for the running kernel handy all
    the time.  We have a facility to do this in /proc/vmcore.  This patch adds
    the log_buf and log_end symbols to the vmcoreinfo area so that tools (like
    makedumpfile) can easily extract the dmesg logs from a vmcore image.
    
    [akpm@linux-foundation.org: several fixes and cleanups]
    [akpm@linux-foundation.org: fix unused log_buf_kexec_setup()]
    [akpm@linux-foundation.org: build fix]
    Signed-off-by: default avatarNeil Horman <nhorman@tuxdriver.com>
    Cc: Simon Horman <horms@verge.net.au>
    Acked-by: default avatarVivek Goyal <vgoyal@redhat.com>
    Cc: Neil Horman <nhorman@tuxdriver.com>
    Cc: Simon Horman <horms@verge.net.au>
    Cc: Vivek Goyal <vgoyal@redhat.com>
    Cc: Randy Dunlap <randy.dunlap@oracle.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    04d491ab
kexec.c 37.5 KB