• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/xray/

Lines Matching refs:TSC

146   PreambleResult recordPreamble(uint64_t TSC,
149 // We update our internal tracking state for the Latest TSC and CPU we've
151 LatestTSC = TSC;
157 W.writeMetadata<MetadataRecord::RecordKinds::NewCPUId>(CPU, TSC);
163 if (UNLIKELY(LatestTSC > TSC ||
164 TSC - LatestTSC >
166 // Either the TSC has wrapped around from the last TSC we've seen or the
169 LatestTSC = TSC;
174 W.writeMetadata<MetadataRecord::RecordKinds::TSCWrap>(TSC);
181 bool rewindRecords(int32_t FuncId, uint64_t TSC,
222 if ((TSC - RewindingTSC) >= CycleThreshold) {
244 bool functionEnter(int32_t FuncId, uint64_t TSC,
250 auto PreambleStatus = recordPreamble(TSC, CPU);
261 auto Delta = TSC - LatestTSC;
262 LastFunctionEntryTSC = TSC;
263 LatestTSC = TSC;
268 bool functionTailExit(int32_t FuncId, uint64_t TSC,
276 auto PreambleStatus = recordPreamble(TSC, CPU);
282 TSC - LastFunctionEntryTSC < CycleThreshold)
283 return rewindRecords(FuncId, TSC, CPU);
287 auto Delta = TSC - LatestTSC;
288 LatestTSC = TSC;
293 bool functionEnterArg(int32_t FuncId, uint64_t TSC, uint16_t CPU,
297 recordPreamble(TSC, CPU) == PreambleResult::InvalidBuffer)
300 auto Delta = TSC - LatestTSC;
301 LatestTSC = TSC;
310 bool functionExit(int32_t FuncId, uint64_t TSC,
316 auto PreambleStatus = recordPreamble(TSC, CPU);
322 TSC - LastFunctionEntryTSC < CycleThreshold)
323 return rewindRecords(FuncId, TSC, CPU);
325 auto Delta = TSC - LatestTSC;
326 LatestTSC = TSC;
333 bool customEvent(uint64_t TSC, uint16_t CPU, const void *Event,
337 recordPreamble(TSC, CPU) == PreambleResult::InvalidBuffer)
340 auto Delta = TSC - LatestTSC;
341 LatestTSC = TSC;
347 bool typedEvent(uint64_t TSC, uint16_t CPU, uint16_t EventType,
351 recordPreamble(TSC, CPU) == PreambleResult::InvalidBuffer)
354 auto Delta = TSC - LatestTSC;
355 LatestTSC = TSC;