Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Icf20e16baee3c63b84f1be9f730100229108bcc6
struct list_head *event_list_head = lttng_get_event_list_head_from_enabler(event_enabler);
struct lttng_kernel_event_common_private *event_priv;
+ /*
+ * Only try to create events for enablers that are enabled, the user
+ * might still be attaching filter or exclusion to the event enabler.
+ */
+ if (!event_enabler->enabled)
+ goto end;
+
lttng_syscall_table_set_wildcard_all(event_enabler);
/* First ensure that probe events are created for this enabler. */
lttng_event_enabler_init_event_filter(event_enabler, event);
lttng_event_enabler_init_event_capture(event_enabler, event);
}
+end:
return 0;
}