Made possible by ABI bump. This scheme can be used for extensibility.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I38b15636605339f3f8702983aeaffafa1ab56719
struct lttng_ust_event_private;
struct lttng_event {
+ uint32_t struct_size; /* Size of this structure. */
struct lttng_ust_event_private *priv; /* Private event interface */
unsigned int id;
ret = -ENOMEM;
goto cache_error;
}
+ event->struct_size = sizeof(struct lttng_event);
event_priv = zmalloc(sizeof(struct lttng_ust_event_private));
if (!event_priv) {
ret = -ENOMEM;