|
gem5 [DEVELOP-FOR-25.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.
References stack.
|
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, getSymbol(), gem5::ArmISA::i, name(), stack, and tc.
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.
References tc.
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 BaseStackTrace(), clear(), dump(), and getstack().
|
protected |
Definition at line 57 of file profile.hh.
Referenced by clear(), dump(), gem5::ArmISA::StackTrace::trace(), trace(), trace(), gem5::MipsISA::StackTrace::trace(), gem5::PowerISA::StackTrace::trace(), gem5::RiscvISA::StackTrace::trace(), gem5::SparcISA::StackTrace::trace(), gem5::X86ISA::StackTrace::trace(), and valid().