/freebsd-current/sys/sys/ |
H A D | epoch.h | 45 struct epoch; 46 typedef struct epoch *epoch_t; 60 struct epoch *et_epoch; 71 void epoch_free(epoch_t epoch); 72 void epoch_wait(epoch_t epoch); 73 void epoch_wait_preempt(epoch_t epoch); 74 void epoch_drain_callbacks(epoch_t epoch); 75 void epoch_call(epoch_t epoch, epoch_callback_t cb, epoch_context_t ctx); 76 int in_epoch(epoch_t epoch); 77 int in_epoch_verbose(epoch_t epoch, in [all...] |
/freebsd-current/sys/contrib/ck/src/ |
H A D | ck_epoch.c | 44 * 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-current/sys/kern/ |
H A D | subr_epoch.c | 32 #include <sys/epoch.h> 70 struct epoch *er_parent; 80 struct epoch { struct 96 SYSCTL_NODE(_kern, OID_AUTO, epoch, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, 97 "epoch information"); 99 "epoch stats"); 105 &block_count, "# of times a thread was in an epoch when epoch_wait was called"); 113 &turnstile_count, "# of times a thread was blocked on a lock in an epoch during an epoch_wait"); 132 static struct epoch epoch_array[MAX_EPOCHS]; 150 epoch_currecord(epoch_t epoch) argument 222 epoch_trace_enter(struct thread *td, epoch_t epoch, epoch_tracker_t et, const char *file, int line) argument 243 epoch_trace_exit(struct thread *td, epoch_t epoch, epoch_tracker_t et, const char *file, int line) argument 276 epoch_where_report(epoch_t epoch) argument 340 epoch_ctor(epoch_t epoch) argument 368 epoch_t epoch; local 415 epoch_free(epoch_t epoch) argument 463 _epoch_enter_preempt(epoch_t epoch, epoch_tracker_t et EPOCH_FILE_LINE) argument 492 epoch_enter(epoch_t epoch) argument 513 _epoch_exit_preempt(epoch_t epoch, epoch_tracker_t et EPOCH_FILE_LINE) argument 544 epoch_exit(epoch_t epoch) argument 702 epoch_wait_preempt(epoch_t epoch) argument 765 epoch_wait(epoch_t epoch) argument 777 epoch_call(epoch_t epoch, epoch_callback_t callback, epoch_context_t ctx) argument 809 epoch_t epoch; local 846 in_epoch_verbose_preempt(epoch_t epoch, int dump_onfail) argument 879 epoch_assert_nocpu(epoch_t epoch, struct thread *td) argument 900 in_epoch_verbose(epoch_t epoch, int dump_onfail) argument 938 in_epoch(epoch_t epoch) argument 946 struct epoch *epoch = local 957 epoch_drain_callbacks(epoch_t epoch) argument [all...] |
/freebsd-current/sys/modules/epoch_test/ |
H A D | Makefile | 2 .PATH: ${SRCTOP}/sys/tests/epoch
|
/freebsd-current/sys/contrib/ck/include/ |
H A D | ck_epoch.h | 48 * 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-current/contrib/ntp/scripts/monitoring/ |
H A D | timelocal.pl | 27 @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-current/crypto/heimdal/kdc/ |
H A D | rx.h | 62 uint32_t epoch; member in struct:rx_header
|
/freebsd-current/sys/contrib/openzfs/scripts/ |
H A D | kmodtool | 81 Requires: ${kmodname}-kmod-common >= %{?epoch:%{epoch}:}%{version} 82 Provides: ${kmodname}-kmod = %{?epoch:%{epoch}:}%{version}-%{release} 107 Provides: ${kmodname}-kmod = %{?epoch:%{epoch}:}%{version}-%{release} 108 Provides: kmod-${kmodname}-xen = %{?epoch:%{epoch}:}%{version}-%{release} 109 Provides: kmod-${kmodname}-smp = %{?epoch:%{epoch} [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_shadow.h | 32 Epoch epoch() const { return static_cast<Epoch>(part_.epoch_); } function in class:__tsan::FastState 34 void SetEpoch(Epoch epoch) { part_.epoch_ = static_cast<u16>(epoch); } argument 74 DCHECK_EQ(epoch(), epoch0); 81 Epoch epoch() const { return static_cast<Epoch>(part_.epoch_); } function in class:__tsan::Shadow 140 static RawShadow FreedInfo(Sid sid, Epoch epoch) { argument 143 s.part_.epoch_ = static_cast<u16>(epoch);
|
H A D | tsan_defs.h | 68 inline Epoch EpochInc(Epoch epoch) { argument 69 return static_cast<Epoch>(static_cast<u16>(epoch) + 1); 72 inline bool EpochOverflow(Epoch epoch) { return epoch == kEpochOver; } argument
|
H A D | tsan_rtl.cpp | 135 static void DoResetImpl(uptr epoch) { argument 138 CHECK_EQ(ctx->global_epoch, epoch); 232 void DoReset(ThreadState* thr, uptr epoch) SANITIZER_NO_THREAD_SAFETY_ANALYSIS { 235 if (UNLIKELY(epoch == 0)) 236 epoch = ctx->global_epoch; 237 if (UNLIKELY(epoch != ctx->global_epoch)) { 244 DPrintf("#%d: DoReset epoch=%lu\n", thr ? thr->tid : -1, epoch); 245 DoResetImpl(epoch); variable 256 uptr epoch; variable 302 Epoch epoch = EpochInc(slot->epoch()); local [all...] |
H A D | tsan_rtl_report.cpp | 352 // or up to the provided epoch/sid (whichever is earlier) 356 Epoch epoch, Func f) { 376 ev_epoch = static_cast<Epoch>(ev->epoch); 377 if (ev_sid == sid && ev_epoch > epoch) 429 // by epoch/addr/size/typ and restores and returns tid, stack, mutex set 432 bool RestoreStack(EventType type, Sid sid, Epoch epoch, uptr addr, uptr size, argument 435 // This function restores stack trace and mutex set for the thread/epoch. 437 // trace part, and then replaying the trace till the given epoch. 439 static_cast<int>(sid), static_cast<int>(epoch), addr, size, 448 DPrintf2(" journal: epoch 355 TraceReplay(Trace *trace, TracePart *last, Event *last_pos, Sid sid, Epoch epoch, Func f) argument [all...] |
H A D | tsan_rtl_access.cpp | 143 ev.epoch = static_cast<u64>(fast_state.epoch()); 218 if (LIKELY(thr->clock.Get(old.sid()) >= old.epoch())) 258 // Shadow::kRodata has epoch 0 which cannot appear in shadow normally 365 u16 epoch = static_cast<u16>(thr->clock.Get(static_cast<Sid>(sid))); \ 366 thread_epochs = _mm_insert_epi32(thread_epochs, u32(epoch) << 16, idx); \ 398 static_cast<u32>(s.sid()), static_cast<u32>(s.epoch()), 426 static_cast<int>(thr->fast_state.epoch()), (void*)addr, size, 614 static_cast<u32>(Shadow::FreedInfo(cur.sid(), cur.epoch())), 0, 0); 626 StoreShadow(&shadow_mem[1], Shadow::FreedInfo(cur.sid(), cur.epoch())); [all...] |
H A D | tsan_rtl_mutex.cpp | 460 for (auto &slot : ctx->slots) thr->clock.Set(slot.sid, slot.epoch()); 505 Epoch epoch = EpochInc(thr->fast_state.epoch()); local 506 if (!EpochOverflow(epoch)) { 508 thr->clock.Set(sid, epoch); 509 thr->fast_state.SetEpoch(epoch); 510 thr->slot->SetEpoch(epoch); 524 thr->last_sleep_clock.Set(slot.sid, slot.epoch()); 570 if (!RestoreStack(EventType::kLock, last_lock.sid(), last_lock.epoch(), addr,
|
/freebsd-current/contrib/ntp/libntp/lib/isc/win32/ |
H A D | time.c | 50 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-current/contrib/jemalloc/include/jemalloc/internal/ |
H A D | arena_structs_b.h | 35 * 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 D | ctl.h | 83 uint64_t epoch; member in struct:ctl_arenas_s
|
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/Language/ObjC/ |
H A D | CF.cpp | 31 time_t epoch = GetOSXEpoch(); local 32 epoch = epoch + (time_t)valobj.GetValueAsSigned(0); 33 tm *tm_date = localtime(&epoch);
|
/freebsd-current/crypto/openssl/test/helpers/ |
H A D | ssltestlib.c | 120 int rem, i, content, reclen, msglen, fragoff, fraglen, epoch; local 140 epoch = (rec[RECORD_EPOCH_HI] << 8) | rec[RECORD_EPOCH_LO]; 141 printf("** Record Epoch: %d\n", epoch); 153 if (epoch > 0) { 267 unsigned int epoch; member in struct:mempacket_test_ctx_st 351 unsigned int seq, offset, len, epoch; local 377 epoch = (rec[EPOCH_HI] << 8) | rec[EPOCH_LO]; 378 if (epoch != ctx->epoch) { 379 ctx->epoch 424 unsigned int epoch; local [all...] |
/freebsd-current/contrib/ntp/ntpd/ |
H A D | refclock_wwv.c | 84 #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-current/sys/net/ |
H A D | bpfdesc.h | 45 #include <sys/epoch.h>
|
/freebsd-current/sys/netlink/ |
H A D | netlink_route.c | 30 #include <sys/epoch.h>
|
/freebsd-current/crypto/openssl/test/ |
H A D | dtlstest.c | 112 * Inject a dummy record from the next epoch. In test 0, this should never 197 int epoch = 0; local 272 epoch = 1; 278 epoch = 1; 283 BIO_ctrl(mempackbio, MEMPACKET_CTRL_SET_DROP_EPOCH, epoch, NULL); 407 0, 0, /* epoch */ 467 * Test 0: Test receiving a handshake record early from next epoch on server side 468 * Test 1: Test receiving a handshake record early from next epoch on client side 469 * Test 2: Test receiving an app data record early from next epoch on client side
|
/freebsd-current/contrib/ntp/util/ |
H A D | ntp-keygen.c | 169 time_t epoch; /* Unix epoch (seconds) since 1970 */ variable 370 epoch = tv.tv_sec; 371 fstamp = (u_int)(epoch + JAN_1970); 500 RAND_add(&epoch, sizeof(epoch), 4.0); 667 ctime(&epoch)); 694 ctime(&epoch)); 739 ctime(&epoch)); 766 ctime(&epoch)); 2004 X509_time_adj(X509_getm_notBefore(cert), 0L, &epoch); local 2005 X509_time_adj(X509_getm_notAfter(cert), lifetime * SECSPERDAY, &epoch); local [all...] |
/freebsd-current/crypto/openssl/ssl/record/ |
H A D | record.h | 65 /* epoch number, needed by DTLS1 */ 67 unsigned long epoch; member in struct:ssl3_record_st 81 unsigned short epoch; member in struct:record_pqueue_st 97 * The current data and handshake epoch. This is initially 103 /* records being received in the current epoch */
|