Lines Matching defs:epoch
379 void RestoreStack(int tid, const u64 epoch, VarSizeStackTrace *stk,
381 // This function restores stack trace and mutex set for the thread/epoch.
383 // trace part, and then replaying the trace till the given epoch.
386 const int partidx = (epoch / kTracePartSize) % TraceParts();
388 if (epoch < hdr->epoch0 || epoch >= hdr->epoch0 + kTracePartSize)
390 CHECK_EQ(RoundDown(epoch, kTracePartSize), hdr->epoch0);
391 const u64 epoch0 = RoundDown(epoch, TraceSize());
392 const u64 eend = epoch % TraceSize();
394 DPrintf("#%d: RestoreStack epoch=%zu ebegin=%zu eend=%zu partidx=%d\n",
395 tid, (uptr)epoch, (uptr)ebegin, (uptr)eend, partidx);
667 RestoreStack(s2.tid(), s2.epoch(), &traces[1], mset2, &tags[1]);
696 if (s.epoch() < tctx->epoch0 || s.epoch() > tctx->epoch1)
706 if (s.epoch() <= thr->last_sleep_clock.get(s.tid()))