| 38 | RTE_LOG_REGISTER(timer_logtype_test, test.timer, INFO); |
| 39 | |
| 40 | static void |
| 41 | timer_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 | |
| 53 | RTE_DEFINE_PER_LCORE(unsigned, n_reset_collisions); |
| 54 |
nothing calls this directly
no test coverage detected