| 522 | } |
| 523 | |
| 524 | static void |
| 525 | set_thread_name(pthread_t id __rte_unused, const char *name __rte_unused) |
| 526 | { |
| 527 | #if defined RTE_EXEC_ENV_LINUX && defined __GLIBC__ && defined __GLIBC_PREREQ |
| 528 | #if __GLIBC_PREREQ(2, 12) |
| 529 | pthread_setname_np(id, name); |
| 530 | #endif |
| 531 | #elif defined RTE_EXEC_ENV_FREEBSD |
| 532 | pthread_set_name_np(id, name); |
| 533 | #endif |
| 534 | } |
| 535 | |
| 536 | static int |
| 537 | telemetry_legacy_init(void) |
no outgoing calls
no test coverage detected