From: Mathieu Desnoyers Date: Fri, 16 Nov 2012 22:20:09 +0000 (-0500) Subject: Fix: filter: var len array at end of external structure X-Git-Tag: v2.1.0-rc2~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a543151c94023ca7c694cb89c4d9cecceda775dd;p=lttng-ust.git Fix: filter: var len array at end of external structure Reviewed-by: David Goulet Reviewed-by: Christian Babeux Signed-off-by: Mathieu Desnoyers --- diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index e45a6a71..f501fd14 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -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 {