gem5
v19.0.0.0
|
Dump the guest kernel's dmesg buffer to a file in gem5's output directory and panic. More...
#include <events.hh>
Public Member Functions | |
KernelPanicEvent (PCEventScope *s, const std::string &desc, Addr addr, const std::string &_fname) | |
virtual void | process (ThreadContext *xc) |
![]() | |
PCEvent (PCEventScope *q, const std::string &desc, Addr pc) | |
virtual | ~PCEvent () |
virtual const std::string | name () const |
std::string | descr () const |
Addr | pc () const |
bool | remove () |
Protected Attributes | |
std::string | fname |
![]() | |
std::string | description |
PCEventScope * | scope |
Addr | evpc |
Dump the guest kernel's dmesg buffer to a file in gem5's output directory and panic.
This event uses Linux::dumpDmesg() and comes with the same limitations. Most importantly, the kernel's address mappings must be available to the translating proxy.
|
inline |
Definition at line 93 of file events.hh.
References Linux::DebugPrintkEvent::process().
|
virtual |
Implements PCEvent.
Definition at line 115 of file events.cc.
References OutputDirectory::close(), OutputDirectory::create(), PCEvent::descr(), Linux::dumpDmesg(), ThreadContext::getCpuPtr(), inform, PCEvent::name(), SimObject::name(), X86ISA::os, panic, simout, and OutputStream::stream().