• Home
  • Raw
  • Download

Lines Matching refs:TLD

318     auto &TLD = getThreadLocalData();  in fdrLoggingFlush()  local
319 if (TLD.Controller != nullptr) in fdrLoggingFlush()
320 TLD.Controller->flush(); in fdrLoggingFlush()
356 auto &TLD = getThreadLocalData(); in fdrLoggingFlush() local
357 if (TLD.Controller != nullptr) in fdrLoggingFlush()
358 TLD.Controller->flush(); in fdrLoggingFlush()
446 static bool setupTLD(ThreadLocalData &TLD) XRAY_NEVER_INSTRUMENT { in setupTLD() argument
452 if (TLD.Controller != nullptr) { in setupTLD()
453 TLD.Controller->flush(); in setupTLD()
454 TLD.Controller = nullptr; in setupTLD()
460 if (UNLIKELY(TLD.Controller == nullptr)) { in setupTLD()
464 TLD.BQ = BQ; in setupTLD()
467 if (TLD.Buffer.Generation != BQ->generation() && in setupTLD()
468 TLD.BQ->releaseBuffer(TLD.Buffer) != BufferQueue::ErrorCode::Ok) in setupTLD()
472 if (TLD.BQ->getBuffer(TLD.Buffer) != BufferQueue::ErrorCode::Ok) in setupTLD()
476 if (UNLIKELY(TLD.Writer == nullptr)) { in setupTLD()
477 auto *LWStorage = reinterpret_cast<FDRLogWriter *>(&TLD.LWStorage); in setupTLD()
478 new (LWStorage) FDRLogWriter(TLD.Buffer); in setupTLD()
479 TLD.Writer = LWStorage; in setupTLD()
481 TLD.Writer->resetRecord(); in setupTLD()
484 auto *CStorage = reinterpret_cast<FDRController<> *>(&TLD.CStorage); in setupTLD()
486 FDRController<>(TLD.BQ, TLD.Buffer, *TLD.Writer, clock_gettime, in setupTLD()
488 TLD.Controller = CStorage; in setupTLD()
491 DCHECK_NE(TLD.Controller, nullptr); in setupTLD()
504 auto &TLD = getThreadLocalData(); in fdrLoggingHandleArg0() local
505 if (!setupTLD(TLD)) in fdrLoggingHandleArg0()
511 TLD.Controller->functionEnter(FuncId, TSC, CPU); in fdrLoggingHandleArg0()
514 TLD.Controller->functionExit(FuncId, TSC, CPU); in fdrLoggingHandleArg0()
517 TLD.Controller->functionTailExit(FuncId, TSC, CPU); in fdrLoggingHandleArg0()
534 auto &TLD = getThreadLocalData(); in fdrLoggingHandleArg1() local
535 if (!setupTLD(TLD)) in fdrLoggingHandleArg1()
541 TLD.Controller->functionEnterArg(FuncId, TSC, CPU, Arg); in fdrLoggingHandleArg1()
544 TLD.Controller->functionExit(FuncId, TSC, CPU); in fdrLoggingHandleArg1()
547 TLD.Controller->functionTailExit(FuncId, TSC, CPU); in fdrLoggingHandleArg1()
576 auto &TLD = getThreadLocalData(); in fdrLoggingHandleCustomEvent() local
577 if (!setupTLD(TLD)) in fdrLoggingHandleCustomEvent()
581 TLD.Controller->customEvent(TSC, CPU, Event, ReducedEventSize); in fdrLoggingHandleCustomEvent()
606 auto &TLD = getThreadLocalData(); in fdrLoggingHandleTypedEvent() local
607 if (!setupTLD(TLD)) in fdrLoggingHandleTypedEvent()
611 TLD.Controller->typedEvent(TSC, CPU, EventType, Event, ReducedEventSize); in fdrLoggingHandleTypedEvent()
691 auto &TLD = *reinterpret_cast<ThreadLocalData *>(TLDPtr); in fdrLoggingInit() local
692 if (TLD.BQ == nullptr) in fdrLoggingInit()
694 if (TLD.Buffer.Data == nullptr) in fdrLoggingInit()
696 auto EC = TLD.BQ->releaseBuffer(TLD.Buffer); in fdrLoggingInit()
700 TLD.Buffer.Data, BufferQueue::getErrorString(EC)); in fdrLoggingInit()