| /base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
| D | accessors_test.cpp | 56 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));
|
| D | unwinder_test.cpp | 65 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 …]
|
| D | memory_test.cpp | 110 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/ |
| D | stack_util.h | 24 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/ |
| D | dfx_crasher.c | 271 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/ |
| D | fp_unwinder.h | 44 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/ |
| D | dfx_accessors.cpp | 42 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()
|
| D | unwinder.cpp | 76 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/ |
| D | dfx_crasher.cpp | 388 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/ |
| D | unwind_local_benchmark.cpp | 97 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/ |
| D | unwind_context.h | 65 uintptr_t stackTop = 0; member
|
| D | dfx_accessors.h | 50 static bool IsValidFrame(uintptr_t addr, uintptr_t stackBottom, uintptr_t stackTop);
|
| D | unwinder.h | 81 bool GetStackRange(uintptr_t& stackBottom, uintptr_t& stackTop);
|
| /base/hiviewdfx/hiview/utility/common_utils/ |
| D | log_parse.cpp | 115 stack<string> stackTop; in GetStackTop() local 118 stackTop.push(validStack.at(i)); in GetStackTop() 121 return stackTop; in GetStackTop()
|
| D | tbox.cpp | 148 … 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/ |
| D | dfx_crash_local_handler.c | 240 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/ |
| D | seccomp_unittest.cpp | 199 char *stackTop = stack + stackSize; in CheckCloneNs() local 200 pid_t pid = clone(ChildFunc, stackTop, flag | SIGCHLD, nullptr); in CheckCloneNs()
|