trace: implement registration payload
authorJerin Jacob <jerinj@marvell.com>
Wed, 22 Apr 2020 19:03:29 +0000 (00:33 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 23 Apr 2020 13:39:33 +0000 (15:39 +0200)
commit0cd4ea043f3eb77a15e7a0a4c10977d203297149
tree6231c6ca334bc290619cd5c589a84eb7ffba6400
parent4b8ea84e9b4fcbd191fcf82d4eb90a6fc193ce26
trace: implement registration 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 memory emitters.

When it is used as registration payload, it will do the following to
fulfill the registration job.
- Find out the size of the event,
- Generate metadata field string using __rte_trace_point_emit_field().

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/include/rte_trace_point.h
lib/librte_eal/include/rte_trace_point_register.h
lib/librte_eal/rte_eal_version.map