gem5  v20.1.0.0
Classes | Namespaces | Functions
trace.hh File Reference
#include <string>
#include "base/cprintf.hh"
#include "base/debug.hh"
#include "base/match.hh"
#include "base/types.hh"
#include "sim/core.hh"

Go to the source code of this file.

Classes

class  Trace::Logger
 Debug logging base class. More...
 
class  Trace::OstreamLogger
 Logging wrapper for ostreams with the format: <when>: <name>: <message-body> More...
 
struct  StringWrap
 
class  Named
 

Namespaces

 Trace
 

Macros

#define DDUMP(x, data, count)   do {} while (0)
 DPRINTF is a debugging trace facility that allows one to selectively enable tracing statements. More...
 
#define DPRINTF(x, ...)   do {} while (0)
 
#define DPRINTFS(x, ...)   do {} while (0)
 
#define DPRINTFR(...)   do {} while (0)
 
#define DDUMPN(data, count)   do {} while (0)
 
#define DPRINTFN(...)   do {} while (0)
 
#define DPRINTFNR(...)   do {} while (0)
 
#define DPRINTF_UNCONDITIONAL(x, ...)   do {} while (0)
 

Functions

LoggerTrace::getDebugLogger ()
 Get the current global debug logger. More...
 
std::ostream & Trace::output ()
 Get the ostream from the current global logger. More...
 
void Trace::setDebugLogger (Logger *logger)
 Delete the current global logger and assign a new one. More...
 
void Trace::enable ()
 Enable/disable debug logging. More...
 
void Trace::disable ()
 
const std::string & name ()
 

Macro Definition Documentation

◆ DDUMP

#define DDUMP (   x,
  data,
  count 
)    do {} while (0)

DPRINTF is a debugging trace facility that allows one to selectively enable tracing statements.

To use DPRINTF, there must be a function or functor called name() that returns a const std::string & in the current scope.

If you desire that the automatic printing not occur, use DPRINTFR (R for raw)

Definition at line 233 of file trace.hh.

◆ DDUMPN

#define DDUMPN (   data,
  count 
)    do {} while (0)

Definition at line 237 of file trace.hh.

◆ DPRINTF

#define DPRINTF (   x,
  ... 
)    do {} while (0)

Definition at line 234 of file trace.hh.

◆ DPRINTFN

#define DPRINTFN (   ...)    do {} while (0)

Definition at line 238 of file trace.hh.

◆ DPRINTFNR

#define DPRINTFNR (   ...)    do {} while (0)

Definition at line 239 of file trace.hh.

◆ DPRINTFR

#define DPRINTFR (   ...)    do {} while (0)

Definition at line 236 of file trace.hh.

◆ DPRINTFS

#define DPRINTFS (   x,
  ... 
)    do {} while (0)

Definition at line 235 of file trace.hh.

Function Documentation

◆ name()

const std::string& name ( )

Definition at line 50 of file trace.cc.

