gem5  v21.1.0.2
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

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 96 of file debug.cc.

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

◆ ~Flag()

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

Definition at line 109 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 123 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 115 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 Tue Sep 21 2021 12:28:59 for gem5 by doxygen 1.8.17