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

Function telemetry_setup_timer

dpdk/examples/l3fwd-power/main.c:2364–2378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2362}
2363
2364static void
2365telemetry_setup_timer(void)
2366{
2367 int lcore_id = rte_lcore_id();
2368 uint64_t hz = rte_get_timer_hz();
2369 uint64_t ticks;
2370
2371 ticks = hz / TELEMETRY_INTERVALS_PER_SEC;
2372 rte_timer_reset_sync(&telemetry_timer,
2373 ticks,
2374 PERIODICAL,
2375 lcore_id,
2376 update_telemetry,
2377 NULL);
2378}
2379
2380static int
2381launch_timer(unsigned int lcore_id)

Callers 1

launch_timerFunction · 0.85

Calls 2

rte_lcore_idFunction · 0.85
rte_timer_reset_syncFunction · 0.85

Tested by

no test coverage detected