trace: add size_t field emitter
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Mon, 15 Jun 2020 00:43:48 +0000 (03:43 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 15 Jun 2020 17:27:00 +0000 (19:27 +0200)
commit262c4ee791c6f60fc4722b41fb601f113594b449
tree45a8b41fa925f936b4917dd92548709f15ea75ed
parent694161b7e0658450f3771f5d31000b2554b4694b
trace: add size_t field emitter

It is not guaranteed that sizeof(long) == sizeof(size_t). On Windows,
sizeof(long) == 4 and sizeof(size_t) == 8 for 64-bit programs.
Tracepoints using "long" field emitter are therefore invalid there.
Add dedicated field emitter for size_t and use it to store size_t values
in all existing tracepoints.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
lib/librte_eal/include/rte_eal_trace.h
lib/librte_eal/include/rte_trace_point.h
lib/librte_mempool/rte_mempool_trace.h