Fix: filter: var len array at end of external structure
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 16 Nov 2012 22:20:09 +0000 (17:20 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 22 Nov 2012 18:56:30 +0000 (13:56 -0500)
Reviewed-by: David Goulet <dgoulet@efficios.com>
Reviewed-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-events.h

index e45a6a7187621afc1a09175cacf68409cbc52f23..f501fd1459bd6e96356ab52f1a3ddc424447aeb0 100644 (file)
@@ -291,8 +291,12 @@ struct lttng_event;
 
 struct lttng_ust_filter_bytecode_node {
        struct cds_list_head node;
-       struct lttng_ust_filter_bytecode bc;
        struct lttng_enabler *enabler;
+       /*
+        * struct lttng_ust_filter_bytecode has var. sized array, must
+        * be last field.
+        */
+       struct lttng_ust_filter_bytecode bc;
 };
 
 struct lttng_bytecode_runtime {
This page took 0.025181 seconds and 4 git commands to generate.