MCPcopy Index your code
hub / github.com/F-Stack/f-stack / timer_cb

Function timer_cb

dpdk/app/test/test_timer_racecond.c:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38RTE_LOG_REGISTER(timer_logtype_test, test.timer, INFO);
39
40static void
41timer_cb(struct rte_timer *tim, void *arg __rte_unused)
42{
43 /* Simulate slow callback function, 100 us. */
44 rte_delay_us(100);
45 if (tim == &timer[0])
46 rte_log(RTE_LOG_DEBUG, timer_logtype_test,
47 "------------------------------------------------\n");
48 rte_log(RTE_LOG_DEBUG, timer_logtype_test, "%s: core %u timer %"
49 PRIuPTR "\n", __func__, rte_lcore_id(), tim - timer);
50 (void)reload_timer(tim);
51}
52
53RTE_DEFINE_PER_LCORE(unsigned, n_reset_collisions);
54

Callers

nothing calls this directly

Calls 3

rte_logFunction · 0.85
rte_lcore_idFunction · 0.85
reload_timerFunction · 0.85

Tested by

no test coverage detected