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

Function update_telemetry

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

Source from the content-addressed store, hash-verified

2332}
2333
2334static void
2335update_telemetry(__rte_unused struct rte_timer *tim,
2336 __rte_unused void *arg)
2337{
2338 int ret;
2339 uint64_t values[NUM_TELSTATS] = {0};
2340
2341 get_current_stat_values(values);
2342 ret = rte_metrics_update_values(RTE_METRICS_GLOBAL, telstats_index,
2343 values, RTE_DIM(values));
2344 if (ret < 0)
2345 RTE_LOG(WARNING, POWER, "failed to update metrics\n");
2346}
2347
2348static int
2349handle_app_stats(const char *cmd __rte_unused,

Callers

nothing calls this directly

Calls 2

get_current_stat_valuesFunction · 0.85

Tested by

no test coverage detected