gem5 v24.0.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 51 of file profile.hh.
|
inline |
Definition at line 65 of file profile.hh.
|
inlinevirtual |
Definition at line 66 of file profile.hh.
|
inline |
|
inline |
Definition at line 92 of file profile.hh.
References dump().
|
private |
Definition at line 44 of file profile.cc.
References gem5::X86ISA::addr, DPRINTFN, gem5::ThreadContext::getCpuPtr(), getSymbol(), gem5::ThreadContext::getSystemPtr(), gem5::ArmISA::i, gem5::Named::name(), name(), stack, gem5::Workload::symtab(), tc, and gem5::System::workload.
Referenced by dprintf().
|
inline |
Definition at line 90 of file profile.hh.
References stack.
|
inline |
Definition at line 105 of file profile.hh.
References gem5::X86ISA::addr, panic_if, and tryGetSymbol().
Referenced by dump().
|
protectedpure virtual |
Implemented in gem5::ArmISA::StackTrace, gem5::MipsISA::StackTrace, gem5::PowerISA::StackTrace, gem5::RiscvISA::StackTrace, gem5::SparcISA::StackTrace, and gem5::X86ISA::StackTrace.
Referenced by trace().
|
inline |
Definition at line 78 of file profile.hh.
References clear(), gem5::StaticInst::isCall(), gem5::StaticInst::isReturn(), tc, trace(), and valid().
|
virtual |
Definition at line 60 of file profile.cc.
References gem5::X86ISA::addr, gem5::loader::SymbolTable::end(), and gem5::loader::SymbolTable::find().
Referenced by getSymbol().
|
inline |
|
protected |
Definition at line 58 of file profile.hh.
Referenced by clear(), dump(), and getstack().
|
protected |