| 2332 | } |
| 2333 | |
| 2334 | static void |
| 2335 | update_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 | |
| 2348 | static int |
| 2349 | handle_app_stats(const char *cmd __rte_unused, |
nothing calls this directly
no test coverage detected