trace: fixup CTF event description at registration
authorDavid Marchand <david.marchand@redhat.com>
Wed, 28 Oct 2020 21:02:46 +0000 (22:02 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 29 Oct 2020 21:49:22 +0000 (22:49 +0100)
commitd992fa555d23bb77079acd184ab60011277324d0
tree3d1a73dd41f3ebc0c929db6f3950eebfc248577e
parent128021421256ecfcd1dfce83bf270c16506c197b
trace: fixup CTF event description at registration

CTF event description is currently built by appending all fields in a
single string at trace point registration.
When dumping the metadata, this string is split again and inspected to
fixup reserved keywords and special tokens like "." or "->".

Move this fixup per field at trace point registration time so that there
is no need for inspecting / string parsing when dumping metadata.
Use dynamic allocations to remove an artificial size limit on the CTF
event description manipulations.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Sunil Kumar Kori <skori@mavell.com>
lib/librte_eal/common/eal_common_trace.c
lib/librte_eal/common/eal_common_trace_ctf.c
lib/librte_eal/common/eal_trace.h