trace: fix size_t field emitter

Add size_t CTF format metadata, this is needed by CTF analyzers to
parse the emitted CTF trace.

Fixes: 262c4ee791 ("trace: add size_t field emitter")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Sunil Kumar Kori <skori@mavell.com>
This commit is contained in:
Pavan Nikhilesh 2020-08-26 04:54:08 +05:30 committed by Thomas Monjalon
parent b24b892895
commit 2114521cff

View File

@ -83,6 +83,11 @@ meta_data_type_emit(char **meta, int *offset)
"typealias integer {size = 32; base = x;} := long;\n"
#endif
"typealias integer {size = 8; signed = false; encoding = ASCII; } := string_bounded_t;\n\n"
#ifdef RTE_ARCH_64
"typealias integer {size = 64; base = x;} := size_t;\n"
#else
"typealias integer {size = 32; base = x;} := size_t;\n"
#endif
"typealias floating_point {\n"
" exp_dig = 8;\n"
" mant_dig = 24;\n"