Home
last modified time | relevance | path

Searched refs:stackTop (Results 1 – 21 of 21) sorted by relevance

/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/
H A Dfp_unwinder.cpp42 uintptr_t stackTop = 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
88 stackTop = g_stackMapEnd; in GetMainStackRange()
92 AT_UNUSED static bool GetSelfStackRange(uintptr_t& stackBottom, uintptr_t& stackTop) in GetSelfStackRange() argument
103 stackTop = reinterpret_cast<uintptr_t>(base) + size; in GetSelfStackRange()
110 AT_UNUSED static bool GetSigAltStackRange(uintptr_t& stackBottom, uintptr_t& stackTop) in GetSigAltStackRange() argument
117 stackTop = reinterpret_cast<uintptr_t>(altStack.ss_sp) + altStack.ss_size; in GetSigAltStackRange()
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Dunwinder_test.cpp69 uintptr_t stackTop = static_cast<uintptr_t>(-1); variable
71 ASSERT_TRUE(unwinder->GetStackRange(stackBottom, stackTop));
89 uintptr_t stackTop = static_cast<uintptr_t>(-1); variable
94 result = unwinder->GetStackRange(stackBottom, stackTop); in __anon0ec0e5150102()
332 context.stackTop = stackTop;
458 context.stackTop = stackTop;
533 context.stackTop = stackTop;
580 context.stackTop = stackTop;
591 uintptr_t failSp = stackTop + 1; // arm cfa get from sp
618 context.stackTop = stackTop;
[all …]
H A Daccessors_test.cpp55 uintptr_t stackTop = static_cast<uintptr_t>(1); variable
56 ASSERT_FALSE(accessors->IsValidFrame(addr, stackBottom, stackTop));
58 stackTop = static_cast<uintptr_t>(-1);
59 ASSERT_TRUE(accessors->IsValidFrame(addr, stackBottom, stackTop));
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/tools/crasher_c/
H A Ddfx_crasher.c273 register void* stackTop; in StackTop() local
275 __asm__ volatile ("mov %0, sp":"=r"(stackTop)::); in StackTop()
276 printf("crasher_c: stack top is = %08x\n", (unsigned int)stackTop); in StackTop()
278 __asm__ volatile ("mov %0, sp":"=r"(stackTop)::); in StackTop()
279 printf("crasher_c: stack top is = %16llx\n", (unsigned long long)stackTop); in StackTop()
293 ret = fprintf(fp, "%08x", (unsigned int)stackTop); in StackTop()
295 ret = fprintf(fp, "%16llx", (unsigned long long)stackTop); in 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()
557 uintptr_t stackTop = static_cast<uintptr_t>(-1); in UnwindLocalWithTid() local
559 if (!GetMainStackRangeInner(stackBottom, stackTop)) { in UnwindLocalWithTid()
566 if (stackBottom == 0 || stackTop == 0) { in UnwindLocalWithTid()
577 context.stackTop = stackTop; in UnwindLocalWithTid()
598 uintptr_t stackTop = static_cast<uintptr_t>(-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 … nullptr) && (ctx->stackCheck == true) && (!IsValidFrame(addr, ctx->stackBottom, ctx->stackTop))) { 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
234 stackTop = ctxPtr->stackTop; in GetStackRange()
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Dthread_context.h47 uintptr_t stackTop; member
70 bool GetStackRange(int32_t tid, uintptr_t& stackBottom, uintptr_t& stackTop);
H A Dunwind_context.h67 uintptr_t stackTop = 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/tools/crasher_cpp/
H A Ddfx_crasher.cpp460 unsigned int stackTop; in StackTop() local
461 __asm__ volatile ("mov %0, sp":"=r"(stackTop)::); in StackTop()
463 uint64_t stackTop; in StackTop() local
464 __asm__ volatile ("mov %0, sp":"=r"(stackTop)::); in StackTop()
466 uint64_t stackTop = 0; // for fixing compile error on x64 in StackTop() local
468 std::cout << "crasher_c: stack top is = " << std::hex << stackTop << std::endl; in StackTop()
472 fout << std::hex << stackTop << std::endl; in StackTop()
/ohos5.0/foundation/resourceschedule/ffrt/src/dfx/dump/
H A Ddump.cpp79 uintptr_t stackTop = static_cast<uintptr_t>(stackBottom + co->stkMem.size); in DumpTask() local
89 context.stackTop = stackTop; in DumpTask()
/ohos5.0/base/hiviewdfx/faultloggerd/test/fuzztest/faultloggerdunwinder_fuzzer/
H A Dfaultloggerdunwinder_fuzzer.cpp243 uintptr_t stackTop; in TestThreadContext() local
244 unsigned int offsetTotalLength = sizeof(tid) + sizeof(stackBottom) + sizeof(stackTop); in TestThreadContext()
251 STREAM_TO_VALUEINFO(data, stackTop); 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()
123 context.stackTop = stackTop; in UnwinderLocalFp()
/ohos5.0/base/hiviewdfx/hiview/utility/common_utils/
H A Dlog_parse.cpp115 stack<string> stackTop; in GetStackTop() local
118 stackTop.push(validStack.at(i)); in GetStackTop()
121 return stackTop; in GetStackTop()
H A Dtbox.cpp148 … std::stack<std::string> stackTop = logparse.GetStackTop(trace, 3); // 3 : first/second/last frame in FilterTrace() local
149 logparse.SetFrame(stackTop, eventInfo); in FilterTrace()
/ohos5.0/base/startup/init/test/unittest/seccomp/
H A Dseccomp_unittest.cpp200 char *stackTop = stack + stackSize; in CheckCloneNs() local
201 pid_t pid = clone(ChildFunc, stackTop, flag | SIGCHLD, nullptr); in CheckCloneNs()