| 630 | #endif /* !RTE_EXEC_ENV_WINDOWS */ |
| 631 | |
| 632 | int32_t |
| 633 | rte_telemetry_init(const char *runtime_dir, const char *rte_version, rte_cpuset_t *cpuset) |
| 634 | { |
| 635 | telemetry_version = rte_version; |
| 636 | socket_dir = runtime_dir; |
| 637 | thread_cpuset = cpuset; |
| 638 | |
| 639 | #ifndef RTE_EXEC_ENV_WINDOWS |
| 640 | if (telemetry_v2_init() != 0) |
| 641 | return -1; |
| 642 | TMTY_LOG(DEBUG, "Telemetry initialized ok\n"); |
| 643 | telemetry_legacy_init(); |
| 644 | #endif /* RTE_EXEC_ENV_WINDOWS */ |
| 645 | |
| 646 | return 0; |
| 647 | } |
no test coverage detected