um: add a kmsg_dumper
authorThomas Meyer <thomas@m3y3r.de>
Sat, 28 Mar 2015 09:07:37 +0000 (10:07 +0100)
committerRichard Weinberger <richard@nod.at>
Mon, 13 Apr 2015 19:17:37 +0000 (21:17 +0200)
Add a kmsg_dumper, that dumps the kmsg buffer to stdout, when no console
is available. This an enables the printing of early panic() calls
triggered in uml_postsetup().
When a panic() call happens so early in the UML kernel no
earlyprintk/console is available yet, but with a kmsg_dumper in place
the kernel message buffer will be outputted to the user, to give a
better hint, of what the failure was.

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/kernel/Makefile
arch/um/kernel/kmsg_dump.c [new file with mode: 0644]
arch/um/kernel/um_arch.c

Simple merge
Simple merge
Simple merge