MCPcopy Create free account
hub / github.com/F-Stack/f-stack / timeout_event_dequeue

Function timeout_event_dequeue

dpdk/app/test/test_event_timer_adapter.c:445–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445static inline uint16_t
446timeout_event_dequeue(struct rte_event *evs, uint64_t nb_evs, uint64_t ticks)
447{
448 uint16_t ev_cnt = 0;
449 uint64_t end_cycle;
450
451 if (using_services && nb_evs == MAX_TIMERS)
452 ticks = 2 * ticks;
453
454 end_cycle = rte_rdtsc() + ticks * global_bkt_tck_ns * rte_get_tsc_hz() / 1E9;
455
456 while (ev_cnt < nb_evs && rte_rdtsc() < end_cycle) {
457 ev_cnt += rte_event_dequeue_burst(evdev, TEST_PORT_ID, &evs[ev_cnt], nb_evs, 0);
458 rte_pause();
459 }
460
461 return ev_cnt;
462}
463
464static inline int
465test_timer_state(void)

Callers 10

test_timer_stateFunction · 0.85
stat_inc_reset_ev_enqFunction · 0.85
event_timer_armFunction · 0.85
event_timer_arm_doubleFunction · 0.85
event_timer_arm_expiryFunction · 0.85
event_timer_arm_rearmFunction · 0.85
event_timer_arm_maxFunction · 0.85
event_timer_cancelFunction · 0.85

Calls 4

rte_get_tsc_hzFunction · 0.85
rte_event_dequeue_burstFunction · 0.85
rte_rdtscFunction · 0.50
rte_pauseFunction · 0.50

Tested by

no test coverage detected