gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::debug::Flag Class Referenceabstract

#include <debug.hh>

Inheritance diagram for gem5::debug::Flag:
gem5::debug::CompoundFlag gem5::debug::SimpleFlag gem5::debug::AllFlagsFlag

Public Member Functions

 Flag (const char *name, const char *desc)
 
virtual ~Flag ()
 
std::string name () const
 
std::string desc () const
 
bool tracing () const
 
virtual void enable ()=0
 
virtual void disable ()=0
 
 operator bool () const
 

Static Public Member Functions

static void globalEnable ()
 
static void globalDisable ()
 

Protected Member Functions

virtual void sync ()
 

Protected Attributes

bool _tracing = false
 
const char * _name
 
const char * _desc
 

Static Protected Attributes

static bool _globalEnable = false
 

Detailed Description

Definition at line 61 of file debug.hh.

Constructor & Destructor Documentation

◆ Flag()

gem5::debug::Flag::Flag ( const char * name,
const char * desc )

Definition at line 100 of file debug.cc.

References gem5::debug::allFlags(), name(), panic_if, and sync().

◆ ~Flag()

gem5::debug::Flag::~Flag ( )
virtual

Definition at line 111 of file debug.cc.

References gem5::debug::allFlags(), and name().

Member Function Documentation

◆ desc()

std::string gem5::debug::Flag::desc ( ) const
inline

Definition at line 78 of file debug.hh.

References _desc.

Referenced by gem5::pybind_init_debug(), and TEST().

◆ disable()

virtual void gem5::debug::Flag::disable ( )
pure virtual

◆ enable()

virtual void gem5::debug::Flag::enable ( )
pure virtual

◆ globalDisable()

void gem5::debug::Flag::globalDisable ( )
static

Definition at line 125 of file debug.cc.

References _globalEnable, gem5::debug::allFlags(), and gem5::ArmISA::i.

Referenced by gem5::trace::disable(), TEST(), and TEST().

◆ globalEnable()

void gem5::debug::Flag::globalEnable ( )
static

◆ name()

std::string gem5::debug::Flag::name ( ) const
inline

◆ operator bool()

gem5::debug::Flag::operator bool ( ) const
inline

Definition at line 85 of file debug.hh.

References tracing().

◆ sync()

virtual void gem5::debug::Flag::sync ( )
inlineprotectedvirtual

Reimplemented in gem5::debug::SimpleFlag.

Definition at line 71 of file debug.hh.

Referenced by Flag().

◆ tracing()

bool gem5::debug::Flag::tracing ( ) const
inline

Definition at line 80 of file debug.hh.

References _tracing.

Referenced by operator bool(), gem5::pybind_init_debug(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().

Member Data Documentation

◆ _desc

const char* gem5::debug::Flag::_desc
protected

Definition at line 69 of file debug.hh.

Referenced by desc().

◆ _globalEnable

bool gem5::debug::Flag::_globalEnable = false
staticprotected

Definition at line 64 of file debug.hh.

Referenced by globalDisable(), globalEnable(), and gem5::debug::SimpleFlag::sync().

◆ _name

const char* gem5::debug::Flag::_name
protected

Definition at line 68 of file debug.hh.

Referenced by name().

◆ _tracing

bool gem5::debug::Flag::_tracing = false
protected

Definition at line 66 of file debug.hh.

Referenced by gem5::debug::SimpleFlag::sync(), and tracing().


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

Generated on Tue Jun 18 2024 16:24:19 for gem5 by doxygen 1.11.0