| /dpdk/app/test/ |
| H A D | test_meter.c | 208 uint64_t hz = rte_get_tsc_hz(); in tm_test_srtcm_color_blind_check() local 215 time = rte_get_tsc_cycles() + hz; in tm_test_srtcm_color_blind_check() 226 time = rte_get_tsc_cycles() + hz; in tm_test_srtcm_color_blind_check() 236 time = rte_get_tsc_cycles() + hz; in tm_test_srtcm_color_blind_check() 246 time = rte_get_tsc_cycles() + hz; in tm_test_srtcm_color_blind_check() 267 uint64_t hz = rte_get_tsc_hz(); in tm_test_trtcm_color_blind_check() local 274 time = rte_get_tsc_cycles() + hz; in tm_test_trtcm_color_blind_check() 326 uint64_t hz = rte_get_tsc_hz(); in tm_test_trtcm_rfc4115_color_blind_check() local 392 uint64_t hz = rte_get_tsc_hz(); in tm_test_srtcm_aware_check() local 499 uint64_t hz = rte_get_tsc_hz(); in tm_test_trtcm_aware_check() local [all …]
|
| H A D | test_timer.c | 144 uint64_t hz = rte_get_timer_hz(); in timer_stress_cb() local 155 mytimer_reset(&mytiminfo[0], hz, SINGLE, in timer_stress_cb() 167 uint64_t hz = rte_get_timer_hz(); in timer_stress_main_loop() local 403 uint64_t hz = rte_get_timer_hz(); in timer_basic_cb() local 424 mytimer_reset(timinfo, hz*2, SINGLE, in timer_basic_cb() 458 uint64_t hz = rte_get_timer_hz(); in timer_basic_main_loop() local 535 uint64_t hz; in test_timer() local 557 hz = rte_get_timer_hz(); in test_timer() 558 end_time = cur_time + (hz * TEST_DURATION_S); in test_timer() 579 hz = rte_get_timer_hz(); in test_timer() [all …]
|
| H A D | test_timer_racecond.c | 117 uint64_t hz; in test_timer_racecond() local 125 hz = rte_get_timer_hz(); in test_timer_racecond() 142 end_time = cur_time + (hz * TEST_DURATION_S); in test_timer_racecond()
|
| H A D | test_pflock.c | 65 uint64_t hz = rte_get_timer_hz(); in load_loop_fn() local 89 time_count[lcore] = time_diff * 1000000 / hz; in load_loop_fn()
|
| H A D | test_mcslock.c | 69 uint64_t hz = rte_get_timer_hz(); in load_loop_fn() local 90 time_count[lcore] = time_diff * 1000000 / hz; in load_loop_fn()
|
| H A D | test_ticketlock.c | 108 uint64_t hz = rte_get_timer_hz(); in load_loop_fn() local 126 time_cost[lcore] = time_diff * 1000000 / hz; in load_loop_fn()
|
| H A D | test_spinlock.c | 106 uint64_t hz = rte_get_timer_hz(); in load_loop_fn() local 124 time_count[lcore] = time_diff * 1000000 / hz; in load_loop_fn()
|
| H A D | test_trace_perf.c | 46 uint64_t hz = rte_get_timer_hz(); in measure_perf() local 61 ns = (cycles / (double)hz) * 1E9; in measure_perf()
|
| H A D | test_mempool_perf.c | 164 uint64_t time_diff = 0, hz = rte_get_timer_hz(); in per_lcore_mempool_test() local 195 while (time_diff/hz < TIME_S) { in per_lcore_mempool_test()
|
| H A D | test_rwlock.c | 98 uint64_t hz = rte_get_timer_hz(); in load_loop_fn() local 124 time_count[lcore] = time_diff * 1000000 / hz; in load_loop_fn()
|
| H A D | test_ring_perf.c | 333 uint64_t hz = rte_get_timer_hz(); in load_loop_fn_helper() local 348 while (time_diff < hz * TIME_MS / 1000) { in load_loop_fn_helper()
|
| H A D | test_ipsec_perf.c | 512 uint64_t hz = rte_get_timer_hz(); in measure_performance() local 527 } while (time_diff < (hz * 10)); in measure_performance()
|
| /dpdk/lib/meter/ |
| H A D | rte_meter.c | 20 rte_meter_get_tb_params(uint64_t hz, uint64_t rate, uint64_t *tb_period, uint64_t *tb_bytes_per_per… in rte_meter_get_tb_params() argument 30 period = ((double) hz) / ((double) rate); in rte_meter_get_tb_params() 37 *tb_period = (hz * (*tb_bytes_per_period)) / rate; in rte_meter_get_tb_params() 45 uint64_t hz = rte_get_tsc_hz(); in rte_meter_srtcm_profile_config() local 57 rte_meter_get_tb_params(hz, params->cir, &p->cir_period, in rte_meter_srtcm_profile_config() 83 uint64_t hz = rte_get_tsc_hz(); in rte_meter_trtcm_profile_config() local 98 rte_meter_get_tb_params(hz, params->cir, &p->cir_period, in rte_meter_trtcm_profile_config() 100 rte_meter_get_tb_params(hz, params->pir, &p->pir_period, in rte_meter_trtcm_profile_config() 127 uint64_t hz = rte_get_tsc_hz(); in rte_meter_trtcm_rfc4115_profile_config() local 139 rte_meter_get_tb_params(hz, params->cir, &p->cir_period, in rte_meter_trtcm_rfc4115_profile_config() [all …]
|
| /dpdk/examples/timer/ |
| H A D | main.c | 48 uint64_t hz; in timer1_cb() local 53 hz = rte_get_timer_hz(); in timer1_cb() 55 rte_timer_reset(tim, hz/3, SINGLE, lcore_id, timer1_cb, NULL); in timer1_cb() 90 uint64_t hz; in main() local 108 hz = rte_get_timer_hz(); in main() 109 timer_resolution_cycles = hz * 10 / 1000; /* around 10ms */ in main() 112 rte_timer_reset(&timer0, hz, PERIODICAL, lcore_id, timer0_cb, NULL); in main() 116 rte_timer_reset(&timer1, hz/3, SINGLE, lcore_id, timer1_cb, NULL); in main()
|
| /dpdk/examples/l3fwd-power/ |
| H A D | main.c | 441 uint64_t hz; in power_timer_cb() local 469 hz = rte_get_timer_hz(); in power_timer_cb() 1332 hz = rte_get_timer_hz(); in main_legacy_loop() 1333 tim_res_tsc = hz/TIMER_NUMBER_PER_SECOND; in main_legacy_loop() 2384 uint64_t hz = rte_get_timer_hz(); in telemetry_setup_timer() local 2387 ticks = hz / TELEMETRY_INTERVALS_PER_SEC; in telemetry_setup_timer() 2399 uint64_t hz = rte_get_timer_hz(); in empty_poll_setup_timer() local 2403 ep_ptr->interval_ticks = hz / INTERVALS_PER_SECOND; in empty_poll_setup_timer() 2536 uint64_t hz; in main() local 2755 hz = rte_get_timer_hz(); in main() [all …]
|
| /dpdk/examples/l2fwd-jobstats/ |
| H A D | main.c | 115 static double hz; variable 125 t /= hz; in cycles_to_ns() 780 hz = rte_get_timer_hz(); in main() 972 drain_tsc = (hz + US_PER_S - 1) / US_PER_S * BURST_TX_DRAIN_US; in main()
|
| /dpdk/lib/graph/ |
| H A D | graph_stats.c | 74 ts_per_hz = (double)((stat->ts - stat->prev_ts) / stat->hz); in print_node() 175 cluster->stat.hz = rte_get_timer_hz(); in stats_mem_populate()
|
| H A D | rte_graph.h | 210 uint64_t hz; /**< Cycles per seconds. */ member
|
| /dpdk/drivers/net/pcap/ |
| H A D | pcap_ethdev.c | 44 static uint64_t hz; variable 360 cur_time.tv_sec = cycles / hz; in calculate_timestamp() 361 cur_time.tv_nsec = (cycles % hz) * NSEC_PER_SEC / hz; in calculate_timestamp() 1419 hz = rte_get_timer_hz(); in pmd_pcap_probe()
|
| /dpdk/lib/power/ |
| H A D | rte_power_pmd_mgmt.c | 158 const uint64_t hz = rte_get_timer_hz(); in calc_tsc() local 159 const uint64_t tsc_per_us = hz / US_PER_S; /* 1us */ in calc_tsc()
|