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

Function set_thread_name

dpdk/lib/telemetry/telemetry.c:524–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524static void
525set_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
536static int
537telemetry_legacy_init(void)

Callers 2

telemetry_legacy_initFunction · 0.85
telemetry_v2_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected