Apply policy on channel sampling
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.c
index 398ddc3896c39c7a94a67778a986057dceeae93c..40450304297230b96cdf980afde1b516dc6c02c9 100644 (file)
@@ -4099,6 +4099,12 @@ int handle_notification_thread_channel_sample(
                        goto put_list;
                }
 
+               if (!lttng_trigger_should_fire(trigger)) {
+                       goto put_list;
+               }
+
+               lttng_trigger_fire(trigger);
+
                /*
                 * Ownership of `evaluation` transferred to the action executor
                 * no matter the result.
This page took 0.031248 seconds and 4 git commands to generate.