eal: introduce thread uninit helper
authorDavid Marchand <david.marchand@redhat.com>
Mon, 6 Jul 2020 20:52:28 +0000 (22:52 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 8 Jul 2020 12:39:26 +0000 (14:39 +0200)
commit2ab55f78d140474e18e523180a2d2df2aada72b2
tree86f47c06eefe1869422da00a84c82aab622f80c7
parent266b641ccf18f65f42c0396713bea1f051c9ff96
eal: introduce thread uninit helper

This is a preparation step for dynamically unregistering threads.

Since we explicitly allocate a per thread trace buffer in
__rte_thread_init, add an internal helper to free this buffer.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_eal/common/eal_common_thread.c
lib/librte_eal/common/eal_common_trace.c
lib/librte_eal/common/eal_private.h
lib/librte_eal/common/eal_trace.h
lib/librte_eal/windows/eal.c