/freebsd/sys/kern/ |
H A D | subr_epoch.c | 70 struct epoch *er_parent; 80 struct epoch { struct 96 SYSCTL_NODE(_kern, OID_AUTO, epoch, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, argument 132 static struct epoch epoch_array[MAX_EPOCHS]; 150 epoch_currecord(epoch_t epoch) in epoch_currecord() argument 153 return (zpcpu_get(epoch->e_pcpu_record)); in epoch_currecord() 222 epoch_trace_enter(struct thread *td, epoch_t epoch, epoch_tracker_t et, in epoch_trace_enter() argument 228 if (iet->et_epoch != epoch) in epoch_trace_enter() 232 epoch->e_name, file, line, in epoch_trace_enter() 235 et->et_epoch = epoch; in epoch_trace_enter() [all …]
|
/freebsd/sys/contrib/ck/src/ |
H A D | ck_epoch.c | 174 ((int)(current->epoch - other->epoch) < 0)) { in CK_STACK_CONTAINER() 179 ck_pr_store_uint(&record->epoch, other->epoch); in CK_STACK_CONTAINER() 191 unsigned int epoch, i; in _ck_epoch_addref() local 193 epoch = ck_pr_load_uint(&global->epoch); in _ck_epoch_addref() 194 i = epoch & CK_EPOCH_SENSE_MASK; in _ck_epoch_addref() 221 ref->epoch = epoch; in _ck_epoch_addref() 233 global->epoch = 1; in ck_epoch_init() 282 record->epoch = 0; in ck_epoch_register() 304 record->epoch = 0; in ck_epoch_unregister() 323 unsigned int epoch, in ck_epoch_scan() argument [all …]
|
/freebsd/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, int dump_onfail); [all …]
|
/freebsd/sys/contrib/ck/include/ |
H A D | ck_epoch.h | 81 unsigned int epoch; member 89 unsigned int epoch; member 103 unsigned int epoch; member 128 struct ck_epoch *epoch = record->global; in ck_epoch_begin() local 157 g_epoch = ck_pr_load_uint(&epoch->epoch); in ck_epoch_begin() 158 ck_pr_store_uint(&record->epoch, g_epoch); in ck_epoch_begin() 200 struct ck_epoch *epoch = record->global; in ck_epoch_call() local 201 unsigned int e = ck_pr_load_uint(&epoch->epoch); in ck_epoch_call() 218 struct ck_epoch *epoch = record->global; in ck_epoch_call_strict() local 219 unsigned int e = ck_pr_load_uint(&epoch->epoch); in ck_epoch_call_strict() [all …]
|
/freebsd/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}:}%{version}-%{release} 110 Provides: kmod-${kmodname}-PAE = %{?epoch:%{epoch}:}%{version}-%{release} 111 Requires: akmod-${kmodname} = %{?epoch:%{epoch}:}%{version}-%{release} 153 Provides: ${kmodname}-kmod = %{?epoch:%{epoch}:}%{version}-%{release} 154 Requires: ${kmodname}-kmod-common >= %{?epoch:%{epoch}:}%{version} 230 Provides: ${kmodname}-devel-kmod = %{?epoch:%{epoch}:}%{version}-%{release} [all …]
|
/freebsd/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/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_shadow.h | 32 Epoch epoch() const { return static_cast<Epoch>(part_.epoch_); } in epoch() function 34 void SetEpoch(Epoch epoch) { part_.epoch_ = static_cast<u16>(epoch); } in SetEpoch() argument 74 DCHECK_EQ(epoch(), epoch0); in Shadow() 81 Epoch epoch() const { return static_cast<Epoch>(part_.epoch_); } in epoch() function 140 static RawShadow FreedInfo(Sid sid, Epoch epoch) { in FreedInfo() argument 143 s.part_.epoch_ = static_cast<u16>(epoch); in FreedInfo()
|
H A D | tsan_rtl.cpp | 136 static void DoResetImpl(uptr epoch) { in DoResetImpl() argument 139 CHECK_EQ(ctx->global_epoch, epoch); in DoResetImpl() 233 void DoReset(ThreadState* thr, uptr epoch) SANITIZER_NO_THREAD_SAFETY_ANALYSIS { in DoReset() argument 236 if (UNLIKELY(epoch == 0)) in DoReset() 237 epoch = ctx->global_epoch; in DoReset() 238 if (UNLIKELY(epoch != ctx->global_epoch)) { in DoReset() 245 DPrintf("#%d: DoReset epoch=%lu\n", thr ? thr->tid : -1, epoch); in DoReset() 246 DoResetImpl(epoch); in DoReset() 257 uptr epoch; in FindSlotAndLock() local 260 epoch = ctx->global_epoch; in FindSlotAndLock() [all …]
|
H A D | tsan_defs.h | 68 inline Epoch EpochInc(Epoch epoch) { in EpochInc() argument 69 return static_cast<Epoch>(static_cast<u16>(epoch) + 1); in EpochInc() 72 inline bool EpochOverflow(Epoch epoch) { return epoch == kEpochOver; } in EpochOverflow() argument
|
H A D | tsan_rtl_report.cpp | 356 Epoch epoch, Func f) { in TraceReplay() argument 376 ev_epoch = static_cast<Epoch>(ev->epoch); in TraceReplay() 377 if (ev_sid == sid && ev_epoch > epoch) in TraceReplay() 432 bool RestoreStack(EventType type, Sid sid, Epoch epoch, uptr addr, uptr size, in RestoreStack() argument 439 static_cast<int>(sid), static_cast<int>(epoch), addr, size, in RestoreStack() 449 static_cast<int>(slot->journal[i].epoch), slot->journal[i].tid); in RestoreStack() 450 if (i == slot->journal.Size() - 1 || slot->journal[i + 1].epoch > epoch) { in RestoreStack() 487 trace, last_part, last_pos, sid, epoch, in RestoreStack() 496 bool match = ev_sid == sid && ev_epoch == epoch; in RestoreStack() 705 return last.sid() == old.sid() && last.epoch() == old.epoch(); in SpuriousRace() [all …]
|
H A D | tsan_rtl_mutex.cpp | 460 for (auto &slot : ctx->slots) thr->clock.Set(slot.sid, slot.epoch()); in AcquireGlobal() 505 Epoch epoch = EpochInc(thr->fast_state.epoch()); in IncrementEpoch() local 506 if (!EpochOverflow(epoch)) { in IncrementEpoch() 508 thr->clock.Set(sid, epoch); in IncrementEpoch() 509 thr->fast_state.SetEpoch(epoch); in IncrementEpoch() 510 thr->slot->SetEpoch(epoch); in IncrementEpoch() 524 thr->last_sleep_clock.Set(slot.sid, slot.epoch()); in AfterSleep() 570 if (!RestoreStack(EventType::kLock, last_lock.sid(), last_lock.epoch(), addr, in ReportDestroyLocked()
|
H A D | tsan_rtl_access.cpp | 143 ev.epoch = static_cast<u64>(fast_state.epoch()); in TraceTime() 218 if (LIKELY(thr->clock.Get(old.sid()) >= old.epoch())) in CheckRaces() 365 u16 epoch = static_cast<u16>(thr->clock.Get(static_cast<Sid>(sid))); \ in CheckRaces() 366 thread_epochs = _mm_insert_epi32(thread_epochs, u32(epoch) << 16, idx); \ in CheckRaces() 398 static_cast<u32>(s.sid()), static_cast<u32>(s.epoch()), in DumpShadow() 426 static_cast<int>(thr->fast_state.epoch()), (void*)addr, size, in MemoryAccess() 614 static_cast<u32>(Shadow::FreedInfo(cur.sid(), cur.epoch())), 0, 0); in MemoryRangeFreed() 626 StoreShadow(&shadow_mem[1], Shadow::FreedInfo(cur.sid(), cur.epoch())); in MemoryRangeFreed()
|
/freebsd/crypto/openssl/test/helpers/ |
H A D | ssltestlib.c | 129 int rem, i, content, reclen, msglen, fragoff, fraglen, epoch; in dump_data() 149 epoch = (rec[RECORD_EPOCH_HI] << 8) | rec[RECORD_EPOCH_LO]; in dump_data() 150 printf("** Record Epoch: %d\n", epoch); in dump_data() 162 if (epoch > 0) { in dump_data() 276 unsigned int epoch; 360 unsigned int seq, offset, len, epoch; in mempacket_test_read() 386 epoch = (rec[EPOCH_HI] << 8) | rec[EPOCH_LO]; in mempacket_test_read() 387 if (epoch != ctx->epoch) { in mempacket_test_read() 388 ctx->epoch in mempacket_test_read() 120 int rem, i, content, reclen, msglen, fragoff, fraglen, epoch; dump_data() local 267 unsigned int epoch; global() member 351 unsigned int seq, offset, len, epoch; mempacket_test_read() local 424 unsigned int epoch; mempacket_swap_epoch() local [all...] |
/freebsd/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 }; in isc_time_set() local 92 SystemTimeToFileTime(&epoch, &temp); in isc_time_set() 229 SYSTEMTIME epoch = { 1970, 1, 4, 1, 0, 0, 0, 0 }; in isc_time_seconds() local 234 SystemTimeToFileTime(&epoch, &temp); in isc_time_seconds()
|
/freebsd/crypto/openssl/test/recipes/15-test_mp_rsa_data/ |
H A D | plain_text | 3 it was the epoch of belief, it was the epoch of incredulity,
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/ObjC/ |
H A D | CF.cpp | 31 time_t epoch = GetOSXEpoch(); in CFAbsoluteTimeSummaryProvider() local 32 epoch = epoch + (time_t)valobj.GetValueAsSigned(0); in CFAbsoluteTimeSummaryProvider() 33 tm *tm_date = localtime(&epoch); in CFAbsoluteTimeSummaryProvider()
|
H A D | Cocoa.cpp | 991 time_t epoch = GetOSXEpoch(); in NSDateSummaryProvider() local 992 epoch = epoch + static_cast<time_t>(std::floor(date_value)); in NSDateSummaryProvider() 993 tm *tm_date = gmtime(&epoch); in NSDateSummaryProvider() 1228 static time_t epoch = 0; in GetOSXEpoch() local 1229 if (!epoch) { in GetOSXEpoch() 1242 epoch = timegm(&tm_epoch); in GetOSXEpoch() 1245 return epoch; in GetOSXEpoch()
|
/freebsd/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 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 */ wwv_rf() local 1304 long epoch; wwv_qrz() local [all...] |
/freebsd/contrib/ntp/util/ |
H A D | ntp-keygen.c | 169 time_t epoch; /* Unix epoch (seconds) since 1970 */ variable 370 epoch = tv.tv_sec; in main() 371 fstamp = (u_int)(epoch + JAN_1970); in main() 500 RAND_add(&epoch, sizeof(epoch), 4.0); in main() 667 ctime(&epoch)); in main() 694 ctime(&epoch)); in main() 739 ctime(&epoch)); in main() 766 ctime(&epoch)); in main() [all...] |
/freebsd/crypto/openssl/test/ |
H A D | dtlstest.c | 197 int epoch = 0; in test_dtls_drop_records() local 272 epoch = 1; in test_dtls_drop_records() 278 epoch = 1; in test_dtls_drop_records() 283 BIO_ctrl(mempackbio, MEMPACKET_CTRL_SET_DROP_EPOCH, epoch, NULL); in test_dtls_drop_records()
|
/freebsd/sbin/routed/ |
H A D | main.c | 57 struct timeval epoch; /* when started */ variable 113 epoch = clk; in main() 114 epoch.tv_sec -= EPOCH; in main() 364 epoch.tv_sec += dt; in main() 367 timevalsub(&now, &clk, &epoch); in main()
|
/freebsd/crypto/openssl/ssl/record/ |
H A D | rec_layer_d1.c | 241 if (s->rlayer.d->unprocessed_rcds.epoch != s->rlayer.d->r_epoch) in dtls1_process_buffered_records() 308 s->rlayer.d->processed_rcds.epoch = s->rlayer.d->r_epoch; in dtls1_process_buffered_records() 309 s->rlayer.d->unprocessed_rcds.epoch = s->rlayer.d->r_epoch + 1; in dtls1_process_buffered_records() 1010 if (rr->epoch == s->rlayer.d->r_epoch) in dtls1_get_bitmap() 1017 else if (rr->epoch == (unsigned long)(s->rlayer.d->r_epoch + 1) in dtls1_get_bitmap() 1018 && s->rlayer.d->unprocessed_rcds.epoch != s->rlayer.d->r_epoch) { in dtls1_get_bitmap()
|
H A D | record.h | 65 /* epoch number, needed by DTLS1 */ 67 unsigned long epoch; member 81 unsigned short epoch; member 97 * The current data and handshake epoch. This is initially 103 /* records being received in the current epoch */
|
/freebsd/sys/modules/epoch_test/ |
H A D | Makefile | 1 .PATH: ${SRCTOP}/sys/tests/epoch
|
/freebsd/sys/contrib/zstd/lib/dictBuilder/ |
H A D | fastcover.c | 413 size_t epoch; in FASTCOVER_buildDictionary() local 419 for (epoch = 0; tail > 0; epoch = (epoch + 1) % epochs.num) { in FASTCOVER_buildDictionary() 420 const U32 epochBegin = (U32)(epoch * epochs.size); in FASTCOVER_buildDictionary()
|