Record event as soon as one filters evaluates to TRUE
[lttng-ust.git] / include / lttng / ust-tracepoint-event.h
index 336125a6c4821507369ae932fd75d14484521bb4..380593b04d3fa8c1f6ade28056bbdb17fb8fedd6 100644 (file)
@@ -808,8 +808,10 @@ void __event_probe__##_provider##___##_name(_TP_ARGS_DATA_PROTO(_args))          \
                        _TP_ARGS_DATA_VAR(_args));                            \
                tp_list_for_each_entry_rcu(bc_runtime, &__event->bytecode_runtime_head, node) { \
                        if (caa_unlikely(bc_runtime->filter(bc_runtime,       \
-                                       __stackvar.__filter_stack_data) & LTTNG_FILTER_RECORD_FLAG)) \
+                                       __stackvar.__filter_stack_data) & LTTNG_FILTER_RECORD_FLAG)) \
                                __filter_record = 1;                          \
+                               break;                                        \
+                       }                                                     \
                }                                                             \
                if (caa_likely(!__filter_record))                             \
                        return;                                               \
This page took 0.023291 seconds and 4 git commands to generate.