trace: implement provider payload
authorJerin Jacob <jerinj@marvell.com>
Wed, 22 Apr 2020 19:03:30 +0000 (00:33 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 23 Apr 2020 13:39:36 +0000 (15:39 +0200)
commit032a7e5499a0bc4454a0c83ceefc8ccf7eb86db0
tree7fd13c9f5f8b54c743de10e9e8b4fc3326c10428
parent0cd4ea043f3eb77a15e7a0a4c10977d203297149
trace: implement provider payload

The trace function payloads such as rte_trace_point_emit_* have
dual functions. The first to emit the payload for the registration
function and the second one to act as trace mem emitters a.k.a
provider payload.

When it is used as provider payload, those function copy the trace
field to trace memory based on the tracing mode.

Added payload definitions under ALLOW_EXPERIMENTAL_API define
to allow the existing applications to compile without enabling
experimental APIs.

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/include/rte_trace_point.h
lib/librte_eal/include/rte_trace_point_provider.h