function lttng_session_is_active()
{
local SESSION_NAME="$1"
- "$FULL_LTTNG_BIN" list "$SESSION_NAME" | grep "Tracing session" | grep -q "\[active\]"
+ "$FULL_LTTNG_BIN" list "$SESSION_NAME" | grep "Recording session" | grep -q "\[active\]"
ok $ret "Session \"$SESSION_NAME\" is active"
}
function lttng_session_is_inactive()
{
local SESSION_NAME="$1"
- "$FULL_LTTNG_BIN" list "$SESSION_NAME" | grep "Tracing session" | grep -q "\[inactive\]"
+ "$FULL_LTTNG_BIN" list "$SESSION_NAME" | grep "Recording session" | grep -q "\[inactive\]"
ok $ret "Session \"$SESSION_NAME\" is inactive"
}
# a `notify` action.
lttng_add_trigger_ok \
$TRIGGER_NAME \
- --condition event-rule-matches --domain=user --name=tp:tptest \
+ --condition event-rule-matches --type=user --name=tp:tptest \
--action start-session $SESSION_NAME \
--action notify
# a `notify` action.
lttng_add_trigger_ok \
$TRIGGER_NAME \
- --condition event-rule-matches --domain=user --name=tp:tptest \
+ --condition event-rule-matches --type=user --name=tp:tptest \
--action stop-session $SESSION_NAME \
--action notify