Fix: add missing padding for UST filter
authorDavid Goulet <dgoulet@efficios.com>
Thu, 22 Nov 2012 19:45:28 +0000 (14:45 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 22 Nov 2012 19:45:28 +0000 (14:45 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/lttng-ust-abi.h
src/common/sessiond-comm/sessiond-comm.h

index c9be4bd9d29fda9d8268a8d3531774d253f6e791..0a80abe3096f615526731706701ad5312d6f02f4 100644 (file)
@@ -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];
 };
 
index 991cf7017eeb4c85e43c0f294e9e538387765158..6f75a11132bddb52462d74dc87a6e2d3cb41cbd8 100644 (file)
@@ -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];
 };
 
This page took 0.034799 seconds and 4 git commands to generate.