7d1af09e98
pthread_setname_np refuses names larger than 16 bytes (\0 included). Rather than return an error, truncate the name to this limit in the rte_thread_setname helper. Caught with ixgbe which creates control thread with name "ixgbe-link-handler": Configuring Port 0 (socket 0) EAL: Cannot set name for ctrl thread ... EAL: Cannot set name for ctrl thread Port 0: link state change event ... EAL: Cannot set name for ctrl thread Port 0: link state change event Note: before this change, the thread would keep its original name, which meant in my test for the ixgbe handler either "dpdk-testpmd" or "eal-intr-thread". Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Thomas Monjalon <thomas@monjalon.net> |
||
---|---|---|
.. | ||
include | ||
eal.c | ||
eal_alarm.c | ||
eal_cpuflags.c | ||
eal_debug.c | ||
eal_dev.c | ||
eal_hugepage_info.c | ||
eal_interrupts.c | ||
eal_lcore.c | ||
eal_log.c | ||
eal_memalloc.c | ||
eal_memory.c | ||
eal_thread.c | ||
eal_timer.c | ||
eal_vfio.c | ||
eal_vfio.h | ||
eal_vfio_mp_sync.c | ||
Makefile | ||
meson.build |