/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/ |
H A D | async_stack.cpp | 47 DFXLOGE("failed to create key for stackId."); in InitAsyncStackInner() 51 // set callback for DfxSignalHandler to read stackId in InitAsyncStackInner() 73 uint64_t stackId = 0; in CollectAsyncStack() local 74 auto stackIdPtr = reinterpret_cast<OHOS::HiviewDFX::StackId*>(&stackId); in CollectAsyncStack() 76 return stackId; in CollectAsyncStack() 82 extern "C" void SetStackId(uint64_t stackId) in SetStackId() argument 88 pthread_setspecific(g_stackidKey, reinterpret_cast<void *>(stackId)); in SetStackId()
|
H A D | unique_stack_table.cpp | 154 uint64_t UniqueStackTable::PutPcsInTable(StackId *stackId, uintptr_t* pcs, size_t nr) in PutPcsInTable() argument 175 stackId->section.id = prev; in PutPcsInTable() 176 stackId->section.nr = static_cast<uint64_t>(nr); in PutPcsInTable() 197 Node* UniqueStackTable::GetFrame(uint64_t stackId) in GetFrame() argument 200 if (stackId >= totalNodes_) { in GetFrame() 202 DFXLOGW("Failed to find frame by index: %{public}" PRIu64 "", stackId); in GetFrame() 206 return (Node *)&tableHead[stackId]; in GetFrame() 209 bool UniqueStackTable::GetPcsByStackId(StackId stackId, std::vector<uintptr_t>& pcs) in GetPcsByStackId() argument 216 uint64_t nr = stackId.section.nr; in GetPcsByStackId() 217 uint64_t tailIdx = stackId in GetPcsByStackId() [all...] |
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/ |
H A D | thread_sampler_utils.cpp | 59 void PutStackId(std::vector<StackIdAndCount>& stackIdCount, uint64_t stackId) in PutStackId() argument 61 auto it = std::find_if(stackIdCount.begin(), stackIdCount.end(), [&stackId](const auto& stackIdCnt) { in PutStackId() 62 return stackIdCnt.stackId == stackId; in PutStackId() 66 .stackId = stackId, in PutStackId()
|
H A D | sample_stack_printer.cpp | 151 OHOS::HiviewDFX::StackId stackId;
in GetTreeStack() local 152 stackId.value = it->stackId;
in GetTreeStack() 153 if (uniqueStackTable->GetPcsByStackId(stackId, pcs)) {
in GetTreeStack()
|
H A D | thread_sampler.cpp | 433 uint64_t stackId = 0;
in ProcessStackBuffer() local 434 auto stackIdPtr = reinterpret_cast<OHOS::HiviewDFX::StackId*>(&stackId);
in ProcessStackBuffer() 436 PutStackId(stackIdCount_, stackId);
in ProcessStackBuffer()
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | dfx_unwind_async_thread.h | 31 DfxUnwindAsyncThread(std::shared_ptr<DfxThread> thread, std::shared_ptr<Unwinder> unwinder, uint64_t stackId) in DfxUnwindAsyncThread() argument 32 : thread_(thread), unwinder_(unwinder), stackId_(stackId) {} in DfxUnwindAsyncThread()
|
H A D | dfx_unwind_remote.cpp | 144 auto unwindAsyncThread = std::make_shared<DfxUnwindAsyncThread>(unwThread, unwinder, request->stackId); in UnwindKeyThread()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/include/ |
H A D | async_stack.h | 24 // return stackId 28 void SetStackId(uint64_t stackId);
|
H A D | unique_stack_table.h | 108 uint64_t PutPcsInTable(StackId *stackId, uintptr_t *pcs, size_t nr); 109 bool GetPcsByStackId(const StackId stackId, std::vector<uintptr_t>& pcs); 136 Node* GetFrame(uint64_t stackId);
|
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/include/ |
H A D | thread_sampler_utils.h | 42 void PutStackId(std::vector<StackIdAndCount>& stackIdCount, uint64_t stackId);
|
H A D | thread_sampler.h | 63 uint64_t stackId {0};
|
/base/hiviewdfx/faultloggerd/test/unittest/async_stack/ |
H A D | stack_table_test.cpp | 139 StackId stackId;
in HWTEST_F() local 141 bool ret = stackTable->GetPcsByStackId(stackId, pcs);
in HWTEST_F()
|
/base/hiviewdfx/faultloggerd/interfaces/common/ |
H A D | dfx_dump_request.h | 141 /** stackId for async-stack */ 142 uint64_t stackId; member
|
/base/hiviewdfx/faultloggerd/tools/crasher_cpp/ |
H A D | dfx_crasher.cpp | 571 printf("CrashInSubThread stackId:%p value:%p.\n", stackIdPtr, reinterpret_cast<void*>(value)); in CrashInSubThread() 580 uint64_t stackId = CollectAsyncStack(); in AsyncStacktrace() local 581 printf("Current stackId:%p.\n", (void*)stackId); in AsyncStacktrace() 583 pthread_create(&thread, NULL, CrashInSubThread, (void*)&stackId); in AsyncStacktrace()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/ |
H A D | dfx_signal_handler.c | 301 g_request.stackId = g_GetStackIdFunc(); in FillDumpRequest() 302 DFXLOGI("g_GetStackIdFunc %{public}p.", (void*)g_request.stackId); in FillDumpRequest()
|