Since we can create the enabler, then attach the filter, and then enable
it, ensure it is in a "disabled" state initially.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
sizeof(enabler->event_param));
enabler->chan = chan;
/* ctx left NULL */
sizeof(enabler->event_param));
enabler->chan = chan;
/* ctx left NULL */
enabler->evtype = LTTNG_TYPE_ENABLER;
mutex_lock(&sessions_mutex);
list_add(&enabler->node, &enabler->chan->session->enablers_head);
enabler->evtype = LTTNG_TYPE_ENABLER;
mutex_lock(&sessions_mutex);
list_add(&enabler->node, &enabler->chan->session->enablers_head);