Lines Matching full:tsc

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