trigger: introduce firing policies
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 23 Jan 2020 19:14:14 +0000 (14:14 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 20 Nov 2020 21:50:05 +0000 (16:50 -0500)
commit5c504c41e4d470012cb98c849aa82086d1ba1bde
treed9ea00c2713ab91ae17cabfb4ccca9460beabf93
parentbacc41cc41d9702241e7a52617fed046ed5f5506
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 <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ifaeeaaec7b6f2bed57d0d5f4ed8546762ec02e8d
include/lttng/trigger/trigger-internal.h
include/lttng/trigger/trigger.h
src/common/trigger.c
This page took 0.025792 seconds and 4 git commands to generate.