Lines Matching refs:TSC
115 uint64_t CumulativeLocalTime; // Typically in TSC deltas, not wall-time.
358 void enterFunction(const int32_t FId, uint64_t TSC,
380 if (ShadowStack.AppendEmplace(TSC, NewRoot, CPU) == nullptr) {
400 if (ShadowStack.AppendEmplace(TSC, Callee->NodePtr, CPU) == nullptr)
412 if (ShadowStack.AppendEmplace(TSC, NewNode, CPU) == nullptr)
417 void exitFunction(int32_t FId, uint64_t TSC,
437 // We may encounter overflow on the TSC we're provided, which may end up
438 // being less than the TSC when we first entered the function.
441 // we've overflowed (TSC < Top.EntryTSC) and then account the difference
442 // between the entry TSC and the max for the TSC counter (max of uint64_t)
443 // then add the value of TSC. We can prove that the maximum delta we will
445 // a TSC of 0 and a Top.EntryTSC of 1 is (numeric_limits<uint64_t>::max()
451 Top.EntryTSC > TSC
452 ? (std::numeric_limits<uint64_t>::max() - Top.EntryTSC) + TSC
453 : TSC - Top.EntryTSC;