trace: implement memory allocation
authorJerin Jacob <jerinj@marvell.com>
Wed, 22 Apr 2020 19:03:26 +0000 (00:33 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 23 Apr 2020 13:39:26 +0000 (15:39 +0200)
commit29d985cad8dbf3920cbcbd470e6509f67ce9cd6c
tree32461782a43ad882f76fa6a09060757378ed8daf
parentffed0853e69ca830c64c913f97beb80678c05ee6
trace: implement memory allocation

Trace memory will be allocated per thread to enable lockless trace
events updates to the memory. The allocator will first attempt to
allocate from hugepage, then if not available from hugepage or
finally fallback to malloc memory.

Later in the patches series, this API will be hooked to DPDK fast path
and control plane thread creation API. It is possible for non
DPDK thread to use trace events. In that case, trace memory
will be allocated on the first event emission.

Signed-off-by: Jerin Jacob <jerinj@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
lib/librte_eal/common/eal_trace.h
lib/librte_eal/include/rte_trace_point.h
lib/librte_eal/include/rte_trace_point_provider.h
lib/librte_eal/rte_eal_version.map