Fix: racy notifier captures update vs traversal
[lttng-modules.git] / src / lttng-events.c
index d819c9e20dac0e28719b61aeb6373da868cc5efc..a144f544c52540170ea0e9478c263780d05b856d 100644 (file)
@@ -2768,6 +2768,8 @@ void lttng_event_notifier_group_sync_enablers(struct lttng_event_notifier_group
                list_for_each_entry(runtime,
                                &event_notifier->capture_bytecode_runtime_head, node)
                        lttng_bytecode_capture_sync_state(runtime);
+
+               WRITE_ONCE(event_notifier->eval_capture, !!event_notifier->num_captures);
        }
 }
 
This page took 0.023903 seconds and 4 git commands to generate.