# time the condition is met.
lttng_add_trigger_ok \
$TRIGGER_NAME \
- --condition on-event -u "tp:tptest" \
+ --condition event-rule-matches -u "tp:tptest" \
--action notify \
- --fire-every 5
+ --rate-policy=every:5
# Add a trigger with a notify action for the tp:end event of the test
# application. This allow us to "delimit" the reception loop for the
# the notification subsystem.
lttng_add_trigger_ok \
$END_TRIGGER_NAME \
- --condition on-event -u "tp:end" \
+ --condition event-rule-matches -u "tp:end" \
--action notify
for i in $(seq 1 4); do
# time the condition is met.
lttng_add_trigger_ok \
$TRIGGER_NAME \
- --condition on-event -u "tp:tptest" \
+ --condition event-rule-matches -u "tp:tptest" \
--action notify \
- --fire-once-after 5
+ --rate-policy=once-after:5
# Add a trigger with a notify action for the tp:end event of the test
# application. This allow us to "delimit" the reception loop for the
# the notification subsystem.
lttng_add_trigger_ok \
$END_TRIGGER_NAME \
- --condition on-event -u "tp:end" \
+ --condition event-rule-matches -u "tp:end" \
--action notify
## Phase 1