From: Mathieu Desnoyers Date: Tue, 4 Dec 2012 12:30:04 +0000 (-0500) Subject: Fix: check if event enabled for bytecode-less events X-Git-Tag: v2.1.0~18 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1f49fc05ef59d2732d1f84423d0afda5fe4d4265;p=lttng-ust.git Fix: check if event enabled for bytecode-less events Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-events.c b/liblttng-ust/lttng-events.c index 790d14b2..5e6c90cb 100644 --- a/liblttng-ust/lttng-events.c +++ b/liblttng-ust/lttng-events.c @@ -1391,10 +1391,11 @@ void lttng_session_sync_enablers(struct lttng_session *session) } event->enabled = enabled; - /* Check if has enablers without bytecode */ + /* Check if has enablers without bytecode enabled */ cds_list_for_each_entry(enabler_ref, &event->enablers_ref_head, node) { - if (cds_list_empty(&enabler_ref->ref->filter_bytecode_head)) { + if (enabler_ref->ref->enabled + && cds_list_empty(&enabler_ref->ref->filter_bytecode_head)) { has_enablers_without_bytecode = 1; break; } @@ -1407,7 +1408,6 @@ void lttng_session_sync_enablers(struct lttng_session *session) &event->bytecode_runtime_head, node) { lttng_filter_sync_state(runtime); } - } }