From 1179a48f3bc17e4c85e6583d7774e2d0671d8663 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Wed, 14 May 2014 09:28:15 -0400 Subject: [PATCH] Fix: add missing packed attribute to comm. struct. Fixes #707 Signed-off-by: David Goulet --- src/common/sessiond-comm/sessiond-comm.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/common/sessiond-comm/sessiond-comm.h b/src/common/sessiond-comm/sessiond-comm.h index bbc7ce5a8..87bdfd293 100644 --- a/src/common/sessiond-comm/sessiond-comm.h +++ b/src/common/sessiond-comm/sessiond-comm.h @@ -233,7 +233,7 @@ struct lttcomm_session_msg { /* Event data */ struct { char channel_name[LTTNG_SYMBOL_NAME_LEN]; - struct lttng_event event; + struct lttng_event event LTTNG_PACKED; /* Length of following filter expression. */ uint32_t expression_len; /* Length of following bytecode for filter. */ @@ -250,12 +250,12 @@ struct lttcomm_session_msg { } LTTNG_PACKED enable; /* Create channel */ struct { - struct lttng_channel chan; + struct lttng_channel chan LTTNG_PACKED; } LTTNG_PACKED channel; /* Context */ struct { char channel_name[LTTNG_SYMBOL_NAME_LEN]; - struct lttng_event_context ctx; + struct lttng_event_context ctx LTTNG_PACKED; } LTTNG_PACKED context; /* Use by register_consumer */ struct { @@ -272,18 +272,18 @@ struct lttcomm_session_msg { uint32_t size; } LTTNG_PACKED uri; struct { - struct lttng_snapshot_output output; + struct lttng_snapshot_output output LTTNG_PACKED; } LTTNG_PACKED snapshot_output; struct { uint32_t wait; - struct lttng_snapshot_output output; + struct lttng_snapshot_output output LTTNG_PACKED; } LTTNG_PACKED snapshot_record; struct { uint32_t nb_uri; unsigned int timer_interval; /* usec */ } LTTNG_PACKED session_live; struct { - struct lttng_save_session_attr attr; + struct lttng_save_session_attr attr; /* struct already packed */ } LTTNG_PACKED save_session; } u; } LTTNG_PACKED; -- 2.34.1