Referenced by sc_core::sc_in< sc_dt::sc_lv< W > >::add_trace(), sc_core::sc_in< bool >::add_trace(), sc_core::sc_in< sc_dt::sc_logic >::add_trace(), Stats::Hdf5::addMetaData(), sc_gem5::VcdTraceFile::addNewTraceVal(), Stats::Group::addStatGroup(), sc_gem5::VcdTraceFile::addTraceVal(), sc_gem5::VcdTraceScope::addValue(), arrayParamIn(), arrayParamOut(), Stats::Hdf5::beginGroup(), Stats::Text::beginGroup(), sc_gem5::TlmInitiatorBaseWrapper< BITWIDTH >::bind(), sc_gem5::ScPortWrapper< IF >::bind(), sc_gem5::ScInterfaceWrapper< IF >::bind(), sc_gem5::ScExportWrapper< IF >::bind(), sc_core::sc_signal< sc_dt::sc_int< W > >::check_writer(), sc_core::sc_signal< sc_dt::sc_uint< W > >::check_writer(), sc_core::sc_signal< sc_dt::sc_biguint< W > >::check_writer(), sc_core::sc_signal< sc_dt::sc_bigint< W > >::check_writer(), TraceCPU::checkAndSchedExitEvent(), OutputDirectory::checkForStdio(), checkSeg(), OutputDirectory::create(), OutputDirectory::createSubdirectory(), ObjectMatch::domatch(), Trace::Logger::dprintf(), Trace::Logger::dprintf_flag(), BaseStackTrace::dump(), Trace::Logger::dump(), Event::dump(), ArmKvmCPU::dumpKvmStateCoProc(), dumpSimcall(), sc_core::sc_in_rv< W >::end_of_elaboration(), Iris::ThreadContext::extractResourceId(), Iris::ThreadContext::extractResourceMap(), Loader::SymbolTable::find(), OutputDirectory::find(), sc_gem5::findEvent(), Debug::findFlag(), sc_gem5::findObject(), OutputDirectory::findOrCreate(), StubSlavePortHandler::getExternalPort(), gethostnameFunc(), Stats::Group::Group(), Loader::ElfObject::handleLoadableSegment(), MSHR::handleSnoop(), StatTest::init(), TraceCPU::init(), X86ISA::Interrupts::init(), Iris::ThreadContext::instanceRegistryChanged(), OutputDirectory::isAbsolute(), OutputDirectory::isFile(), Loader::SymbolTable::load(), Trace::OstreamLogger::logMessage(), ObjectMatch::match(), sc_gem5::newCThreadProcess(), sc_gem5::newMethodProcess(), sc_gem5::newThreadProcess(), sc_gem5::VcdTraceFile::nextSignalName(), Nop(), objParamIn(), OutputDirectory::open(), sc_core::sc_attr_cltn::operator[](), optParamIn(), sc_gem5::VcdTraceScope::output(), OutputDirectory::OutputDirectory(), paramIn(), paramOut(), Iris::ThreadContext::phaseInitLeave(), BaseCPU::pmuProbePoint(), pybind_init_stats(), sc_core::sc_signal< sc_dt::sc_int< W > >::register_port(), sc_core::sc_signal< sc_dt::sc_uint< W > >::register_port(), sc_core::sc_signal< sc_dt::sc_biguint< W > >::register_port(), sc_core::sc_signal< sc_dt::sc_bigint< W > >::register_port(), BaseCPU::registerThreadContexts(), Minor::MinorStats::regStats(), SMMUv3BaseCache::regStats(), Ticked::regStats(), MemDepUnit< MemDepPred, Impl >::regStats(), InstructionQueue< Impl >::regStats(), MinorCPU::regStats(), DefaultIEW< Impl >::regStats(), BaseSimpleCPU::regStats(), FullO3CPU< O3CPUImpl >::regStats(), CheckerThreadContext< TC >::regStats(), BaseCPU::regStats(), WalkCache::regStats(), sc_core::sc_attr_cltn::remove(), OutputDirectory::remove(), OutputDirectory::resolve(), Stats::resolve(), PybindSimObjectResolver::resolveSimObject(), CxxConfigManager::SimObjectResolver::resolveSimObject(), Stats::Group::resolveStat(), sc_core::sc_create_vcd_trace_file(), sc_core::sc_find_event(), sc_core::sc_find_object(), sc_core::sc_hierarchical_name_exists(), SC_MODULE(), sc_core::sc_module_name::sc_module_name(), sc_core::sc_report_compose_message(), sc_core::sc_trace(), sc_core::sc_trace< bool >(), sc_core::sc_trace< sc_dt::sc_logic >(), Serializable::ScopedCheckpointSection::ScopedCheckpointSection(), FastModel::ScxEvsCortexA76< Types >::ScxEvsCortexA76(), Serializable::serializeSection(), TimerTable::setDescription(), CheckpointIn::setDir(), sc_gem5::spawnWork(), BaseKvmCPU::startup(), Stats::Text::statName(), SparcISA::unameFunc(), unameFunc(), unameFunc32(), unameFunc64(), Loader::SymbolTable::unserialize(), MemState::unserialize(), Event::unserialize(), Serializable::unserializeSection(), TraceCPU::updateNumOps(), and Stats::validateStatName().


Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17