Searched refs:time_diff (Results 1 – 13 of 13) sorted by relevance
| /f-stack/dpdk/app/test/ |
| H A D | test_mcslock.c | 73 uint64_t time_diff = 0, begin; in load_loop_fn() local 95 time_diff = rte_get_timer_cycles() - begin; in load_loop_fn() 96 time_count[lcore] = time_diff * 1000000 / hz; in load_loop_fn()
|
| H A D | test_spinlock.c | 106 uint64_t time_diff = 0, begin; in load_loop_fn() local 124 time_diff = rte_get_timer_cycles() - begin; in load_loop_fn() 125 time_count[lcore] = time_diff * 1000000 / hz; in load_loop_fn()
|
| H A D | test_ticketlock.c | 108 uint64_t time_diff = 0, begin; in load_loop_fn() local 127 time_diff = rte_rdtsc_precise() - begin; in load_loop_fn() 128 time_cost[lcore] = time_diff * 1000000 / hz; in load_loop_fn()
|
| H A D | test_mempool_perf.c | 124 uint64_t time_diff = 0, hz = rte_get_timer_hz(); in per_lcore_mempool_test() local 152 while (time_diff/hz < TIME_S) { in per_lcore_mempool_test() 179 time_diff = end_cycles - start_cycles; in per_lcore_mempool_test()
|
| H A D | test_timer.c | 522 const double time_diff = fabs(tsc_time - hpet_time)*100/tsc_time; in timer_sanity_check() local 526 time_diff); in timer_sanity_check() 527 if (time_diff > 0.1) { in timer_sanity_check()
|
| H A D | test_rwlock.c | 97 uint64_t time_diff = 0, begin; in load_loop_fn() local 124 time_diff = rte_rdtsc_precise() - begin; in load_loop_fn() 125 time_count[lcore] = time_diff * 1000000 / hz; in load_loop_fn()
|
| H A D | test_ring_perf.c | 331 uint64_t time_diff = 0; in load_loop_fn_helper() local 349 while (time_diff < hz * TIME_MS / 1000) { in load_loop_fn_helper() 355 time_diff = rte_get_timer_cycles() - begin; in load_loop_fn_helper()
|
| H A D | test_ipsec_perf.c | 498 uint64_t time_diff = 0; in measure_performance() local 513 time_diff = rte_get_timer_cycles() - begin; in measure_performance() 515 } while (time_diff < (hz * 10)); in measure_performance()
|
| H A D | test_red.c | 177 static double calc_exp_avg_on_empty(double avg, uint32_t n, uint32_t time_diff) in calc_exp_avg_on_empty() argument 179 return avg * pow((1.0 - 1.0 / (double)n), (double)time_diff / pkt_time_usec); in calc_exp_avg_on_empty() 787 uint64_t time_diff = 0; in func_test4() local 853 time_diff = ((rte_rdtsc() - start) / tcfg->tvar->clk_freq) in func_test4() 855 if (time_diff < MAX_QEMPTY_TIME_MSEC) { in func_test4()
|
| /f-stack/dpdk/lib/librte_sched/ |
| H A D | rte_red.h | 205 uint64_t time_diff = 0, m = 0; in rte_red_enqueue_empty() local 216 time_diff = time - red->q_time; in rte_red_enqueue_empty() 224 m = time_diff / RTE_RED_S; in rte_red_enqueue_empty()
|
| /f-stack/dpdk/lib/librte_meter/ |
| H A D | rte_meter.h | 419 uint64_t time_diff, n_periods, tc, te; in rte_meter_srtcm_color_blind_check() local 422 time_diff = time - m->time; in rte_meter_srtcm_color_blind_check() 423 n_periods = time_diff / p->cir_period; in rte_meter_srtcm_color_blind_check() 461 uint64_t time_diff, n_periods, tc, te; in rte_meter_srtcm_color_aware_check() local 464 time_diff = time - m->time; in rte_meter_srtcm_color_aware_check() 465 n_periods = time_diff / p->cir_period; in rte_meter_srtcm_color_aware_check()
|
| /f-stack/dpdk/examples/qos_meter/ |
| H A D | main.c | 178 uint64_t time_diff; in main_loop() local 183 time_diff = current_time - last_time; in main_loop() 184 if (unlikely(time_diff > TIME_TX_DRAIN)) { in main_loop()
|
| /f-stack/freebsd/contrib/openzfs/cmd/raidz_test/ |
| H A D | raidz_test.c | 884 hrtime_t time_diff, start_time = gethrtime(); in run_sweep() local 911 time_diff = (gethrtime() - start_time) / NANOSEC; in run_sweep() 913 time_diff >= rto_opts.rto_sweep_timeout) { in run_sweep()
|