gem5 v25.0.0.1
Loading...
Searching...
No Matches
gem5::linux::PanicOrOopsEvent Class Reference

Specify what to do on a Linux Kernel Panic or Oops. More...

#include <events.hh>

Inheritance diagram for gem5::linux::PanicOrOopsEvent:
gem5::PCEvent

Public Member Functions

 PanicOrOopsEvent (PCEventScope *s, const std::string &desc, Addr addr, const std::string &_fname, const KernelPanicOopsBehaviour _behaviour)
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
KernelPanicOopsBehaviour behaviour
Protected Attributes inherited from gem5::PCEvent
std::string description
PCEventScopescope
Addr evpc

Detailed Description

Specify what to do on a Linux Kernel Panic or Oops.

@warn This event may use 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 93 of file events.hh.

Constructor & Destructor Documentation

◆ PanicOrOopsEvent()

gem5::linux::PanicOrOopsEvent::PanicOrOopsEvent ( PCEventScope * s,
const std::string & desc,
Addr addr,
const std::string & _fname,
const KernelPanicOopsBehaviour _behaviour )
inline

Definition at line 100 of file events.hh.

References gem5::X86ISA::addr, behaviour, fname, gem5::PCEvent::PCEvent(), and gem5::ArmISA::s.

Member Function Documentation

◆ process()

void gem5::linux::PanicOrOopsEvent::process ( ThreadContext * tc)
overridevirtual

Member Data Documentation

◆ behaviour

KernelPanicOopsBehaviour gem5::linux::PanicOrOopsEvent::behaviour
protected

Definition at line 97 of file events.hh.

Referenced by PanicOrOopsEvent(), and process().

◆ fname

std::string gem5::linux::PanicOrOopsEvent::fname
protected

Definition at line 96 of file events.hh.

Referenced by PanicOrOopsEvent(), and process().


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

Generated on Sat Oct 18 2025 08:06:59 for gem5 by doxygen 1.14.0