Home
last modified time | relevance | path

Searched refs:stackBottom (Results 1 – 16 of 16) sorted by relevance

/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/
H A Dfp_unwinder.cpp41 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 Dfp_unwinder.h40 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 Dstack_util.h82 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 Daccessors_test.cpp53 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 Dunwinder_test.cpp68 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 Dmemory_test.cpp114 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 Dunwinder.cpp174 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 Ddfx_accessors.cpp88 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 Dthread_context.cpp215 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 Ddump.cpp78 …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 Dthread_context.h46 uintptr_t stackBottom; member
70 bool GetStackRange(int32_t tid, uintptr_t& stackBottom, uintptr_t& stackTop);
H A Dunwind_context.h66 uintptr_t stackBottom = 0; member
H A Ddfx_accessors.h55 bool IsValidFrame(uintptr_t addr, uintptr_t stackBottom, uintptr_t stackTop);
H A Dunwinder.h61 bool GetStackRange(uintptr_t& stackBottom, uintptr_t& stackTop);
/ohos5.0/base/hiviewdfx/faultloggerd/test/fuzztest/faultloggerdunwinder_fuzzer/
H A Dfaultloggerdunwinder_fuzzer.cpp242 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 Dunwind_local_benchmark.cpp109 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()