[EXTERNAL] [PATCH v3 2/6] trace: support dereferencing arguments
Sunil Kumar Kori
skori at marvell.com
Tue Feb 11 09:44:38 CET 2025
> diff --git a/lib/eal/common/eal_common_trace_ctf.c
> b/lib/eal/common/eal_common_trace_ctf.c
> index 04c4f71462..3e4228ee7f 100644
> --- a/lib/eal/common/eal_common_trace_ctf.c
> +++ b/lib/eal/common/eal_common_trace_ctf.c
> @@ -373,6 +373,11 @@ rte_trace_metadata_dump(FILE *f)
>
> char *trace_metadata_fixup_field(const char *field) {
> + static const char * const tokens[] = {
> + ".",
> + "->",
> + "*",
> + };
As this patch is intended to support dereferencing operation but as a side effect it applies to multiplication operator too.
Hence for A * B, field is generated like A___B (one extra underscore). So IMO, multiplication string shouldn't be used.
> const char *ctf_reserved_words[] = {
> "align",
> "event",
> 2.48.1
More information about the dev
mailing list