Review Board 2.0.15

kern, arm: Dump dmesg on kernel panic/oops

Review Request #3486 - Created May 27, 2016 and submitted

Andreas Sandberg
Changeset 11501:26b8346413b8
kern, arm: Dump dmesg on kernel panic/oops

Add helper functions to dump the guest kernel's dmesg buffer to a text
file in m5out. This functionality is split into two parts. First, a
dmesg dump function that can be used in other places:

void Linux::dumpDmesg(ThreadContext *, std::ostream &)

This function is used to implement two PCEvents: DmesgDumpEvent and
KernelPanic event. The only difference between the two is that the
latter produces a gem5 panic instead of a warning in addition to
dumping the kernel log.

Change-Id: I6d2af1d666ace57124089648ea906f6c787ac63c
Signed-off-by: Andreas Sandberg <>
Reviewed-by: Nikos Nikoleris <>
Reviewed-by: Gabor Dozsa <>

Review request changed
Updated (June 20, 2016, 6:40 a.m.)

Status: Closed (submitted)