Searched refs:threadContext (Results 1 – 10 of 10) sorted by relevance
57 free(threadContext); in TlsDestructor()78 if (threadContext == NULL) { in GetAndUpdateInvoker()81 threadContext->proto = proto; in GetAndUpdateInvoker()88 int32_t proto = threadContext->proto; in ThreadHandler()90 free(threadContext); in ThreadHandler()91 threadContext = NULL; in ThreadHandler()160 if (threadContext == NULL) { in SpawnNewThread()165 threadContext->proto = proto; in SpawnNewThread()166 threadContext->policy = policy; in SpawnNewThread()170 free(threadContext); in SpawnNewThread()[all …]
50 if (threadContext->ctx == nullptr) { in CreateContext()61 if (threadContext->ctx != nullptr) { in ReleaseContext()62 delete threadContext->ctx; in ReleaseContext()63 threadContext->ctx = nullptr; in ReleaseContext()73 threadContext->tid = tid; in GetContextLocked()74 threadContext->frameSz = 0; in GetContextLocked()75 CreateContext(threadContext); in GetContextLocked()76 g_contextMap[tid] = threadContext; in GetContextLocked()77 return threadContext; in GetContextLocked()168 if (threadContext == nullptr) { in CollectThreadContext()[all …]
534 auto threadContext = LocalThreadContext::GetInstance().CollectThreadContext(tid); in UnwindLocalWithTid() local536 if (threadContext != nullptr && threadContext->frameSz > 0) { in UnwindLocalWithTid()538 for (size_t i = 0; i < threadContext->frameSz; i++) { in UnwindLocalWithTid()539 pcs_.emplace_back(threadContext->pcs[i]); in UnwindLocalWithTid()541 firstFrameSp_ = threadContext->firstFrameSp; in UnwindLocalWithTid()546 if (threadContext == nullptr || threadContext->ctx == nullptr) { in UnwindLocalWithTid()552 regs_ = DfxRegs::CreateFromUcontext(*(threadContext->ctx)); in UnwindLocalWithTid()554 regs_->SetFromUcontext(*(threadContext->ctx)); in UnwindLocalWithTid()
68 if (threadContext == NULL) { in GetUniqueSeqNumber()72 return threadContext->seqNumber; in GetUniqueSeqNumber()337 return threadContext->sessionId; in GetCallerSessionId()397 threadContext->sessionId = 0; in ProcessTransaction()398 threadContext->seqNumber = 0; in ProcessTransaction()401 threadContext->callerPid = oldPid; in ProcessTransaction()402 threadContext->callerUid = oldUid; in ProcessTransaction()745 if (threadContext == NULL) { in RpcJoinThread()748 threadContext->stopWorkThread = false; in RpcJoinThread()769 if (threadContext == NULL) { in RpcStopWorkThread()[all …]
291 const pid_t oldPid = threadContext->callerPid; in CallIpcCallback()292 const pid_t oldUid = threadContext->callerUid; in CallIpcCallback()293 threadContext->callerPid = ipcMsg->processID; in CallIpcCallback()294 threadContext->callerUid = (pid_t)ipcMsg->userID; in CallIpcCallback()311 threadContext->callerPid = oldPid; in CallIpcCallback()312 threadContext->callerUid = oldUid; in CallIpcCallback()493 const pid_t oldPid = threadContext->callerPid; in IpcJoinThreadLoop()494 const pid_t oldUid = threadContext->callerUid; in IpcJoinThreadLoop()495 threadContext->callerPid = ipcMsg->processID; in IpcJoinThreadLoop()515 threadContext->callerPid = oldPid; in IpcJoinThreadLoop()[all …]
202 ThreadContext *threadContext = GetCurrentThreadContext(); in UpdateProto() local203 if (threadContext == NULL) { in UpdateProto()209 threadContext->proto = IF_PROT_DATABUS; in UpdateProto()212 threadContext->proto = GetSessionFromDBinderService(svc); in UpdateProto()213 RPC_LOG_INFO("UpdateProto get proto: %d", threadContext->proto); in UpdateProto()
242 ThreadContext *threadContext = GetCurrentThreadContext(); in UpdateProto() local243 if (threadContext == NULL) { in UpdateProto()249 threadContext->proto = IF_PROT_DATABUS; in UpdateProto()252 threadContext->proto = GetSessionFromDBinderService(svc->handle); in UpdateProto()253 RPC_LOG_INFO("UpdateProto get proto: %d", threadContext->proto); in UpdateProto()
67 ThreadContext *threadContext = GetCurrentThreadContext(); in ProcessProto() local68 if (threadContext == NULL) { in ProcessProto()73 SessionInfo *session = QuerySessionObject((uintptr_t)threadContext->objectStub); in ProcessProto()
215 ThreadContext *threadContext = GetCurrentThreadContext(); in HandleTransaction() local216 const pid_t oldPid = threadContext->callerPid; in HandleTransaction()217 const pid_t oldUid = threadContext->callerUid; in HandleTransaction()218 threadContext->callerPid = tr->sender_pid; in HandleTransaction()219 threadContext->callerUid = (pid_t)tr->sender_euid; in HandleTransaction()226 threadContext->objectStub = objectStub; in HandleTransaction()243 threadContext->callerPid = oldPid; in HandleTransaction()244 threadContext->callerUid = oldUid; in HandleTransaction()
301 ThreadContext *threadContext = GetCurrentThreadContext(); variable302 ASSERT_TRUE(threadContext != NULL);303 EXPECT_EQ(threadContext->proto, IF_PROT_DATABUS);