projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: endianness for the container type of enum
[lttng-modules.git]
/
lttng-events.c
diff --git
a/lttng-events.c
b/lttng-events.c
index 455b790f45fbe06dd37da01b7b79be7477f77df5..176908bf6d2a4587d1d341e0e9126311a4970a00 100644
(file)
--- a/
lttng-events.c
+++ b/
lttng-events.c
@@
-1909,7
+1909,7
@@
int _lttng_enum_statedump(struct lttng_session *session,
if (ret)
goto end;
ret = lttng_metadata_printf(session,
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->size,
container_type->alignment,
container_type->signedness,
@@
-1918,7
+1918,13
@@
int _lttng_enum_statedump(struct lttng_session *session,
: (container_type->encoding == lttng_encode_UTF8)
? "UTF8"
: "ASCII",
: (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 */
if (ret)
goto end;
/* Dump all entries */
This page took
0.023383 seconds
and
4
git commands to generate.