Home
last modified time | relevance | path

Searched refs:hz (Results 1 – 20 of 20) sorted by relevance

/dpdk/app/test/
H A Dtest_meter.c208 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 Dtest_timer.c144 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 Dtest_timer_racecond.c117 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 Dtest_pflock.c65 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 Dtest_mcslock.c69 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 Dtest_ticketlock.c108 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 Dtest_spinlock.c106 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 Dtest_trace_perf.c46 uint64_t hz = rte_get_timer_hz(); in measure_perf() local
61 ns = (cycles / (double)hz) * 1E9; in measure_perf()
H A Dtest_mempool_perf.c164 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 Dtest_rwlock.c98 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 Dtest_ring_perf.c333 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 Dtest_ipsec_perf.c512 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 Drte_meter.c20 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 Dmain.c48 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 Dmain.c441 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 Dmain.c115 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 Dgraph_stats.c74 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 Drte_graph.h210 uint64_t hz; /**< Cycles per seconds. */ member
/dpdk/drivers/net/pcap/
H A Dpcap_ethdev.c44 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 Drte_power_pmd_mgmt.c158 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()