This is simply a cosmetic change.
Before:
event {
id = 17;
name = "lib.eal.alarm.set";
fields := struct {
uint64_t us;uintptr_t cb_fn;uintptr_t cb_arg;int32_t rc;
};
};
After:
event {
id = 17;
name = "lib.eal.alarm.set";
fields := struct {
uint64_t us;
uintptr_t cb_fn;
uintptr_t cb_arg;
int32_t rc;
};
};
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Sunil Kumar Kori <skori@mavell.com>
fixup = trace_metadata_fixup_field(in);
if (fixup != NULL)
in = fixup;
- rc = asprintf(&field, "%s%s %s;",
+ rc = asprintf(&field, "%s %s %s;\n",
RTE_PER_LCORE(ctf_field) != NULL ?
RTE_PER_LCORE(ctf_field) : "",
datatype, in);
" id = %d;\n"
" name = \"%s\";\n"
" fields := struct {\n"
- " %s\n"
+ "%s"
" };\n"
"};\n\n", trace_id_get(tp->handle), tp->name,
tp->ctf_field != NULL ? tp->ctf_field : "");