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

123

/freebsd-12-stable/sys/sys/
H A Depoch.h44 struct epoch;
45 typedef struct epoch *epoch_t;
69 void epoch_free(epoch_t epoch);
70 void epoch_wait(epoch_t epoch);
71 void epoch_wait_preempt(epoch_t epoch);
72 void epoch_drain_callbacks(epoch_t epoch);
73 void epoch_call(epoch_t epoch, epoch_context_t ctx, void (*callback) (epoch_context_t));
74 int in_epoch(epoch_t epoch);
75 int in_epoch_verbose(epoch_t epoch, int dump_onfail);
81 void epoch_enter_preempt(epoch_t epoch, epoch_tracker_
[all...]
/freebsd-12-stable/sys/modules/epoch_test/
H A DMakefile3 .PATH: ${SRCTOP}/sys/tests/epoch
/freebsd-12-stable/sys/contrib/ck/src/
H A Dck_epoch.c44 * acquired some snapshot (e) of the global epoch value (e_g) and set an active
66 * causes epoch counter tick) actually deletes the same items that reader
68 * This is possible if the writer thread re-observes the epoch after the
89 * Now, if the epoch counter is ticked to e_g+1, then no new hazardous
91 * this is that at e_g+1, all epoch read-side critical sections started at
92 * e_g-1 must have been completed. If any epoch read-side critical sections at
121 * Blocking semantics for epoch reclamation have additional restrictions.
166 * epoch. If so, then make sure to update our shared snapshot
174 ((int)(current->epoch - other->epoch) <
191 unsigned int epoch, i; local
321 ck_epoch_scan(struct ck_epoch *global, struct ck_epoch_record *cr, unsigned int epoch, bool *af) argument
362 unsigned int epoch = e & (CK_EPOCH_LENGTH - 1); local
402 unsigned int epoch; local
429 unsigned int delta, epoch, goal, i; local
569 unsigned int epoch; local
[all...]
/freebsd-12-stable/sys/kern/
H A Dsubr_epoch.c36 #include <sys/epoch.h>
71 struct epoch *er_parent;
78 struct epoch { struct
94 SYSCTL_NODE(_kern, OID_AUTO, epoch, CTLFLAG_RW, 0, "epoch information");
95 SYSCTL_NODE(_kern_epoch, OID_AUTO, stats, CTLFLAG_RW, 0, "epoch stats");
101 &block_count, "# of times a thread was in an epoch when epoch_wait was called");
109 &turnstile_count, "# of times a thread was blocked on a lock in an epoch during an epoch_wait");
128 static struct epoch epoch_array[MAX_EPOCHS];
165 "epoch cal
184 epoch_ctor(epoch_t epoch) argument
212 epoch_t epoch; local
256 epoch_free(epoch_t epoch) argument
298 epoch_currecord(epoch_t epoch) argument
311 epoch_enter_preempt(epoch_t epoch, epoch_tracker_t et) argument
339 epoch_enter(epoch_t epoch) argument
364 epoch_exit_preempt(epoch_t epoch, epoch_tracker_t et) argument
399 epoch_exit(epoch_t epoch) argument
562 epoch_wait_preempt(epoch_t epoch) argument
625 epoch_wait(epoch_t epoch) argument
637 epoch_call(epoch_t epoch, epoch_context_t ctx, void (*callback) (epoch_context_t)) argument
669 epoch_t epoch; local
706 in_epoch_verbose_preempt(epoch_t epoch, int dump_onfail) argument
739 epoch_assert_nocpu(epoch_t epoch, struct thread *td) argument
760 in_epoch_verbose(epoch_t epoch, int dump_onfail) argument
798 in_epoch(epoch_t epoch) argument
806 struct epoch *epoch = local
817 epoch_drain_callbacks(epoch_t epoch) argument
894 epoch_enter_preempt_KBI(epoch_t epoch, epoch_tracker_t et) argument
900 epoch_exit_preempt_KBI(epoch_t epoch, epoch_tracker_t et) argument
906 epoch_enter_KBI(epoch_t epoch) argument
912 epoch_exit_KBI(epoch_t epoch) argument
[all...]
/freebsd-12-stable/sys/contrib/ck/include/
H A Dck_epoch.h48 * epoch sections.
81 unsigned int epoch; member in struct:ck_epoch_ref
89 unsigned int epoch; member in struct:ck_epoch_record
103 unsigned int epoch; member in struct:ck_epoch
123 * Marks the beginning of an epoch-protected section.
128 struct ck_epoch *epoch = record->global; local
131 * Only observe new epoch if thread is not recursing into a read
139 * is committed into the caller's epoch and active fields.
152 * active flag due to monotonic nature of the global epoch.
155 * of global epoch
200 struct ck_epoch *epoch = record->global; local
218 struct ck_epoch *epoch = record->global; local
[all...]
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_mutexset.cpp24 void MutexSet::Add(u64 id, bool write, u64 epoch) { argument
29 descs_[i].epoch = epoch;
38 if (descs_[i].epoch < minepoch) {
39 minepoch = descs_[i].epoch;
49 descs_[size_].epoch = epoch;
H A Dtsan_mutexset.h27 u64 epoch; member in struct:__tsan::MutexSet::Desc
34 void Add(u64 id, bool write, u64 epoch);
59 void MutexSet::Add(u64 id, bool write, u64 epoch) {} argument
H A Dtsan_clock.cpp146 if (clk_[tid] < dirty.epoch) {
147 clk_[tid] = dirty.epoch;
160 u64 epoch = src_elem.epoch; local
161 if (*dst_pos < epoch) {
162 *dst_pos = epoch;
199 if (dst->elem(tid_).epoch > last_acquire_) {
218 ce.epoch = max(ce.epoch, clk_[i]);
256 dst->dirty_[0].epoch
[all...]
H A Dtsan_rtl_mutex.cpp118 RestoreStack(last.tid(), last.epoch(), &trace, 0);
191 thr->mset.Add(s->GetId(), true, thr->fast_state.epoch());
286 thr->mset.Add(s->GetId(), false, thr->fast_state.epoch());
417 u64 epoch = tctx->epoch1; local
419 epoch = tctx->thr->fast_state.epoch();
420 thr->clock.set(&thr->proc()->clock_cache, tctx->tid, epoch);
438 // Can't increment epoch w/o writing to the trace as well.
450 // Can't increment epoch w/o writing to the trace as well.
460 u64 epoch local
[all...]
H A Dtsan_rtl_report.cpp379 void RestoreStack(int tid, const u64 epoch, VarSizeStackTrace *stk, argument
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
[all...]
H A Dtsan_rtl.h97 // epoch : kClkBits
100 FastState(u64 tid, u64 epoch) { argument
102 x_ |= epoch;
104 DCHECK_EQ(epoch, this->epoch());
126 u64 epoch() const { function in class:__tsan::FastState
132 u64 old_epoch = epoch();
134 DCHECK_EQ(old_epoch + 1, epoch());
162 return epoch() & mask;
182 // epoch
[all...]
H A Dtsan_defs.h44 u64 epoch : kClkBits; member in struct:__tsan::ClockElem
H A Dtsan_rtl.cpp112 ThreadState::ThreadState(Context *ctx, int tid, int unique_id, u64 epoch, argument
116 : fast_state(tid, epoch)
569 unsigned trace = (thr->fast_state.epoch() / kTracePartSize) % TraceParts();
571 hdr->epoch0 = thr->fast_state.epoch();
636 return thr->clock.get(old.TidWithIgnore()) >= old.epoch();
701 StoreShadow(shadow_mem + (cur.epoch() % kShadowCnt), store_word);
737 old.epoch() > sync_epoch &&
779 // epoch[0:31] = sync_epoch[0:31]
780 // epoch[32:63] = sync_epoch[0:31]
781 // epoch[6
783 const m128 epoch = SHUF(epoch1, epoch1, 0, 0, 0, 0); local
[all...]
/freebsd-12-stable/contrib/ntp/scripts/monitoring/
H A Dtimelocal.pl27 @epoch = localtime(0);
28 $tzmin = $epoch[2] * 60 + $epoch[1]; # minutes east of GMT
31 $tzmin -= 24 * 60 if $epoch[5] == 70; # account for the date line
65 $year += $YearFix if $year < $epoch[5];
/freebsd-12-stable/crypto/heimdal/kdc/
H A Drx.h62 uint32_t epoch; member in struct:rx_header
/freebsd-12-stable/contrib/ntp/lib/isc/win32/
H A Dtime.c50 static isc_time_t epoch = { { 0, 0 } }; variable
51 LIBISC_EXTERNAL_DATA isc_time_t *isc_time_epoch = &epoch;
85 SYSTEMTIME epoch = { 1970, 1, 4, 1, 0, 0, 0, 0 }; local
92 SystemTimeToFileTime(&epoch, &temp);
229 SYSTEMTIME epoch = { 1970, 1, 4, 1, 0, 0, 0, 0 }; local
234 SystemTimeToFileTime(&epoch, &temp);
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/Language/ObjC/
H A DCF.cpp32 time_t epoch = GetOSXEpoch(); local
33 epoch = epoch + (time_t)valobj.GetValueAsUnsigned(0);
34 tm *tm_date = localtime(&epoch);
H A DCocoa.cpp869 time_t epoch = GetOSXEpoch(); local
870 epoch = epoch + (time_t)date_value;
871 tm *tm_date = gmtime(&epoch);
1102 // POSIX has an epoch on Jan-1-1970, but Cocoa prefers Jan-1-2001
1103 // this call gives the POSIX equivalent of the Cocoa epoch
1105 static time_t epoch = 0; local
1106 if (!epoch) {
1119 epoch = timegm(&tm_epoch);
1122 return epoch;
[all...]
/freebsd-12-stable/contrib/jemalloc/include/jemalloc/internal/
H A Darena_structs_b.h35 * not actually advance to a new epoch until sometime after it starts
37 * to completely skip epochs. In all cases, during epoch advancement we
38 * merge all relevant activity into the most recently recorded epoch.
40 nstime_t epoch; member in struct:arena_decay_s
44 * Deadline for current epoch. This is the sum of interval and per
45 * epoch jitter which is a uniform random variable in [0..interval).
52 * Number of unpurged pages at beginning of current epoch. During epoch
61 * element is the most recent epoch. Corresponding epoch time
[all...]
H A Dctl.h80 uint64_t epoch; member in struct:ctl_arenas_s
/freebsd-12-stable/contrib/ntp/ntpd/
H A Drefclock_wwv.c84 #define WWV_SEC 8000 /* second epoch (sample rate) (Hz) */
85 #define WWV_MIN (WWV_SEC * 60) /* minute epoch */
133 #define MSYNC 0x0001 /* minute epoch sync */
134 #define SSYNC 0x0002 /* second epoch sync */
481 double epoch; /* accumulated epoch differences */ member in struct:sync
486 long mepoch; /* minute synch epoch */
536 int yepoch; /* sync epoch */
537 int repoch; /* buffered sync epoch */
896 * quadrature phase. The routine also determines the minute synch epoch,
972 int epoch; /* comb filter index */ local
1304 long epoch; local
[all...]
/freebsd-12-stable/contrib/ntp/util/
H A Dntp-keygen.c169 time_t epoch; /* Unix epoch (seconds) since 1970 */ variable
366 epoch = tv.tv_sec;
367 fstamp = (u_int)(epoch + JAN_1970);
496 RAND_add(&epoch, sizeof(epoch), 4.0);
662 ctime(&epoch));
687 ctime(&epoch));
728 ctime(&epoch));
753 ctime(&epoch));
1985 X509_time_adj(X509_getm_notBefore(cert), 0L, &epoch); local
1986 X509_time_adj(X509_getm_notAfter(cert), lifetime * SECSPERDAY, &epoch); local
[all...]
/freebsd-12-stable/crypto/openssl/ssl/record/
H A Drecord.h63 /* epoch number, needed by DTLS1 */
65 unsigned long epoch; member in struct:ssl3_record_st
79 unsigned short epoch; member in struct:record_pqueue_st
95 * The current data and handshake epoch. This is initially
101 /* records being received in the current epoch */
/freebsd-12-stable/sys/dev/qlnx/qlnxe/
H A Decore_mcp.h375 * @param epoch
381 u32 epoch);
396 u32 epoch; member in struct:ecore_mdump_retain_data
/freebsd-12-stable/sbin/routed/
H A Dmain.c75 struct timeval epoch; /* when started */ variable in typeref:struct:timeval
131 epoch = clk;
132 epoch.tv_sec -= EPOCH;
391 epoch.tv_sec += dt;
394 timevalsub(&now, &clk, &epoch);

Completed in 370 milliseconds

123