From 37bb0d0fb30a3548173253b0f19861a7ee4f8fce Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Mon, 20 Jun 2016 14:39:49 +0100 Subject: 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 --- src/kern/SConscript | 1 + 1 file changed, 1 insertion(+) (limited to 'src/kern/SConscript') diff --git a/src/kern/SConscript b/src/kern/SConscript index 7bcf54213..305cf6381 100644 --- a/src/kern/SConscript +++ b/src/kern/SConscript @@ -36,6 +36,7 @@ if env['TARGET_ISA'] == 'null': Source('kernel_stats.cc') Source('linux/events.cc') Source('linux/linux.cc') +Source('linux/helpers.cc') Source('linux/printk.cc') Source('freebsd/events.cc') Source('operatingsystem.cc') -- cgit v1.2.3