gem5
[DEVELOP-FOR-23.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 | |
KernelPanic (PCEventScope *s, const std::string &desc, Addr addr, const std::string &_fname) | |
void | process (ThreadContext *tc) override |
![]() | |
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.
@warn 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 |
|
overridevirtual |
Implements gem5::PCEvent.
Definition at line 72 of file events.cc.
References gem5::OutputDirectory::close(), gem5::OutputDirectory::create(), gem5::PCEvent::descr(), gem5::linux::dumpDmesg(), fname, inform, gem5::X86ISA::os, panic, and gem5::simout.
|
protected |