Lines Matching defs:UnwindState
228 struct UnwindState { struct
230 const ProfiledBinary *Binary;
232 struct ProfiledFrame {
269 UnwindState(const PerfSample *Sample, const ProfiledBinary *Binary) in UnwindState() argument
275 bool validateInitialState() { in validateInitialState()
293 void checkStateConsistency() { in checkStateConsistency()
298 void setInvalid() { Invalid = true; } in setInvalid()
299 bool hasNextLBR() const { return LBRIndex < LBRStack.size(); } in hasNextLBR()
300 uint64_t getCurrentLBRSource() const { return LBRStack[LBRIndex].Source; } in getCurrentLBRSource()
301 uint64_t getCurrentLBRTarget() const { return LBRStack[LBRIndex].Target; } in getCurrentLBRTarget()
302 const LBREntry &getCurrentLBR() const { return LBRStack[LBRIndex]; } in getCurrentLBR()
303 bool IsLastLBR() const { return LBRIndex == 0; } in IsLastLBR()
304 bool getLBRStackSize() const { return LBRStack.size(); } in getLBRStackSize()
305 void advanceLBR() { LBRIndex++; } in advanceLBR()
306 ProfiledFrame *getParentFrame() { return CurrentLeafFrame->Parent; } in getParentFrame()
308 void pushFrame(uint64_t Address) { in pushFrame()
312 void switchToFrame(uint64_t Address) { in switchToFrame()
318 void popFrame() { CurrentLeafFrame = CurrentLeafFrame->Parent; } in popFrame()
320 void clearCallStack() { CurrentLeafFrame = &DummyTrieRoot; } in clearCallStack()
322 void initFrameTrie(const SmallVectorImpl<uint64_t> &CallStack) { in initFrameTrie()
330 ProfiledFrame *getDummyRootPtr() { return &DummyTrieRoot; } in getDummyRootPtr()