trace: add internal init and fini interface
authorJerin Jacob <jerinj@marvell.com>
Wed, 22 Apr 2020 19:03:22 +0000 (00:33 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 23 Apr 2020 13:39:15 +0000 (15:39 +0200)
commit321dd5f8fa626f38cb031577c31366e7547b1d2f
treef5ffa75a0bcd19f74cee17e0fff367732ffde159
parent84c4fae4628f750a9b1ee162dc324c88b2df9bad
trace: add internal init and fini interface

Define eal_trace_init() and eal_trace_fini() EAL interface
functions that rte_eal_init() and rte_eal_cleanup() function can
use to initialize and finalize the trace subsystem.
eal_trace_init() function will add the following functionality if
trace is enabled through EAL command line param.

- Test for trace registration failure.
- Test for duplicate trace name registration.
- Generate UUID ver 4.
- Create a trace directory.

Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Acked-by: David Marchand <david.marchand@redhat.com>
lib/librte_eal/common/eal_common_trace.c
lib/librte_eal/common/eal_common_trace_utils.c [new file with mode: 0644]
lib/librte_eal/common/eal_trace.h
lib/librte_eal/common/meson.build
lib/librte_eal/freebsd/Makefile
lib/librte_eal/linux/Makefile