gem5  v20.0.0.3
Public Member Functions | Protected Attributes | List of all members
Linux::DmesgDump Class Reference

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

#include <events.hh>

Inheritance diagram for Linux::DmesgDump:
PCEvent

Public Member Functions

 DmesgDump (PCEventScope *s, const std::string &desc, Addr addr, const std::string &_fname)
 
void process (ThreadContext *tc) override
 
- Public Member Functions inherited from 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 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 print a warning.

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 88 of file events.hh.

Constructor & Destructor Documentation

◆ DmesgDump()

Linux::DmesgDump::DmesgDump ( PCEventScope s,
const std::string &  desc,
Addr  addr,
const std::string &  _fname 
)
inline

Definition at line 94 of file events.hh.

References Linux::DebugPrintk< Base >::process().

Member Function Documentation

◆ process()

void Linux::DmesgDump::process ( ThreadContext tc)
overridevirtual

Member Data Documentation

◆ fname

std::string Linux::DmesgDump::fname
protected

Definition at line 91 of file events.hh.

Referenced by process(), and Linux::KernelPanic::process().


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

Generated on Fri Jul 3 2020 15:53:50 for gem5 by doxygen 1.8.13