gem5  v22.1.0.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
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 62 of file debug.hh.

Constructor & Destructor Documentation

◆ Flag()

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

Definition at line 101 of file debug.cc.

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

◆ ~Flag()

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

Definition at line 112 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 79 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 126 of file debug.cc.

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

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

◆ globalEnable()

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

Definition at line 118 of file debug.cc.

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

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

◆ name()

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

Definition at line 78 of file debug.hh.

References _name.

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

◆ operator bool()

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

Definition at line 86 of file debug.hh.

References tracing().

◆ sync()

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

Reimplemented in gem5::debug::SimpleFlag.

Definition at line 72 of file debug.hh.

Referenced by Flag().

◆ tracing()

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

Definition at line 81 of file debug.hh.

References _tracing.

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

Member Data Documentation

◆ _desc

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

Definition at line 70 of file debug.hh.

Referenced by desc().

◆ _globalEnable

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

Definition at line 65 of file debug.hh.

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

◆ _name

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

Definition at line 69 of file debug.hh.

Referenced by name().

◆ _tracing

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

Definition at line 67 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 Wed Dec 21 2022 10:23:40 for gem5 by doxygen 1.9.1