| /f-stack/freebsd/kern/ |
| H A D | kern_clocksource.c | 145 now = state->now; in hardclockintr() 147 curcpu, (int)(now >> 32), (u_int)(now & 0xffffffff)); in hardclockintr() 165 curcpu, (int)(now >> 32), (u_int)(now & 0xffffffff)); in handleevents() 211 if (now >= state->nextcallopt || now >= state->nextcall) { in handleevents() 325 state->now = now; 343 state->now = now; 490 now = 0; 505 state->now = now; 690 state->now = now; 775 now = state->now; [all …]
|
| H A D | subr_filter.c | 158 tf->entries[i].time_up = now; in check_update_times() 167 tf->entries[i].time_up = now; in check_update_times() 202 tf->entries[i].time_up = now; in check_update_times_small() 219 tf->entries[0].time_up = now; in filter_reduce_by() 222 tf->entries[i].time_up = now; in filter_reduce_by() 239 tf->entries[0].time_up = now; in filter_reduce_by_small() 242 tf->entries[i].time_up = now; in filter_reduce_by_small() 256 tf->entries[0].time_up = now; in filter_increase_by() 259 tf->entries[i].time_up = now; in filter_increase_by() 273 tf->entries[0].time_up = now; in filter_increase_by_small() [all …]
|
| H A D | subr_counter.c | 133 int now; in counter_ratecheck() local 136 now = ticks; in counter_ratecheck() 138 if ((u_int)(now - cr->cr_ticks) >= hz) { in counter_ratecheck() 149 if ((u_int)(now - cr->cr_ticks) >= hz) { in counter_ratecheck() 153 cr->cr_ticks = now; in counter_ratecheck()
|
| H A D | subr_devstat.c | 227 devstat_start_transaction(struct devstat *ds, const struct bintime *now) in devstat_start_transaction() argument 241 if (now != NULL) in devstat_start_transaction() 242 ds->busy_from = *now; in devstat_start_transaction() 303 const struct bintime *now, const struct bintime *then) in devstat_end_transaction() argument 311 if (now == NULL) { in devstat_end_transaction() 313 now = &lnow; in devstat_end_transaction() 330 dt = *now; in devstat_end_transaction() 336 dt = *now; in devstat_end_transaction() 339 ds->busy_from = *now; in devstat_end_transaction() 355 const struct bintime *now) in devstat_end_transaction_bio_bt() argument [all …]
|
| /f-stack/freebsd/contrib/openzfs/include/os/linux/zfs/sys/ |
| H A D | trace_zio.h | 42 TP_PROTO(zio_t *zio, hrtime_t now), 43 TP_ARGS(zio, now), 46 __field(hrtime_t, now) 50 __entry->now = now; 52 TP_printk("now %llu " ZIO_TP_PRINTK_FMT, __entry->now, 57 TP_PROTO(zio_t *zio, hrtime_t now, hrtime_t diff), 58 TP_ARGS(zio, now, diff), 61 __field(hrtime_t, now) 66 __entry->now = now; 69 TP_printk("now %llu diff %llu " ZIO_TP_PRINTK_FMT, __entry->now,
|
| /f-stack/freebsd/x86/x86/ |
| H A D | delay.c | 57 uint64_t end, now; in delay_tsc() local 64 now = rdtsc(); in delay_tsc() 65 end = now + tsc_freq * n / 1000000; in delay_tsc() 68 now = rdtsc(); in delay_tsc() 69 } while (now < end); in delay_tsc() 78 uint64_t end, freq, now; in delay_tc() local 97 now = 0; in delay_tc() 104 now += mask - last + u + 1; in delay_tc() 106 now += u - last; in delay_tc() 108 } while (now < end); in delay_tc()
|
| H A D | pvclock.c | 173 uint64_t now, last; in pvclock_get_timecount() local 176 pvclock_read_time_info(ti, &now, &flags); in pvclock_get_timecount() 179 return (now); in pvclock_get_timecount() 188 if (last > now) in pvclock_get_timecount() 190 } while (!atomic_cmpset_64(&pvclock_last_cycles, last, now)); in pvclock_get_timecount() 192 return (now); in pvclock_get_timecount()
|
| /f-stack/dpdk/lib/librte_jobstats/ |
| H A D | rte_jobstats.c | 86 uint64_t now; in rte_jobstats_context_start() local 90 now = get_time(); in rte_jobstats_context_start() 92 ctx->state_time = now; in rte_jobstats_context_start() 98 uint64_t now; in rte_jobstats_context_finish() local 103 now = get_time(); in rte_jobstats_context_finish() 105 ctx->state_time = now; in rte_jobstats_context_finish() 128 uint64_t now; in rte_jobstats_start() local 137 now = get_time(); in rte_jobstats_start() 139 ctx->state_time = now; in rte_jobstats_start() 155 now = get_time(); in rte_jobstats_abort() [all …]
|
| /f-stack/dpdk/lib/librte_eal/freebsd/ |
| H A D | eal_alarm.c | 67 if (now->tv_sec < at->tv_sec) in timespec_cmp() 69 if (now->tv_sec > at->tv_sec) in timespec_cmp() 71 if (now->tv_nsec < at->tv_nsec) in timespec_cmp() 73 if (now->tv_nsec > at->tv_nsec) in timespec_cmp() 83 if (timespec_cmp(now, at) >= 0) in diff_ns() 86 now_ns = now->tv_sec * NS_PER_S + now->tv_nsec; in diff_ns() 96 struct timespec now; in eal_alarm_get_timeout_ns() local 106 *val = diff_ns(&now, &ap->time); in eal_alarm_get_timeout_ns() 148 struct timespec now; in eal_alarm_callback() local 183 struct timespec now; in rte_eal_alarm_set() local [all …]
|
| /f-stack/freebsd/netpfil/ipfw/ |
| H A D | dn_sched_fq_codel_helper.h | 82 sojourn_time = now - pkt_ts; in fqc_dodequeue() 90 q->cst.first_above_time = now + schk->cfg.ccfg.interval; in fqc_dodequeue() 91 } else if (now >= q->cst.first_above_time) { in fqc_dodequeue() 105 aqm_time_t now; in fqc_codel_dequeue() local 112 now = AQM_UNOW; in fqc_codel_dequeue() 113 m = fqc_dodequeue(q, now, &ok_to_drop, si); in fqc_codel_dequeue() 127 while (now >= cst->drop_next_time && cst->dropping) { in fqc_codel_dequeue() 139 m = fqc_dodequeue(q, now, &ok_to_drop, si); in fqc_codel_dequeue() 161 m = fqc_dodequeue(q, now, &ok_to_drop,si); in fqc_codel_dequeue() 174 cst->count = (cst->count > 2 && ((aqm_stime_t)now - in fqc_codel_dequeue() [all …]
|
| H A D | dn_aqm_codel.h | 114 sojourn_time = now - pkt_ts; in codel_dodequeue() 122 cst->first_above_time = now + cprms->interval; in codel_dodequeue() 123 } else if (now >= cst->first_above_time) { in codel_dodequeue() 139 aqm_time_t now; in codel_dequeue() local 144 now = AQM_UNOW; in codel_dequeue() 146 m = codel_dodequeue(q, now, &ok_to_drop); in codel_dequeue() 159 while (now >= cst->drop_next_time && cst->dropping) { in codel_dequeue() 172 m = codel_dodequeue(q, now, &ok_to_drop); in codel_dequeue() 195 m = codel_dodequeue(q, now, &ok_to_drop); in codel_dequeue() 208 cst->count = (cst->count > 2 && ((aqm_stime_t)now - in codel_dequeue() [all …]
|
| /f-stack/freebsd/sys/ |
| H A D | tim_filter.h | 88 void tick_filter_clock(struct time_filter *tf, uint32_t now); 89 uint32_t apply_filter_min(struct time_filter *tf, uint64_t value, uint32_t now); 90 uint32_t apply_filter_max(struct time_filter *tf, uint64_t value, uint32_t now); 91 void filter_reduce_by(struct time_filter *tf, uint64_t reduce_by, uint32_t now); 92 void filter_increase_by(struct time_filter *tf, uint64_t incr_by, uint32_t now); 110 void tick_filter_clock_small(struct time_filter_small *tf, uint32_t now); 112 uint32_t value, uint32_t now); 114 uint32_t value, uint32_t now); 116 uint32_t reduce_by, uint32_t now); 118 uint32_t incr_by, uint32_t now);
|
| /f-stack/app/redis-5.0.5/utils/lru/ |
| H A D | lfu-simulation.c | 28 uint16_t minutes_diff(uint16_t now, uint16_t prev) { in minutes_diff() argument 29 if (now >= prev) return now-prev; in minutes_diff() 30 return 65535-prev+now; in minutes_diff() 99 time_t now = time(NULL); in main() local 109 if (now-start < switch_after) { in main() 132 if (new_entry_time <= now) { in main() 138 new_entry_time = now+10; in main() 142 if (display_time != now) { in main() 144 printf("Current minutes time: %d\n", (int)to_16bit_minutes(now)); in main() 146 (now-start < switch_after) ? "power-law" : "flat"); in main() [all …]
|
| /f-stack/dpdk/lib/librte_eal/linux/ |
| H A D | eal_alarm.c | 80 struct timespec now; in eal_alarm_callback() local 85 clock_gettime(CLOCK_TYPE_ID, &now) == 0 && in eal_alarm_callback() 86 (ap->time.tv_sec < now.tv_sec || (ap->time.tv_sec == now.tv_sec && in eal_alarm_callback() 87 (ap->time.tv_usec * NS_PER_US) <= now.tv_nsec))) { in eal_alarm_callback() 107 if (now.tv_nsec > (ap->time.tv_usec * NS_PER_US)) in eal_alarm_callback() 110 atime.it_value.tv_sec -= now.tv_sec; in eal_alarm_callback() 111 atime.it_value.tv_nsec -= now.tv_nsec; in eal_alarm_callback() 120 struct timespec now; in rte_eal_alarm_set() local 133 clock_gettime(CLOCK_TYPE_ID, &now); in rte_eal_alarm_set() 137 new_alarm->time.tv_usec = ((now.tv_nsec / NS_PER_US) + us) % US_PER_S; in rte_eal_alarm_set() [all …]
|
| /f-stack/freebsd/contrib/libsodium/ |
| H A D | ChangeLog | 111 - libsodium is now available on NuGet. 194 `R` point are now also rejected. 203 - The library can now be compiled on Minix. 204 - HEASLR is now enabled on MinGW builds. 267 - QNX and CloudABI are now supported. 299 - Visual Studio 2015 is now supported. 324 - sodium_bin2hex() is now constant-time. 437 - CPU features are now detected at runtime. 444 - mingw64 is now supported 472 are now visible as intended. [all …]
|
| /f-stack/app/micro_thread/ |
| H A D | micro_thread.cpp | 176 _wakeup_time = now + ms; in sleep() 745 check_time = now; in CheckExpired() 966 utime64_t now = 0; in recvfrom() local 1026 utime64_t now = 0; in sendto() local 1072 utime64_t now = 0; in connect() local 1123 utime64_t now = 0; in accept() local 1169 utime64_t now = 0; in read() local 1215 utime64_t now = 0; in write() local 1273 utime64_t now = 0; in recv() local 1333 utime64_t now = 0; in send() local [all …]
|
| /f-stack/dpdk/examples/performance-thread/common/ |
| H A D | lthread_sched.h | 50 uint64_t now = rte_rdtsc(); in _sched_now() local 52 if (now > (THIS_SCHED)->birth) in _sched_now() 53 return now - (THIS_SCHED)->birth; in _sched_now() 54 if (now < (THIS_SCHED)->birth) in _sched_now() 55 return (THIS_SCHED)->birth - now; in _sched_now()
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | zfs_ratelimit.c | 77 hrtime_t now; in zfs_ratelimit() local 84 now = gethrtime(); in zfs_ratelimit() 85 elapsed = now - rl->start; in zfs_ratelimit() 89 rl->start = now; in zfs_ratelimit()
|
| /f-stack/app/redis-5.0.5/deps/jemalloc/test/unit/ |
| H A D | background_thread.c | 86 nstime_t start, now; in TEST_BEGIN() local 101 nstime_init(&now, 0); in TEST_BEGIN() 102 nstime_update(&now); in TEST_BEGIN() 103 nstime_subtract(&now, &start); in TEST_BEGIN() 104 assert_u64_lt(nstime_sec(&now), 1000, in TEST_BEGIN()
|
| /f-stack/freebsd/amd64/vmm/io/ |
| H A D | vhpet.c | 103 sbintime_t now); 156 sbintime_t now, delta; in vhpet_counter() local 160 now = sbinuptime(); in vhpet_counter() 161 delta = now - vhpet->countbase_sbt; in vhpet_counter() 166 *nowptr = now; in vhpet_counter() 286 sbintime_t now; in vhpet_handler() local 311 counter = vhpet_counter(vhpet, &now); in vhpet_handler() 333 if (vhpet->timer[n].callout_sbt < now) { in vhpet_stop_timer() 386 vhpet_stop_timer(vhpet, i, now); in vhpet_stop_counting() 481 sbintime_t now, *nowptr; in vhpet_mmio_write() local [all …]
|
| H A D | vpmtmr.c | 90 sbintime_t now, delta; in vpmtmr_handler() local 101 now = sbinuptime(); in vpmtmr_handler() 102 delta = now - vpmtmr->baseuptime; in vpmtmr_handler() 104 "%#lx to %#lx", vpmtmr->baseuptime, now)); in vpmtmr_handler()
|
| /f-stack/freebsd/contrib/libsodium/test/default/ |
| H A D | cmptest.h | 117 static unsigned long long now(void) in now() function 120 unsigned long long now; in now() local 125 now = ((unsigned long long) tp.tv_sec * 1000000ULL) + in now() 128 return now; in now() 144 ts_start = now(); in main() 150 ts_end = now(); in main()
|
| /f-stack/freebsd/net/altq/ |
| H A D | altq_codel.c | 312 u_int64_t now) in codel_should_drop() argument 332 c->vars.ldelay = now - *enqueue_time; in codel_should_drop() 345 c->vars.first_above_time = now + c->params.interval; in codel_should_drop() 348 if (codel_time_after(now, c->vars.first_above_time)) in codel_should_drop() 392 u_int64_t now; in codel_getq() local 400 now = read_machclk(); in codel_getq() 401 drop = codel_should_drop(c, q, m, now); in codel_getq() 416 codel_time_after_eq(now, c->vars.drop_next)) { in codel_getq() 425 if (!codel_should_drop(c, q, m, now)) in codel_getq() 442 drop = codel_should_drop(c, q, m, now); in codel_getq() [all …]
|
| /f-stack/app/redis-5.0.5/deps/lua/ |
| H A D | HISTORY | 32 + standard libraries now packaged in tables. 83 + general read patterns now deprecated. 87 + garbage collection tag methods for tables now deprecated. 88 + there is now only one tag method for order. 98 + code now compiles unmodified as both ANSI C and C++. 101 + luac can now combine text and binaries. 131 + the default for numbers is now double. 150 + luac can now also undump. 154 + io and string libraries are now based on pattern matching; 156 + dofile and dostring can now return values (via return statement) [all …]
|
| /f-stack/dpdk/lib/librte_latencystats/ |
| H A D | rte_latencystats.c | 131 uint64_t diff_tsc, now; in add_time_stamps() local 137 now = rte_rdtsc(); in add_time_stamps() 139 diff_tsc = now - prev_tsc; in add_time_stamps() 144 *timestamp_dynfield(pkts[i]) = now; in add_time_stamps() 148 prev_tsc = now; in add_time_stamps() 149 now = rte_rdtsc(); in add_time_stamps() 163 uint64_t now; in calc_latency() local 173 now = rte_rdtsc(); in calc_latency() 176 latency[cnt++] = now - *timestamp_dynfield(pkts[i]); in calc_latency()
|