/base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
H A D | accessors_test.cpp | 53 uintptr_t stackBottom = 999; in HWTEST_F() local 56 ASSERT_FALSE(accessors->IsValidFrame(addr, stackBottom, stackTop)); in HWTEST_F() 57 stackBottom = 1; in HWTEST_F() 59 ASSERT_TRUE(accessors->IsValidFrame(addr, stackBottom, stackTop)); in HWTEST_F()
|
H A D | unwinder_test.cpp | 68 uintptr_t stackBottom = 1; in HWTEST_F() local 70 GTEST_LOG_(INFO) << "when pid == tid and maps_ != null, GetStackRange(stackBottom, stackTop) is true"; in HWTEST_F() 71 ASSERT_TRUE(unwinder->GetStackRange(stackBottom, stackTop)); in HWTEST_F() 74 GTEST_LOG_(INFO) << "when pid == tid and maps_ == null, GetStackRange(stackBottom, stackTop) is false"; in HWTEST_F() 75 ASSERT_TRUE(unwinderNegative->GetStackRange(stackBottom, stackTop)); in HWTEST_F() 88 uintptr_t stackBottom = 1; in HWTEST_F() local 92 "GetStackRange(stackBottom, stackTop) is true"; in HWTEST_F() 93 std::thread th([unwinder, &stackBottom, &stackTop, &result] { in HWTEST_F() 94 result = unwinder->GetStackRange(stackBottom, stackTop); in HWTEST_F() 326 uintptr_t stackBottom in HWTEST_F() local 450 uintptr_t stackBottom = 1, stackTop = static_cast<uintptr_t>(-1); HWTEST_F() local 522 uintptr_t stackBottom = 1, stackTop = static_cast<uintptr_t>(-1); HWTEST_F() local 572 uintptr_t stackBottom = 1, stackTop = static_cast<uintptr_t>(-1); HWTEST_F() local 610 uintptr_t stackBottom = 1, stackTop = static_cast<uintptr_t>(-1); HWTEST_F() local [all...] |
H A D | memory_test.cpp | 114 ASSERT_TRUE(GetSelfStackRange(ctx.stackBottom, ctx.stackTop)); in HWTEST_F() 153 ASSERT_TRUE(GetSelfStackRange(ctx.stackBottom, ctx.stackTop)); in HWTEST_F() 183 ASSERT_TRUE(GetSelfStackRange(ctx.stackBottom, ctx.stackTop)); in HWTEST_F() 210 ASSERT_TRUE(GetSelfStackRange(ctx.stackBottom, ctx.stackTop)); in HWTEST_F()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/ |
H A D | fp_unwinder.cpp | 40 uintptr_t stackBottom = 0; in Unwind() local 44 GetMainStackRange(stackBottom, stackTop); in Unwind() 46 GetSelfStackRange(stackBottom, stackTop); in Unwind() 47 if (!(stackPtr >= stackBottom && stackPtr < stackTop)) { in Unwind() 48 GetSigAltStackRange(stackBottom, stackTop); in Unwind() 49 if (stackPtr < stackBottom || stackPtr >= stackTop) { in Unwind() 55 if (fp < stackBottom || fp >= stackTop - sizeof(uintptr_t)) { in Unwind()
|
/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()
|
/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 | unwinder.h | 61 bool GetStackRange(uintptr_t& stackBottom, uintptr_t& stackTop);
|
H A D | dfx_accessors.h | 55 bool IsValidFrame(uintptr_t addr, uintptr_t stackBottom, uintptr_t stackTop);
|
/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()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
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->stackTop))) { 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()
|
H A D | unwinder.cpp | 167 bool GetStackRange(uintptr_t& stackBottom, uintptr_t& stackTop); 226 bool GetMainStackRangeInner(uintptr_t& stackBottom, uintptr_t& stackTop); 344 bool Unwinder::GetStackRange(uintptr_t& stackBottom, uintptr_t& stackTop) in GetStackRange() argument 346 return impl_->GetStackRange(stackBottom, stackTop); in GetStackRange() 497 bool Unwinder::Impl::GetMainStackRangeInner(uintptr_t& stackBottom, uintptr_t& stackTop) in GetMainStackRangeInner() argument 499 if (maps_ != nullptr && !maps_->GetStackRange(stackBottom, stackTop)) { in GetMainStackRangeInner() 501 } else if (maps_ == nullptr && !GetMainStackRange(stackBottom, stackTop)) { in GetMainStackRangeInner() 507 bool Unwinder::Impl::GetStackRange(uintptr_t& stackBottom, uintptr_t& stackTop) in GetStackRange() argument 510 return GetMainStackRangeInner(stackBottom, stackTop); in GetStackRange() 512 return GetSelfStackRange(stackBottom, stackTo in GetStackRange() 587 uintptr_t stackBottom = 1; UnwindLocal() local [all...] |
/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()
|