Home
last modified time | relevance | path

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

/base/hiviewdfx/faultloggerd/test/unittest/unwind/
Daccessors_test.cpp56 uintptr_t stackTop = static_cast<uintptr_t>(1); variable
57 ASSERT_FALSE(accessors->IsValidFrame(addr, stackBottom, stackTop));
59 stackTop = static_cast<uintptr_t>(-1);
60 ASSERT_TRUE(accessors->IsValidFrame(addr, stackBottom, stackTop));
Dunwinder_test.cpp65 uintptr_t stackTop = static_cast<uintptr_t>(-1); variable
67 ASSERT_TRUE(unwinder->GetStackRange(stackBottom, stackTop));
71 ASSERT_FALSE(unwinderNegative->GetStackRange(stackBottom, stackTop));
85 uintptr_t stackTop = static_cast<uintptr_t>(-1); variable
89 …d::thread* thread = new std::thread([&]{result = unwinder->GetStackRange(stackBottom, stackTop);}); in __anon77cca69e0102()
305 uintptr_t stackBottom = 1, stackTop = static_cast<uintptr_t>(-1); variable
306 ASSERT_TRUE(unwinder->GetStackRange(stackBottom, stackTop));
311 context.stackTop = stackTop;
430 uintptr_t stackBottom = 1, stackTop = static_cast<uintptr_t>(-1); variable
431 ASSERT_TRUE(unwinder->GetStackRange(stackBottom, stackTop));
[all …]
Dmemory_test.cpp110 ASSERT_EQ(GetSelfStackRange(ctx.stackBottom, ctx.stackTop), 0);
149 ASSERT_EQ(GetSelfStackRange(ctx.stackBottom, ctx.stackTop), 0);
179 ASSERT_EQ(GetSelfStackRange(ctx.stackBottom, ctx.stackTop), 0);
206 ASSERT_EQ(GetSelfStackRange(ctx.stackBottom, ctx.stackTop), 0);
/base/hiviewdfx/faultloggerd/common/dfxutil/
Dstack_util.h24 inline int GetSelfStackRange(uintptr_t& stackBottom, uintptr_t& stackTop) in GetSelfStackRange() argument
32 stackTop = reinterpret_cast<uintptr_t>(base) + size; in GetSelfStackRange()
/base/hiviewdfx/faultloggerd/tools/crasher_c/
Ddfx_crasher.c271 register void* stackTop; in StackTop() local
273 __asm__ volatile ("mov %0, sp":"=r"(stackTop)::); in StackTop()
274 printf("crasher_c: stack top is = %08x\n", (unsigned int)stackTop); in StackTop()
276 __asm__ volatile ("mov %0, sp":"=r"(stackTop)::); in StackTop()
277 printf("crasher_c: stack top is = %16llx\n", (unsigned long long)stackTop); in StackTop()
291 ret = fprintf(fp, "%08x", (unsigned int)stackTop); in StackTop()
293 ret = fprintf(fp, "%16llx", (unsigned long long)stackTop); in StackTop()
/base/hiviewdfx/faultloggerd/frameworks/unwinder/include/
Dfp_unwinder.h44 inline bool IsValidFrame(uintptr_t frame, uintptr_t stackTop, uintptr_t stackBottom) in IsValidFrame() argument
46 return ((frame > stackBottom) && (frame < stackTop - sizeof(uintptr_t))); in IsValidFrame()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
Ddfx_accessors.cpp42 bool DfxAccessorsLocal::IsValidFrame(uintptr_t addr, uintptr_t stackBottom, uintptr_t stackTop) in IsValidFrame() argument
44 if (UNLIKELY(stackTop < stackBottom)) { in IsValidFrame()
47 return ((addr >= stackBottom) && (addr < stackTop - sizeof(uintptr_t))); in IsValidFrame()
56 … nullptr) && (ctx->stackCheck == true) && (!IsValidFrame(addr, ctx->stackBottom, ctx->stackTop))) { in AccessMem()
Dunwinder.cpp76 bool Unwinder::GetStackRange(uintptr_t& stackBottom, uintptr_t& stackTop) in GetStackRange() argument
79 if (maps_ == nullptr || !maps_->GetStackRange(stackBottom, stackTop)) { in GetStackRange()
83 if (GetSelfStackRange(stackBottom, stackTop) != 0) { in GetStackRange()
98 uintptr_t stackBottom = 1, stackTop = static_cast<uintptr_t>(-1); in UnwindLocal() local
99 if (!GetStackRange(stackBottom, stackTop)) { in UnwindLocal()
103 …LOGU("stackBottom: %" PRIx64 ", stackTop: %" PRIx64 "", (uint64_t)stackBottom, (uint64_t)stackTop); in UnwindLocal()
120 context.stackTop = stackTop; in UnwindLocal()
/base/hiviewdfx/faultloggerd/tools/crasher_cpp/
Ddfx_crasher.cpp388 unsigned int stackTop; in StackTop() local
389 __asm__ volatile ("mov %0, sp":"=r"(stackTop)::); in StackTop()
391 uint64_t stackTop; in StackTop() local
392 __asm__ volatile ("mov %0, sp":"=r"(stackTop)::); in StackTop()
394 uint64_t stackTop = 0; // for fixing compile error on x64 in StackTop() local
396 std::cout << "crasher_c: stack top is = " << std::hex << stackTop << std::endl; in StackTop()
400 fout << std::hex << stackTop << std::endl; in StackTop()
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwinder/
Dunwind_local_benchmark.cpp97 uintptr_t stackBottom = 1, stackTop = static_cast<uintptr_t>(-1); in UnwinderLocalFp() local
98 unwinder->GetStackRange(stackBottom, stackTop); in UnwinderLocalFp()
108 context.stackTop = stackTop; in UnwinderLocalFp()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
Dunwind_context.h65 uintptr_t stackTop = 0; member
Ddfx_accessors.h50 static bool IsValidFrame(uintptr_t addr, uintptr_t stackBottom, uintptr_t stackTop);
Dunwinder.h81 bool GetStackRange(uintptr_t& stackBottom, uintptr_t& stackTop);
/base/hiviewdfx/hiview/utility/common_utils/
Dlog_parse.cpp115 stack<string> stackTop; in GetStackTop() local
118 stackTop.push(validStack.at(i)); in GetStackTop()
121 return stackTop; in GetStackTop()
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()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/
Ddfx_crash_local_handler.c240 uintptr_t stackTop = (uintptr_t)(-1); // -1:stackTop in UnwindWithContextByFramePointer() local
245 if (stackBottom < prevFp && (prevFp + sizeof(uintptr_t)) < stackTop && pc != 0) { in UnwindWithContextByFramePointer()
/base/startup/init/test/unittest/seccomp/
Dseccomp_unittest.cpp199 char *stackTop = stack + stackSize; in CheckCloneNs() local
200 pid_t pid = clone(ChildFunc, stackTop, flag | SIGCHLD, nullptr); in CheckCloneNs()