-function snapshot_add_output ()
-{
- local sess_name=$1
- local trace_path=$2
- local name=$3
- local extra_opt=""
-
- if [ ! -z $name ]; then
- extra_opt="-n $name"
- fi
-
- $TESTDIR/../src/bin/lttng/$LTTNG_BIN snapshot add-output -s $sess_name $extra_opt $trace_path >/dev/null 2>&1
- ok $? "Added snapshot output $trace_path"
-}
-