/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/ |
H A D | fp_unwinder.cpp | 41 uintptr_t stackBottom = 0; in Unwind() local 45 GetMainStackRange(stackBottom, stackTop); in Unwind() 47 GetSelfStackRange(stackBottom, stackTop); in Unwind() 48 if (!(stackPtr >= stackBottom && stackPtr < stackTop)) { in Unwind() 49 GetSigAltStackRange(stackBottom, stackTop); in Unwind() 50 if (stackPtr < stackBottom || stackPtr >= stackTop) { in Unwind() 56 if (fp < stackBottom || fp >= stackTop - sizeof(uintptr_t)) { in Unwind()
|
H A D | fp_unwinder.h | 40 static void GetStackRange(uintptr_t& stackBottom, uintptr_t& stackTop); 43 static void GetSignalAltStackRange(uintptr_t& stackBottom, uintptr_t& stackTop);
|
/ohos5.0/base/hiviewdfx/faultloggerd/common/dfxutil/ |
H A D | stack_util.h | 82 AT_UNUSED inline bool GetMainStackRange(uintptr_t& stackBottom, uintptr_t& stackTop) in GetMainStackRange() argument 87 stackBottom = g_stackMapStart; in GetMainStackRange() 92 AT_UNUSED static bool GetSelfStackRange(uintptr_t& stackBottom, uintptr_t& stackTop) in GetSelfStackRange() argument 102 stackBottom = reinterpret_cast<uintptr_t>(base); in GetSelfStackRange() 110 AT_UNUSED static bool GetSigAltStackRange(uintptr_t& stackBottom, uintptr_t& stackTop) in GetSigAltStackRange() argument 116 stackBottom = reinterpret_cast<uintptr_t>(altStack.ss_sp); in GetSigAltStackRange()
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
H A D | accessors_test.cpp | 53 uintptr_t stackBottom = 999; variable 56 ASSERT_FALSE(accessors->IsValidFrame(addr, stackBottom, stackTop)); 57 stackBottom = 1; 59 ASSERT_TRUE(accessors->IsValidFrame(addr, stackBottom, stackTop));
|
H A D | unwinder_test.cpp | 68 uintptr_t stackBottom = 1; variable 71 ASSERT_TRUE(unwinder->GetStackRange(stackBottom, stackTop)); 88 uintptr_t stackBottom = 1; variable 93 std::thread th([unwinder, &stackBottom, &stackTop, &result] { in __anon0ec0e5150102() 94 result = unwinder->GetStackRange(stackBottom, stackTop); in __anon0ec0e5150102() 327 ASSERT_TRUE(unwinder->GetStackRange(stackBottom, stackTop)); 331 context.stackBottom = stackBottom; 457 context.stackBottom = stackBottom; 532 context.stackBottom = stackBottom; 579 context.stackBottom = stackBottom; [all …]
|
H A D | memory_test.cpp | 114 ASSERT_TRUE(GetSelfStackRange(ctx.stackBottom, ctx.stackTop)); 153 ASSERT_TRUE(GetSelfStackRange(ctx.stackBottom, ctx.stackTop)); 183 ASSERT_TRUE(GetSelfStackRange(ctx.stackBottom, ctx.stackTop)); 210 ASSERT_TRUE(GetSelfStackRange(ctx.stackBottom, ctx.stackTop));
|
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | unwinder.cpp | 174 bool GetStackRange(uintptr_t& stackBottom, uintptr_t& stackTop); 357 return impl_->GetStackRange(stackBottom, stackTop); in GetStackRange() 521 return GetMainStackRangeInner(stackBottom, stackTop); in GetStackRange() 523 return GetSelfStackRange(stackBottom, stackTop); in GetStackRange() 556 uintptr_t stackBottom = 1; in UnwindLocalWithTid() local 559 if (!GetMainStackRangeInner(stackBottom, stackTop)) { in UnwindLocalWithTid() 566 if (stackBottom == 0 || stackTop == 0) { in UnwindLocalWithTid() 576 context.stackBottom = stackBottom; in UnwindLocalWithTid() 597 uintptr_t stackBottom = 1; in UnwindLocal() local 599 if (!GetStackRange(stackBottom, stackTop)) { in UnwindLocal() [all …]
|
H A D | dfx_accessors.cpp | 88 bool DfxAccessorsLocal::IsValidFrame(uintptr_t addr, uintptr_t stackBottom, uintptr_t stackTop) in IsValidFrame() argument 90 if (UNLIKELY(stackTop < stackBottom)) { in IsValidFrame() 93 if ((addr >= stackBottom) && (addr + sizeof(uintptr_t) < stackTop)) { in IsValidFrame() 109 …if ((ctx != nullptr) && (ctx->stackCheck == true) && (!IsValidFrame(addr, ctx->stackBottom, ctx->s… in AccessMem()
|
H A D | thread_context.cpp | 215 if (!GetSelfStackRange(ctxPtr->stackBottom, ctxPtr->stackTop)) { in CopyContextAndWaitTimeout() 227 bool LocalThreadContext::GetStackRange(int32_t tid, uintptr_t& stackBottom, uintptr_t& stackTop) in GetStackRange() argument 233 stackBottom = ctxPtr->stackBottom; in GetStackRange()
|
/ohos5.0/foundation/resourceschedule/ffrt/src/dfx/dump/ |
H A D | dump.cpp | 78 …uintptr_t stackBottom = reinterpret_cast<uintptr_t>(reinterpret_cast<char*>(co) + sizeof(CoRoutine… in DumpTask() local 79 uintptr_t stackTop = static_cast<uintptr_t>(stackBottom + co->stkMem.size); in DumpTask() 88 context.stackBottom = stackBottom; in DumpTask()
|
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/ |
H A D | thread_context.h | 46 uintptr_t stackBottom; member 70 bool GetStackRange(int32_t tid, uintptr_t& stackBottom, uintptr_t& stackTop);
|
H A D | unwind_context.h | 66 uintptr_t stackBottom = 0; member
|
H A D | dfx_accessors.h | 55 bool IsValidFrame(uintptr_t addr, uintptr_t stackBottom, uintptr_t stackTop);
|
H A D | unwinder.h | 61 bool GetStackRange(uintptr_t& stackBottom, uintptr_t& stackTop);
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/fuzztest/faultloggerdunwinder_fuzzer/ |
H A D | faultloggerdunwinder_fuzzer.cpp | 242 uintptr_t stackBottom; in TestThreadContext() local 244 unsigned int offsetTotalLength = sizeof(tid) + sizeof(stackBottom) + sizeof(stackTop); in TestThreadContext() 250 STREAM_TO_VALUEINFO(data, stackBottom); in TestThreadContext() 254 context.GetStackRange(tid, stackBottom, stackTop); in TestThreadContext()
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/benchmarktest/unwinder/ |
H A D | unwind_local_benchmark.cpp | 109 uintptr_t stackBottom = 1, stackTop = static_cast<uintptr_t>(-1); in UnwinderLocalFp() local 110 if (!dataPtr->unwinder->GetStackRange(stackBottom, stackTop)) { in UnwinderLocalFp() 122 context.stackBottom = stackBottom; in UnwinderLocalFp()
|