From: Mathieu Desnoyers Date: Wed, 12 Nov 2014 21:57:48 +0000 (-0500) Subject: Filter: start with enabler "disabled" X-Git-Tag: v2.7.0-rc1~67 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4fd19d8ab68b67bd03778809b7bd1f21a04eac8f;p=lttng-modules.git Filter: start with enabler "disabled" 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 --- diff --git a/lttng-events.c b/lttng-events.c index ea22a35c..cf2cae0f 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -1257,7 +1257,7 @@ struct lttng_enabler *lttng_enabler_create(enum lttng_enabler_type type, sizeof(enabler->event_param)); enabler->chan = chan; /* ctx left NULL */ - enabler->enabled = 1; + enabler->enabled = 0; enabler->evtype = LTTNG_TYPE_ENABLER; mutex_lock(&sessions_mutex); list_add(&enabler->node, &enabler->chan->session->enablers_head);