# a `notify` action.
lttng_add_trigger_ok \
$TRIGGER_NAME \
- --condition on-event -u "tp:tptest" \
+ --condition event-rule-matches -u "tp:tptest" \
--action start-session $SESSION_NAME \
--action notify
# a `notify` action.
lttng_add_trigger_ok \
$TRIGGER_NAME \
- --condition on-event -u "tp:tptest" \
+ --condition event-rule-matches -u "tp:tptest" \
--action stop-session $SESSION_NAME \
--action notify