eal: introduce API for getting thread name
authorJerin Jacob <jerinj@marvell.com>
Wed, 22 Apr 2020 19:03:18 +0000 (00:33 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 23 Apr 2020 13:39:03 +0000 (15:39 +0200)
commitd0cfb0646812fd8cc819362d7c4c2b5d8b2f1d93
tree87672e3e99025ce772d9eaecec247b7f178e67ee
parentbf386ae377aa6dafd3043d4102f85f06cd33b111
eal: introduce API for getting thread name

Introduce rte_thread_getname() API to get the thread name
and implement it for Linux and FreeBSD.

FreeBSD does not support getting the thread name.

One of the consumers of this API will be the trace subsystem where
it used as an informative purpose.

Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Acked-by: David Marchand <david.marchand@redhat.com>
lib/librte_eal/freebsd/eal_thread.c
lib/librte_eal/include/rte_lcore.h
lib/librte_eal/linux/eal_thread.c
lib/librte_eal/rte_eal_version.map