Home
last modified time | relevance | path

Searched refs:epoch (Results 1 – 25 of 72) sorted by relevance

123

/external/compiler-rt/lib/tsan/rtl/
Dtsan_clock.cc125 u64 epoch = src->elem(tid).epoch; in acquire() local
126 if (clk_[tid].epoch < epoch) { in acquire()
127 clk_[tid].epoch = epoch; in acquire()
134 last_acquire_ = clk_[tid_].epoch; in acquire()
144 u64 epoch = src->elem(i).epoch; in acquire() local
145 if (clk_[i].epoch < epoch) { in acquire()
146 clk_[i].epoch = epoch; in acquire()
157 last_acquire_ = clk_[tid_].epoch; in acquire()
180 if (dst->elem(tid_).epoch > last_acquire_) { in release()
197 ce.epoch = max(ce.epoch, clk_[i].epoch); in release()
[all …]
Dtsan_mutexset.cc25 void MutexSet::Add(u64 id, bool write, u64 epoch) { in Add() argument
30 descs_[i].epoch = epoch; in Add()
39 if (descs_[i].epoch < minepoch) { in Add()
40 minepoch = descs_[i].epoch; in Add()
50 descs_[size_].epoch = epoch; in Add()
Dtsan_clock.h22 u64 epoch : kClkBits; member
54 return elem(tid).epoch; in get()
89 return clk_[tid].epoch; in get()
95 DCHECK_GE(v, clk_[tid_].epoch); in set()
96 clk_[tid_].epoch = v; in set()
100 clk_[tid_].epoch++; in tick()
Dtsan_mutexset.h28 u64 epoch; member
35 void Add(u64 id, bool write, u64 epoch);
60 void MutexSet::Add(u64 id, bool write, u64 epoch) {} in Add() argument
Dtsan_rtl_mutex.cc127 RestoreStack(last.tid(), last.epoch(), &trace, 0); in MutexDestroy()
170 thr->mset.Add(s->GetId(), true, thr->fast_state.epoch()); in MutexLock()
248 thr->mset.Add(s->GetId(), false, thr->fast_state.epoch()); in MutexReadLock()
366 thr->clock.set(tctx->tid, tctx->thr->fast_state.epoch()); in UpdateClockCallback()
409 thr->last_sleep_clock.set(tctx->tid, tctx->thr->fast_state.epoch()); in UpdateSleepClockCallback()
428 thr->clock.set(thr->fast_state.epoch()); in AcquireImpl()
436 thr->clock.set(thr->fast_state.epoch()); in ReleaseImpl()
437 thr->fast_synch_epoch = thr->fast_state.epoch(); in ReleaseImpl()
445 thr->clock.set(thr->fast_state.epoch()); in ReleaseStoreImpl()
446 thr->fast_synch_epoch = thr->fast_state.epoch(); in ReleaseStoreImpl()
[all …]
Dtsan_rtl_report.cc367 void RestoreStack(int tid, const u64 epoch, VarSizeStackTrace *stk, in RestoreStack() argument
374 const int partidx = (epoch / kTracePartSize) % TraceParts(); in RestoreStack()
376 if (epoch < hdr->epoch0 || epoch >= hdr->epoch0 + kTracePartSize) in RestoreStack()
378 CHECK_EQ(RoundDown(epoch, kTracePartSize), hdr->epoch0); in RestoreStack()
379 const u64 epoch0 = RoundDown(epoch, TraceSize()); in RestoreStack()
380 const u64 eend = epoch % TraceSize(); in RestoreStack()
383 tid, (uptr)epoch, (uptr)ebegin, (uptr)eend, partidx); in RestoreStack()
627 RestoreStack(s2.tid(), s2.epoch(), &traces[1], mset2); in ReportRace()
645 if (s.epoch() < tctx->epoch0 || s.epoch() > tctx->epoch1) in ReportRace()
655 if (s.epoch() <= thr->last_sleep_clock.get(s.tid())) in ReportRace()
Dtsan_rtl.h93 FastState(u64 tid, u64 epoch) { in FastState() argument
95 x_ |= epoch; in FastState()
97 DCHECK_EQ(epoch, this->epoch()); in FastState()
119 u64 epoch() const { in epoch() function
125 u64 old_epoch = epoch(); in IncrementEpoch()
127 DCHECK_EQ(old_epoch + 1, epoch()); in IncrementEpoch()
155 return epoch() & mask; in GetTracePos()
407 explicit ThreadState(Context *ctx, int tid, int unique_id, u64 epoch,
554 void RestoreStack(int tid, const u64 epoch, VarSizeStackTrace *stk,
Dtsan_rtl.cc110 ThreadState::ThreadState(Context *ctx, int tid, int unique_id, u64 epoch, in ThreadState() argument
114 : fast_state(tid, epoch) in ThreadState()
501 unsigned trace = (thr->fast_state.epoch() / kTracePartSize) % TraceParts(); in TraceSwitch()
503 hdr->epoch0 = thr->fast_state.epoch(); in TraceSwitch()
568 return thr->clock.get(old.TidWithIgnore()) >= old.epoch(); in HappensBefore()
620 StoreShadow(shadow_mem + (cur.epoch() % kShadowCnt), store_word); in MemoryAccessImpl1()
656 old.epoch() > sync_epoch && in ContainsSameAccessSlow()
702 const m128 epoch = SHUF(epoch1, epoch1, 0, 0, 0, 0); in ContainsSameAccessFast() local
710 const m128 epoch_res = _mm_cmpgt_epi32(epoch_vect, epoch); in ContainsSameAccessFast()
/external/jemalloc/test/unit/
Dstats.c39 uint64_t epoch; in TEST_BEGIN() local
48 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)), 0, in TEST_BEGIN()
79 uint64_t epoch; in TEST_BEGIN() local
103 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)), 0, in TEST_BEGIN()
147 uint64_t epoch, nmalloc, ndalloc, nrequests; in TEST_BEGIN() local
162 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)), 0, in TEST_BEGIN()
196 uint64_t epoch, nmalloc, ndalloc, nrequests; in TEST_BEGIN() local
206 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)), 0, in TEST_BEGIN()
240 uint64_t epoch, nmalloc, ndalloc; in TEST_BEGIN() local
250 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)), 0, in TEST_BEGIN()
[all …]
Dmallctl.c5 uint64_t epoch; in TEST_BEGIN() local
15 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)-1), in TEST_BEGIN()
17 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)+1), in TEST_BEGIN()
20 sz = sizeof(epoch)-1; in TEST_BEGIN()
21 assert_d_eq(mallctl("epoch", &epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN()
23 sz = sizeof(epoch)+1; in TEST_BEGIN()
24 assert_d_eq(mallctl("epoch", &epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN()
42 uint64_t epoch; in TEST_BEGIN() local
59 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, &epoch, in TEST_BEGIN()
60 sizeof(epoch)-1), EINVAL, in TEST_BEGIN()
[all …]
Ddecay.c204 uint64_t epoch; in TEST_BEGIN() local
234 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(uint64_t)), 0, in TEST_BEGIN()
275 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, in TEST_BEGIN()
296 uint64_t epoch; in TEST_BEGIN() local
310 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(uint64_t)), 0, in TEST_BEGIN()
338 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(uint64_t)), 0, in TEST_BEGIN()
/external/llvm/unittests/Support/
DTimeValueTest.cpp26 sys::TimeValue epoch; in TEST() local
30 epoch.fromWin32Time(ft1970); in TEST()
33 EXPECT_EQ(0u, epoch.toEpochTime()); in TEST()
34 EXPECT_EQ(ns, static_cast<uint32_t>(epoch.nanoseconds())); in TEST()
37 EXPECT_EQ(ft1970, epoch.toWin32Time()); in TEST()
/external/boringssl/src/ssl/
Ddtls_record.c203 uint16_t epoch = (((uint16_t)sequence[0]) << 8) | sequence[1]; in dtls_open_record() local
204 if (epoch != ssl->d1->r_epoch || in dtls_open_record()
252 uint16_t epoch = ssl->d1->w_epoch; in dtls_seal_record() local
259 epoch = ssl->d1->w_epoch - 1; in dtls_seal_record()
281 out[3] = epoch >> 8; in dtls_seal_record()
282 out[4] = epoch & 0xff; in dtls_seal_record()
Dd1_both.c721 assert(frag->msg_header.epoch <= ssl->d1->w_epoch); in dtls1_retransmit_message()
723 if (ssl->d1->w_epoch == 1 && frag->msg_header.epoch == 0) { in dtls1_retransmit_message()
775 frag->msg_header.epoch = ssl->d1->w_epoch; in dtls1_buffer_change_cipher_spec()
814 frag->msg_header.epoch = ssl->d1->w_epoch; in dtls1_buffer_message()
/external/libogg/
Dlibogg.spec.in13 # We're forced to use an epoch since both Red Hat and Ximian use it in their
18 Provides: %{name} = %{epoch}:1.0rc3-%{release}
19 Provides: %{name} = %{epoch}:1.0beta4-%{release}
31 Provides: %{name}-devel = %{epoch}:1.0rc3-%{release}
32 Provides: %{name}-devel = %{epoch}:1.0beta4-%{release}
Dlibogg.spec18 Provides: %{name} = %{epoch}:1.0rc3-%{release}
19 Provides: %{name} = %{epoch}:1.0beta4-%{release}
31 Provides: %{name}-devel = %{epoch}:1.0rc3-%{release}
32 Provides: %{name}-devel = %{epoch}:1.0beta4-%{release}
/external/libvorbis/
Dlibvorbis.spec.in13 # We're forced to use an epoch since both Red Hat and Ximian use it in their
18 Provides: %{name} = %{epoch}:1.0rc3-%{release}
19 Provides: %{name} = %{epoch}:1.0beta4-%{release}
36 Provides: %{name}-devel = %{epoch}:1.0rc3-%{release}
37 Provides: %{name}-devel = %{epoch}:1.0beta4-%{release}
Dlibvorbis.spec18 Provides: %{name} = %{epoch}:1.0rc3-%{release}
19 Provides: %{name} = %{epoch}:1.0beta4-%{release}
36 Provides: %{name}-devel = %{epoch}:1.0rc3-%{release}
37 Provides: %{name}-devel = %{epoch}:1.0beta4-%{release}
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_shadow_test.cc22 EXPECT_EQ(s.epoch(), (u64)22); in TEST()
31 EXPECT_EQ(s.epoch(), (u64)23); in TEST()
33 EXPECT_EQ(s.epoch(), (u64)24); in TEST()
Dtsan_mutexset_test.cc18 static void Expect(const MutexSet &mset, uptr i, u64 id, bool write, u64 epoch, in Expect() argument
23 EXPECT_EQ(epoch, d.epoch); in Expect()
Dtsan_clock_test.cc367 u64 epoch = thr0[tid]->clock[tid] + 1; in ClockFuzzer() local
371 thr0[tid]->clock[tid] = epoch; in ClockFuzzer()
374 thr1[tid]->set(epoch); in ClockFuzzer()
/external/google-benchmark/src/
Dwalltime.cc100 const unsigned __int64 epoch = 116444736000000000LL; in Slow() local
107 tv.tv_sec = (long)((ularge.QuadPart - epoch) / (10L * 1000 * 1000)); in Slow()
/external/jemalloc/src/
Dstats.c373 uint64_t epoch; in stats_print() local
389 epoch = 1; in stats_print()
391 err = je_mallctl("epoch", &epoch, &u64sz, &epoch, sizeof(uint64_t)); in stats_print()
/external/jetty/src/java/org/eclipse/jetty/http/
DHttpFields.java150 int epoch = (int) ((date / 1000) % (60 * 60 * 24)); in formatCookieDate() local
151 int seconds = epoch % 60; in formatCookieDate()
152 epoch = epoch / 60; in formatCookieDate()
153 int minutes = epoch % 60; in formatCookieDate()
154 int hours = epoch / 60; in formatCookieDate()
/external/fio/
Dtime.c91 if (utime_since(&td->epoch, &tv) >= td->o.ramp_time) { in ramp_time_over()

123