From 4fd19d8ab68b67bd03778809b7bd1f21a04eac8f Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 12 Nov 2014 16:57:48 -0500 Subject: [PATCH] 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 --- lttng-events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1