gem5  v22.1.0.0
Public Member Functions | Protected Attributes | List of all members
gem5::linux::KernelPanic Class Reference

Dump the guest kernel's dmesg buffer to a file in gem5's output directory and panic. More...

#include <events.hh>

Inheritance diagram for gem5::linux::KernelPanic:
gem5::PCEvent

Public Member Functions

 KernelPanic (PCEventScope *s, const std::string &desc, Addr addr, const std::string &_fname)
 
void process (ThreadContext *tc) override
 
- Public Member Functions inherited from gem5::PCEvent
 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
 
- Protected Attributes inherited from gem5::PCEvent
std::string description
 
PCEventScopescope
 
Addr evpc
 

Detailed Description

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.

Definition at line 115 of file events.hh.

Constructor & Destructor Documentation

◆ KernelPanic()

gem5::linux::KernelPanic::KernelPanic ( PCEventScope s,
const std::string &  desc,
Addr  addr,
const std::string &  _fname 
)
inline

Definition at line 121 of file events.hh.

Member Function Documentation

◆ process()

void gem5::linux::KernelPanic::process ( ThreadContext tc)
overridevirtual

Member Data Documentation

◆ fname

std::string gem5::linux::KernelPanic::fname
protected

Definition at line 118 of file events.hh.

Referenced by process().


The documentation for this class was generated from the following files:

Generated on Wed Dec 21 2022 10:24:14 for gem5 by doxygen 1.9.1