Apply policy on channel sampling
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 4 Feb 2020 20:14:34 +0000 (15:14 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 20 Nov 2020 21:50:05 +0000 (16:50 -0500)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Id755b73c1f976a5a7d7a188656a1de21bd703143

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.034436 seconds and 4 git commands to generate.