From: David Goulet Date: Thu, 22 Nov 2012 19:45:28 +0000 (-0500) Subject: Fix: add missing padding for UST filter X-Git-Tag: v2.1.0-rc9~10 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b6bbed5f19b7d7102a1461820adc7f54ca3857ee;p=lttng-tools.git Fix: add missing padding for UST filter Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/lttng-ust-abi.h b/src/bin/lttng-sessiond/lttng-ust-abi.h index c9be4bd9d..0a80abe30 100644 --- a/src/bin/lttng-sessiond/lttng-ust-abi.h +++ b/src/bin/lttng-sessiond/lttng-ust-abi.h @@ -173,9 +173,12 @@ struct lttng_ust_calibrate { }; #define FILTER_BYTECODE_MAX_LEN 65536 +#define LTTNG_UST_FILTER_PADDING 32 struct lttng_ust_filter_bytecode { uint32_t len; uint32_t reloc_offset; + uint64_t seqnum; + char padding[LTTNG_UST_FILTER_PADDING]; char data[0]; }; diff --git a/src/common/sessiond-comm/sessiond-comm.h b/src/common/sessiond-comm/sessiond-comm.h index 991cf7017..6f75a1113 100644 --- a/src/common/sessiond-comm/sessiond-comm.h +++ b/src/common/sessiond-comm/sessiond-comm.h @@ -214,10 +214,12 @@ struct lttcomm_session_msg { * bytecode. It is made of tuples: (uint16_t, var. len. string). It * starts at reloc_table_offset. */ +#define LTTNG_FILTER_PADDING 32 struct lttng_filter_bytecode { uint32_t len; /* len of data */ uint32_t reloc_table_offset; uint64_t seqnum; + char padding[LTTNG_FILTER_PADDING]; char data[0]; };