Home
last modified time | relevance | path

Searched refs:stackId (Results 1 – 13 of 13) sorted by relevance

/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/
Dasync_stack.cpp74 uint64_t stackId = 0; in CollectAsyncStack() local
75 auto stackIdPtr = reinterpret_cast<OHOS::HiviewDFX::StackId*>(&stackId); in CollectAsyncStack()
77 return stackId; in CollectAsyncStack()
83 extern "C" void SetStackId(uint64_t stackId) in SetStackId() argument
88 pthread_setspecific(g_stackidKey, reinterpret_cast<void *>(stackId)); in SetStackId()
Dunique_stack_table.cpp150 uint64_t UniqueStackTable::PutPcsInTable(StackId *stackId, uintptr_t* pcs, size_t nr) in PutPcsInTable() argument
171 stackId->section.id = prev; in PutPcsInTable()
172 stackId->section.nr = static_cast<uint64_t>(nr); in PutPcsInTable()
193 Node* UniqueStackTable::GetFrame(uint64_t stackId) in GetFrame() argument
196 if (stackId >= totalNodes_) { in GetFrame()
198 LOGW("Failed to find frame by index: %" PRIu64 "", stackId); in GetFrame()
202 return (Node *)&tableHead[stackId]; in GetFrame()
205 bool UniqueStackTable::GetPcsByStackId(StackId stackId, std::vector<uintptr_t>& pcs) in GetPcsByStackId() argument
212 uint64_t nr = stackId.section.nr; in GetPcsByStackId()
213 uint64_t tailIdx = stackId.section.id; in GetPcsByStackId()
/base/hiviewdfx/faultloggerd/tools/process_dump/
Ddfx_unwind_async_thread.h31 …syncThread(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()
Ddfx_unwind_remote.cpp111 … unwindAsyncThread = std::make_shared<DfxUnwindAsyncThread>(unwThread, unwinder, request->stackId); in UnwindKeyThread()
/base/hiviewdfx/hicollie/frameworks/native/
Dthread_sampler_utils.cpp59 void PutTimeInMap(std::map<uint64_t, std::vector<uint64_t>>& stackIdTimeMap, uint64_t stackId, uint… in PutTimeInMap() argument
61 auto it = stackIdTimeMap.find(stackId); in PutTimeInMap()
65 stackIdTimeMap[stackId] = timestamps; in PutTimeInMap()
Dsample_stack_printer.cpp120 uint64_t stackId = it->first; in GetTreeStack() local
121 …sortedStackId.emplace_back(std::make_pair<uint64_t, uint64_t>(std::move(stackId), it->second.size(… in GetTreeStack()
128 OHOS::HiviewDFX::StackId stackId; in GetTreeStack() local
129 stackId.value = it->first; in GetTreeStack()
130 if (uniqueStackTable->GetPcsByStackId(stackId, pcs)) { in GetTreeStack()
Dthread_sampler_utils.h29 void PutTimeInMap(std::map<uint64_t, std::vector<uint64_t>>& stackIdTimeMap, uint64_t stackId, uint…
Dthread_sampler.cpp445 uint64_t stackId = 0; in ProcessStackBuffer() local
446 auto stackIdPtr = reinterpret_cast<OHOS::HiviewDFX::StackId*>(&stackId); in ProcessStackBuffer()
448 PutTimeInMap(stackIdTimeMap_, stackId, context->snapshotTime); in ProcessStackBuffer()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/include/
Dunique_stack_table.h108 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);
Dasync_stack.h28 void SetStackId(uint64_t stackId);
/base/hiviewdfx/faultloggerd/interfaces/common/
Ddfx_dump_request.h129 uint64_t stackId; member
/base/hiviewdfx/faultloggerd/tools/crasher_cpp/
Ddfx_crasher.cpp514 uint64_t stackId = CollectAsyncStack(); in AsyncStacktrace() local
515 printf("Current stackId:%p.\n", (void*)stackId); in AsyncStacktrace()
517 pthread_create(&thread, NULL, CrashInSubThread, (void*)&stackId); in AsyncStacktrace()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/
Ddfx_signal_handler.c275 g_request.stackId = g_GetStackIdFunc(); in FillDumpRequest()
276 DFXLOG_INFO("g_GetStackIdFunc %p.", (void*)g_request.stackId); in FillDumpRequest()