Searched refs:epoch (Results 1 - 25 of 71) sorted by relevance

123

/external/llvm/unittests/Support/
H A DTimeValueTest.cpp26 sys::TimeValue epoch; local
30 epoch.fromWin32Time(ft1970);
33 EXPECT_EQ(0u, epoch.toEpochTime());
34 EXPECT_EQ(ns, static_cast<uint32_t>(epoch.nanoseconds()));
37 EXPECT_EQ(ft1970, epoch.toWin32Time());
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_mutexset.cc25 void MutexSet::Add(u64 id, bool write, u64 epoch) { argument
30 descs_[i].epoch = epoch;
39 if (descs_[i].epoch < minepoch) {
40 minepoch = descs_[i].epoch;
50 descs_[size_].epoch = epoch;
H A Dtsan_clock.h22 u64 epoch : kClkBits; member in struct:__tsan::ClockElem
54 return elem(tid).epoch;
89 return clk_[tid].epoch;
95 DCHECK_GE(v, clk_[tid_].epoch);
96 clk_[tid_].epoch = v;
100 clk_[tid_].epoch++;
H A Dtsan_clock.cc125 u64 epoch = src->elem(tid).epoch; local
126 if (clk_[tid].epoch < epoch) {
127 clk_[tid].epoch = epoch;
134 last_acquire_ = clk_[tid_].epoch;
144 u64 epoch = src->elem(i).epoch; local
145 if (clk_[i].epoch < epoc
[all...]
H A Dtsan_mutexset.h28 u64 epoch; member in struct:__tsan::MutexSet::Desc
35 void Add(u64 id, bool write, u64 epoch);
60 void MutexSet::Add(u64 id, bool write, u64 epoch) {} argument
H A Dtsan_rtl_mutex.cc120 RestoreStack(last.tid(), last.epoch(), &trace, 0);
171 thr->mset.Add(s->GetId(), true, thr->fast_state.epoch());
249 thr->mset.Add(s->GetId(), false, thr->fast_state.epoch());
377 thr->clock.set(tctx->tid, tctx->thr->fast_state.epoch());
397 // Can't increment epoch w/o writing to the trace as well.
409 // Can't increment epoch w/o writing to the trace as well.
420 thr->last_sleep_clock.set(tctx->tid, tctx->thr->fast_state.epoch());
439 thr->clock.set(thr->fast_state.epoch());
447 thr->clock.set(thr->fast_state.epoch());
448 thr->fast_synch_epoch = thr->fast_state.epoch();
[all...]
H A Dtsan_rtl_report.cc372 void RestoreStack(int tid, const u64 epoch, VarSizeStackTrace *stk, argument
374 // This function restores stack trace and mutex set for the thread/epoch.
376 // trace part, and then replaying the trace till the given epoch.
379 const int partidx = (epoch / kTracePartSize) % TraceParts();
381 if (epoch < hdr->epoch0 || epoch >= hdr->epoch0 + kTracePartSize)
383 CHECK_EQ(RoundDown(epoch, kTracePartSize), hdr->epoch0);
384 const u64 epoch0 = RoundDown(epoch, TraceSize());
385 const u64 eend = epoch % TraceSize();
387 DPrintf("#%d: RestoreStack epoch
[all...]
H A Dtsan_rtl.h90 // epoch : kClkBits
93 FastState(u64 tid, u64 epoch) { argument
95 x_ |= epoch;
97 DCHECK_EQ(epoch, this->epoch());
119 u64 epoch() const { function in class:__tsan::FastState
125 u64 old_epoch = epoch();
127 DCHECK_EQ(old_epoch + 1, epoch());
155 return epoch() & mask;
175 // epoch
[all...]
H A Dtsan_rtl.cc110 ThreadState::ThreadState(Context *ctx, int tid, int unique_id, u64 epoch, argument
114 : fast_state(tid, epoch)
509 unsigned trace = (thr->fast_state.epoch() / kTracePartSize) % TraceParts();
511 hdr->epoch0 = thr->fast_state.epoch();
576 return thr->clock.get(old.TidWithIgnore()) >= old.epoch();
628 StoreShadow(shadow_mem + (cur.epoch() % kShadowCnt), store_word);
664 old.epoch() > sync_epoch &&
706 // epoch[0:31] = sync_epoch[0:31]
707 // epoch[32:63] = sync_epoch[0:31]
708 // epoch[6
710 const m128 epoch = SHUF(epoch1, epoch1, 0, 0, 0, 0); local
[all...]
/external/jemalloc/test/unit/
H A Dstats.c39 uint64_t epoch; local
48 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, sizeof(epoch)),
79 uint64_t epoch; local
103 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, sizeof(epoch)),
147 uint64_t epoch, nmalloc, ndalloc, nrequests; local
162 assert_d_eq(mallctl("epoch", NUL
198 uint64_t epoch, nmalloc, ndalloc, nrequests; local
244 uint64_t epoch, nmalloc, ndalloc; local
284 uint64_t epoch, nmalloc, ndalloc, nrequests, nfills, nflushes; local
358 uint64_t epoch, nmalloc, ndalloc, nrequests; local
403 uint64_t epoch, nmalloc, ndalloc; local
[all...]
H A Dmallctl.c5 uint64_t epoch; local
15 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch,
16 sizeof(epoch)-1), EINVAL,
18 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch,
19 sizeof(epoch)+1), EINVAL,
22 sz = sizeof(epoch)-1;
23 assert_d_eq(mallctl("epoch", (void *)&epoch,
44 uint64_t epoch; local
[all...]
H A Ddecay.c212 uint64_t epoch; local
242 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch,
286 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch,
307 uint64_t epoch; local
321 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch,
351 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch,
[all...]
/external/eigen/unsupported/Eigen/CXX11/src/ThreadPool/
H A DEventCount.h55 // Initialize epoch to something close to overflow to test overflow.
68 w->epoch = state_.fetch_add(kWaiterInc, std::memory_order_relaxed);
75 // Modification epoch of this waiter.
76 uint64_t epoch = local
77 (w->epoch & kEpochMask) +
78 (((w->epoch & kWaiterMask) >> kWaiterShift) << kEpochShift);
81 if (int64_t((state & kEpochMask) - epoch) < 0) {
89 if (int64_t((state & kEpochMask) - epoch) > 0) return;
107 uint64_t epoch = local
108 (w->epoch
176 uint64_t epoch; member in class:Eigen::EventCount::Waiter
[all...]
/external/tensorflow/tensorflow/python/keras/_impl/keras/
H A Dcallbacks.py72 def on_epoch_begin(self, epoch, logs=None):
73 """Called at the start of an epoch.
76 epoch: integer, index of epoch.
81 callback.on_epoch_begin(epoch, logs)
86 def on_epoch_end(self, epoch, logs=None):
87 """Called at the end of an epoch.
90 epoch: integer, index of epoch.
95 callback.on_epoch_end(epoch, log
[all...]
H A Dcallbacks_test.py191 filepath = os.path.join(temp_dir, 'checkpoint.{epoch:02d}.h5')
208 assert os.path.exists(filepath.format(epoch=2))
209 assert os.path.exists(filepath.format(epoch=4))
210 os.remove(filepath.format(epoch=2))
211 os.remove(filepath.format(epoch=4))
212 assert not os.path.exists(filepath.format(epoch=1))
213 assert not os.path.exists(filepath.format(epoch=3))
279 assert len(hist.epoch) >= patience
284 assert len(hist.epoch) >= patience
352 # This should reduce the LR after the first epoch (du
[all...]
/external/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_shadow_test.cc22 EXPECT_EQ(s.epoch(), (u64)22);
31 EXPECT_EQ(s.epoch(), (u64)23);
33 EXPECT_EQ(s.epoch(), (u64)24);
H A Dtsan_mutexset_test.cc18 static void Expect(const MutexSet &mset, uptr i, u64 id, bool write, u64 epoch, argument
23 EXPECT_EQ(epoch, d.epoch);
/external/autotest/client/common_lib/
H A Dtime_utils.py56 """Parse a date time string into seconds since the epoch.
60 @return The number of seconds since the UNIX epoch, as a float.
67 """Convert epoch time (float) to a human readable date string.
69 @param epoch_time The number of seconds since the UNIX epoch, as
83 """Convert the given value to epoch time.
85 Convert the given value to epoch time if it is a datetime object or a string
87 If the given value is a number, this function assume the value is a epoch
91 @returns: epoch time if value is datetime.datetime,
113 epoch.
118 epoch
[all...]
/external/boringssl/src/ssl/
H A Ddtls_record.cc225 uint16_t epoch = (((uint16_t)sequence[0]) << 8) | sequence[1]; local
226 if (epoch != ssl->d1->r_epoch ||
228 // Drop this record. It's from the wrong epoch or is a replay. Note that if
229 // |epoch| is the next epoch, the record could be buffered for later. For
304 // Determine the parameters for the current epoch.
305 uint16_t epoch = ssl->d1->w_epoch; local
310 epoch = ssl->d1->w_epoch - 1;
326 out[3] = epoch >> 8;
327 out[4] = epoch
[all...]
/external/tensorflow/tensorflow/python/data/kernel_tests/
H A Dreader_dataset_ops_test.py346 for epoch in range(num_epochs):
349 if (epoch == epoch_break and f == file_break and
369 for epoch in range(num_epochs):
372 if (epoch < epoch_break or
373 (epoch == epoch_break and f < file_break) or
374 (epoch == epoch_break and f == file_break and
399 for epoch in range(num_epochs):
402 if (epoch == epoch_break and f == file_break and
423 for epoch in range(num_epochs):
426 if (epoch < epoch_brea
[all...]
/external/fio/
H A Dtime.c120 if (utime_since(&td->epoch, &tv) >= td->o.ramp_time) {
164 fio_gettime(&td->epoch, NULL);
H A Dlibfio.c147 memcpy(&td->start, &td->epoch, sizeof(struct timeval));
148 memcpy(&td->iops_sample_time, &td->epoch, sizeof(struct timeval));
149 memcpy(&td->bw_sample_time, &td->epoch, sizeof(struct timeval));
150 memcpy(&td->ss.prev_time, &td->epoch, sizeof(struct timeval));
/external/libogg/
H A Dlibogg.spec13 # 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}
/external/toolchain-utils/deprecated/
H A Dsheriff_rotation.py35 epoch = datetime.datetime.utcfromtimestamp(0)
36 delta_since_epoch = day - epoch
/external/volley/src/main/java/com/android/volley/toolbox/
H A DHttpHeaderParser.java137 * Parse date in RFC1123 format, and return its value as epoch
150 /** Format an epoch date in RFC1123 format. */
151 static String formatEpochAsRfc1123(long epoch) { argument
152 return newRfc1123Formatter().format(new Date(epoch));

Completed in 1018 milliseconds

123