From: Jonathan Rajotte Date: Thu, 23 Jan 2020 19:14:14 +0000 (-0500) Subject: trigger: introduce firing policies X-Git-Tag: v2.13.0-rc1~417 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=5c504c41e4d470012cb98c849aa82086d1ba1bde;hp=5c504c41e4d470012cb98c849aa82086d1ba1bde trigger: introduce firing policies A firing policy controls the rate of firing of a trigger. Two firing policy mode are implemented: LTTNG_TRIGGER_FIRING_POLICY_FIRE_EVERY_N The triggers's actions are executed every N times the condition occurs. LTTNG_TRIGGER_FIRING_POLICY_ONCE_AFTER_N The triggers's actions are executed once the condition was met N times. Firing policies will be moved to the specific `action` objects in a follow-up commit as not all actions can implement the firing policies. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau Change-Id: Ifaeeaaec7b6f2bed57d0d5f4ed8546762ec02e8d ---