From: Jonathan Rajotte Date: Tue, 4 Feb 2020 20:14:34 +0000 (-0500) Subject: Apply policy on channel sampling X-Git-Tag: v2.13.0-rc1~416 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=f8522f5cc357c0d80257d5ace1cd556a88305c0c Apply policy on channel sampling Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau Change-Id: Id755b73c1f976a5a7d7a188656a1de21bd703143 --- diff --git a/src/bin/lttng-sessiond/notification-thread-events.c b/src/bin/lttng-sessiond/notification-thread-events.c index 398ddc389..404503042 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.c +++ b/src/bin/lttng-sessiond/notification-thread-events.c @@ -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.