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

Function handle_app_stats

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

Source from the content-addressed store, hash-verified

2346}
2347
2348static int
2349handle_app_stats(const char *cmd __rte_unused,
2350 const char *params __rte_unused,
2351 struct rte_tel_data *d)
2352{
2353 uint64_t values[NUM_TELSTATS] = {0};
2354 uint32_t i;
2355
2356 rte_tel_data_start_dict(d);
2357 get_current_stat_values(values);
2358 for (i = 0; i < NUM_TELSTATS; i++)
2359 rte_tel_data_add_dict_uint(d, telstats_strings[i].name,
2360 values[i]);
2361 return 0;
2362}
2363
2364static void
2365telemetry_setup_timer(void)

Callers

nothing calls this directly

Calls 3

rte_tel_data_start_dictFunction · 0.85
get_current_stat_valuesFunction · 0.85

Tested by

no test coverage detected