gem5
v20.1.0.0
|
#include <profile.hh>
Public Member Functions | |
BaseStackTrace () | |
virtual | ~BaseStackTrace () |
void | clear () |
bool | valid () const |
bool | trace (ThreadContext *tc, const StaticInstPtr &inst) |
const std::vector< Addr > & | getstack () const |
void | dprintf () |
virtual bool | tryGetSymbol (std::string &symbol, Addr addr, const Loader::SymbolTable *symtab) |
void | getSymbol (std::string &symbol, Addr addr, const Loader::SymbolTable *symtab) |
Protected Member Functions | |
virtual void | trace (ThreadContext *tc, bool is_call)=0 |
Protected Attributes | |
ThreadContext * | tc = nullptr |
std::vector< Addr > | stack |
Private Member Functions | |
void | dump () |
Definition at line 48 of file profile.hh.
|
inline |
Definition at line 62 of file profile.hh.
|
inlinevirtual |
Definition at line 63 of file profile.hh.
|
inline |
|
inline |
Definition at line 89 of file profile.hh.
|
private |
Definition at line 41 of file profile.cc.
References addr, DPRINTFN, ThreadContext::getCpuPtr(), getSymbol(), ThreadContext::getSystemPtr(), ArmISA::i, name(), stack, Workload::symtab(), tc, and System::workload.
Referenced by dprintf().
|
inline |
Definition at line 87 of file profile.hh.
References stack.
|
inline |
Definition at line 102 of file profile.hh.
References addr, panic_if, and tryGetSymbol().
Referenced by dump().
|
protectedpure virtual |
Implemented in PowerISA::StackTrace, RiscvISA::StackTrace, SparcISA::StackTrace, ArmISA::StackTrace, MipsISA::StackTrace, and X86ISA::StackTrace.
Referenced by trace().
|
inline |
Definition at line 75 of file profile.hh.
References clear(), StaticInst::isCall(), StaticInst::isReturn(), tc, trace(), and valid().
|
virtual |
Definition at line 57 of file profile.cc.
References addr, Loader::SymbolTable::end(), and Loader::SymbolTable::find().
Referenced by getSymbol().
|
inline |
|
protected |
Definition at line 55 of file profile.hh.
Referenced by clear(), dump(), and getstack().
|
protected |