Fix: check if event enabled for bytecode-less events
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 4 Dec 2012 12:30:04 +0000 (07:30 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 4 Dec 2012 12:30:04 +0000 (07:30 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-events.c

index 790d14b2495992d893e9d63f15ca8e65a3f6738a..5e6c90cbd8383b2324e5cb73ed9db74395f993f9 100644 (file)
@@ -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);
                }
-
        }
 }
 
This page took 0.026054 seconds and 4 git commands to generate.