Home
last modified time | relevance | path

Searched refs:threadContext (Results 1 - 2 of 2) sorted by relevance

/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Dthread_context.cpp46 void CreateContext(std::shared_ptr<ThreadContext>& threadContext) in CreateContext() argument
49 std::unique_lock<std::mutex> lock(threadContext->mtx); in CreateContext()
50 if (threadContext->ctx == nullptr) { in CreateContext()
51 threadContext->ctx = new ucontext_t; in CreateContext()
53 (void)memset_s(threadContext->ctx, sizeof(ucontext_t), 0, sizeof(ucontext_t)); in CreateContext()
57 void ReleaseContext(std::shared_ptr<ThreadContext> threadContext) in ReleaseContext() argument
60 std::unique_lock<std::mutex> lock(threadContext->mtx); in ReleaseContext()
61 if (threadContext->ctx != nullptr) { in ReleaseContext()
62 delete threadContext->ctx; in ReleaseContext()
63 threadContext in ReleaseContext()
72 auto threadContext = std::make_shared<ThreadContext>(); GetContextLocked() local
167 auto threadContext = GetContextLocked(tid); CollectThreadContext() local
254 SignalRequestThread(int32_t tid, ThreadContext* threadContext) SignalRequestThread() argument
[all...]
H A Dunwinder.cpp523 auto threadContext = LocalThreadContext::GetInstance().CollectThreadContext(tid); in UnwindLocalWithTid() local
525 if (threadContext != nullptr && threadContext->frameSz > 0) { in UnwindLocalWithTid()
527 for (size_t i = 0; i < threadContext->frameSz; i++) { in UnwindLocalWithTid()
528 pcs_.emplace_back(threadContext->pcs[i]); in UnwindLocalWithTid()
530 firstFrameSp_ = threadContext->firstFrameSp; in UnwindLocalWithTid()
535 if (threadContext == nullptr || threadContext->ctx == nullptr) { in UnwindLocalWithTid()
541 regs_ = DfxRegs::CreateFromUcontext(*(threadContext->ctx)); in UnwindLocalWithTid()
543 regs_->SetFromUcontext(*(threadContext in UnwindLocalWithTid()
[all...]

Completed in 3 milliseconds