If the endianness is specified for an enumeration, it should be written
in the metadata like for any other integer type.
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
if (ret)
goto end;
ret = lttng_metadata_printf(session,
- "enum : integer { size = %u; align = %u; signed = %u; encoding = %s; base = %u; } {\n",
+ "enum : integer { size = %u; align = %u; signed = %u; encoding = %s; base = %u;%s } {\n",
container_type->size,
container_type->alignment,
container_type->signedness,
: (container_type->encoding == lttng_encode_UTF8)
? "UTF8"
: "ASCII",
- container_type->base);
+ container_type->base,
+#if __BYTE_ORDER == __BIG_ENDIAN
+ container_type->reverse_byte_order ? " byte_order = le;" : ""
+#else
+ container_type->reverse_byte_order ? " byte_order = be;" : ""
+#endif
+ );
if (ret)
goto end;
/* Dump all entries */