lttng_enable_kernel_event $SESSION_NAME
start_lttng_tracing_ok
- stop_lttng_tracing
+ stop_lttng_tracing_ok
validate_trace "sched_switch" $TRACE_PATH
lttng_enable_kernel_event $SESSION_NAME "sched_process_free"
start_lttng_tracing_ok
- stop_lttng_tracing
+ stop_lttng_tracing_ok
validate_trace "sched_switch" $TRACE_PATH
validate_trace "sched_process_exit" $TRACE_PATH
start_lttng_tracing_ok
lttng_enable_kernel_event $SESSION_NAME "sched_process_exit"
- stop_lttng_tracing
+ stop_lttng_tracing_ok
validate_trace "sched_switch" $TRACE_PATH
validate_trace "sched_process_exit" $TRACE_PATH
start_lttng_tracing_ok
eval ${TESTCMD}
- stop_lttng_tracing
+ stop_lttng_tracing_ok
# ensure each is there.
validate_trace_exp "-e syscall_entry_$EVENT_NAME: -e compat_syscall_entry_$EVENT_NAME:" $TRACE_PATH
start_lttng_tracing_ok
eval ${TESTCMD}
- stop_lttng_tracing
+ stop_lttng_tracing_ok
# ensure each is there.
validate_trace_exp "-e syscall_entry_$EVENT_NAME: -e compat_syscall_entry_$EVENT_NAME:" $TRACE_PATH
start_lttng_tracing_ok
eval ${TESTCMD}
- stop_lttng_tracing
+ stop_lttng_tracing_ok
# ensure each is there.
validate_trace_exp "-e syscall_entry_open: -e compat_syscall_entry_open:" $TRACE_PATH
start_lttng_tracing_ok
eval ${TESTCMD}
- stop_lttng_tracing
+ stop_lttng_tracing_ok
# ensure each is there.
validate_trace_exp "-e syscall_entry_open: -e compat_syscall_entry_open:" $TRACE_PATH
start_lttng_tracing_ok
eval ${TESTCMD}
- stop_lttng_tracing
+ stop_lttng_tracing_ok
# ensure at least open and close are there.
validate_trace_exp "-e syscall_entry_open: -e compat_syscall_entry_open:" $TRACE_PATH
start_lttng_tracing_ok
eval ${TESTCMD}
- stop_lttng_tracing
+ stop_lttng_tracing_ok
# ensure "open" syscall is there.
validate_trace_exp "-e syscall_entry_open: -e compat_syscall_entry_open: -e syscall_exit_open: -e compat_syscall_exit_open:" $TRACE_PATH
start_lttng_tracing_ok
# generates open, close, execve (at least)
eval ${TESTCMD}
- stop_lttng_tracing
+ stop_lttng_tracing_ok
# ensure "open" syscall is there.
validate_trace_exp "-e syscall_entry_open: -e compat_syscall_entry_open: -e syscall_exit_open: -e compat_syscall_exit_open:" $TRACE_PATH
start_lttng_tracing_ok
# generates open, close, execve (at least)
eval ${TESTCMD}
- stop_lttng_tracing
+ stop_lttng_tracing_ok
# ensure nothing has been traced.
validate_trace_empty $TRACE_PATH
start_lttng_tracing_ok
# generates open, close, execve (at least)
eval ${TESTCMD}
- stop_lttng_tracing
+ stop_lttng_tracing_ok
# ensure at least open and close are there.
validate_trace_exp "-e syscall_entry_open: -e compat_syscall_entry_open:" $TRACE_PATH
start_lttng_tracing_ok
# generates open, close, execve (at least)
eval ${TESTCMD}
- stop_lttng_tracing
+ stop_lttng_tracing_ok
# ensure nothing has been traced.
validate_trace_empty $TRACE_PATH
start_lttng_tracing_ok
# generates open, close, execve (at least)
eval ${TESTCMD}
- stop_lttng_tracing
+ stop_lttng_tracing_ok
# ensure nothing has been traced.
validate_trace_empty $TRACE_PATH
start_lttng_tracing_ok
# generates open, close, execve (at least)
eval ${TESTCMD}
- stop_lttng_tracing
+ stop_lttng_tracing_ok
# ensure nothing has been traced.
validate_trace_empty $TRACE_PATH
start_lttng_tracing_ok
# generates open, close, execve (at least)
eval ${TESTCMD}
- stop_lttng_tracing
+ stop_lttng_tracing_ok
# ensure open is there.
validate_trace_exp "-e syscall_entry_open: -e compat_syscall_entry_open:" $TRACE_PATH
# Trace apps
start_lttng_tracing_ok $SESSION_NAME
run_apps
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
# Destroy session
destroy_lttng_session $SESSION_NAME
# Trace apps
start_lttng_tracing_ok $SESSION_NAME
run_apps
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
# Destroy session
destroy_lttng_session $SESSION_NAME
function clean_live_tracing()
{
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
}
function clean_live_tracing()
{
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
}
ok $? "Mi test: enabled element : $result expected: true"
#Test stop command
- stop_lttng_tracing $session_name
+ stop_lttng_tracing_ok $session_name
$XML_VALIDATE $OUTPUT_DEST
ok $? "Mi test: stop xsd validation"
ok $? "Mi test: enabled element : $result expected: false"
#Test failing stop command
- stop_lttng_tracing $session_name 1
+ stop_lttng_tracing_fail $session_name
$XML_VALIDATE $OUTPUT_DEST
ok $? "Mi test: failed stop xsd validation"
start_lttng_tracing_ok $SESSION_NAME
lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
lttng_snapshot_record $SESSION_NAME
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test
enable_lttng_mmap_overwrite_kernel_channel $SESSION_NAME $CHANNEL_NAME
lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
start_lttng_tracing_ok $SESSION_NAME
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
lttng_snapshot_record $SESSION_NAME
destroy_lttng_session $SESSION_NAME
break
fi
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
}
break
fi
done
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
}
return $?
fi
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
return 0
start_lttng_tracing_ok $SESSION_NAME
snapshot_add_output $SESSION_NAME "net://localhost"
lttng_snapshot_record $SESSION_NAME
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test
validate_trace $EVENT_NAME $TRACE_PATH/$HOSTNAME/snapshot-1*
start_lttng_tracing_ok $SESSION_NAME
snapshot_add_output $SESSION_NAME "net://localhost" $name
lttng_snapshot_record $SESSION_NAME
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
if ls $TRACE_PATH/$HOSTNAME/$name* &> /dev/null; then
return $?
fi
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
stop_test_apps
snapshot_add_output $SESSION_NAME "net://localhost"
lttng_snapshot_record $SESSION_NAME
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test
validate_trace $EVENT_NAME $TRACE_PATH/$HOSTNAME/snapshot-1*
snapshot_add_output $SESSION_NAME "-C tcp://localhost:5342 -D tcp://localhost:5343"
lttng_snapshot_record $SESSION_NAME
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test
validate_trace $EVENT_NAME $TRACE_PATH/$HOSTNAME/snapshot-1*
snapshot_add_output $SESSION_NAME "net://localhost" $name
lttng_snapshot_record $SESSION_NAME
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
if ls $TRACE_PATH/$HOSTNAME/$name* &> /dev/null; then
ok $? "Snapshot named ${output_names[1]} present in list-output listing"
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
}
start_test_app
lttng_snapshot_record $SESSION_NAME
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test
pass "Tracefiles size sum validation"
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test
$LM_BIN 1 1
ok $? "Start application to trace"
lttng_snapshot_record $SESSION_NAME
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test
start_test_app
lttng_snapshot_record $SESSION_NAME
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test
stop_test_apps
lttng_snapshot_record $SESSION_NAME
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test
rm -rf $TRACE_PATH
fi
done
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
stop_test_apps
diag "Waiting for applications to end"
wait
pass "waiting done"
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
validate_event_count
}
start_lttng_tracing_ok $SESSION_NAME
# Give a second
sleep 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
}
lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME
# Give a second
sleep 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
}
# Wait for the applications started in background
wait
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
rm -f ${file_sync_after_first}
rm -f ${file_sync_before_last}
sleep 0.5
done
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Wait for the applications started in background
$TESTAPP_BIN $num_iter >/dev/null 2>&1
- stop_lttng_tracing $session_name
+ stop_lttng_tracing_ok $session_name
destroy_lttng_session $session_name
$TESTAPP_BIN $NR_ITER >/dev/null 2>&1
- stop_lttng_tracing $session_name
+ stop_lttng_tracing_ok $session_name
destroy_lttng_session $session_name
wait
ok $? "Traced application stopped."
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
wait
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
rm -f ${file_sync_after_first}
done
wait
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
trace_match_only $EVENT_NAME $[NR_ITER * 5] $TRACE_PATH
wait
pass "Waiting done"
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
for i in `seq 1 5`; do
ok $? "Start application to trace"
wait
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
wait
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
rm -f ${file_sync_after_first}
ok $? "Start application to trace"
wait
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_only $EVENT_NAME $[NR_ITER * 5] $TRACE_PATH
out=$?
wait
pass "Wait for applications to end"
-stop_lttng_tracing $SESSION_NAME
+stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
stop_lttng_sessiond
# Wait for the applications started in background
wait
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
rm -f ${file_sync_after_first}
# Run 5 times with a 1 second delay
run_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events.
# Run 5 times with a 1 second delay
run_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events.
# Run 5 times with a 1 second delay
run_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting 0 events.
# Run 5 times with a 1 second delay
run_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events.
# Run 5 times with a 1 second delay and fire two TP.
run_app 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events times two.
# Run 5 times with a 1 second delay and fire two TP.
run_app 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events times two.
# Run 5 times with a 1 second delay and fire second TP.
run_app 1 1
- stop_lttng_tracing $SESSION_NAME-1
- stop_lttng_tracing $SESSION_NAME-2
+ stop_lttng_tracing_ok $SESSION_NAME-1
+ stop_lttng_tracing_ok $SESSION_NAME-2
destroy_lttng_session $SESSION_NAME-1
destroy_lttng_session $SESSION_NAME-2
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME-1
- stop_lttng_tracing $SESSION_NAME-2
+ stop_lttng_tracing_ok $SESSION_NAME-1
+ stop_lttng_tracing_ok $SESSION_NAME-2
destroy_lttng_session $SESSION_NAME-1
destroy_lttng_session $SESSION_NAME-2
run_app
- stop_lttng_tracing $SESSION_NAME-1
- stop_lttng_tracing $SESSION_NAME-2
+ stop_lttng_tracing_ok $SESSION_NAME-1
+ stop_lttng_tracing_ok $SESSION_NAME-2
destroy_lttng_session $SESSION_NAME-1
destroy_lttng_session $SESSION_NAME-2
run_app 0 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting NO event of the first TP and second TP.
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME-1
- stop_lttng_tracing $SESSION_NAME-2
+ stop_lttng_tracing_ok $SESSION_NAME-1
+ stop_lttng_tracing_ok $SESSION_NAME-2
destroy_lttng_session $SESSION_NAME-1
destroy_lttng_session $SESSION_NAME-2
# Wait for the applications started in background
wait
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting at least one event num 1
# Wait for the applications started in background
wait
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting only one event num 2
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting one event of the second TP only.
# Run 5 times with a 1 second delay, fire finest and second TP.
run_app 1 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting NR_ITER event of the main INFO tp.
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting one event of the second TP only.
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting NR_ITER event of the main INFO tp.
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting no events.
# Wait for the applications started in background
wait
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
rm -f ${file_sync_after_first}
# Run 5 times with a 1 second delay
run_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events.
# Run 5 times with a 1 second delay
run_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events.
# Run 5 times with a 1 second delay
run_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting 0 events.
# Run 5 times with a 1 second delay
run_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events.
# Run 5 times with a 1 second delay and fire two TP.
run_app 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events times two.
# Run 5 times with a 1 second delay and fire two TP.
run_app 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events times two.
# Run 5 times with a 1 second delay and fire second TP.
run_app 1 1
- stop_lttng_tracing $SESSION_NAME-1
- stop_lttng_tracing $SESSION_NAME-2
+ stop_lttng_tracing_ok $SESSION_NAME-1
+ stop_lttng_tracing_ok $SESSION_NAME-2
destroy_lttng_session $SESSION_NAME-1
destroy_lttng_session $SESSION_NAME-2
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME-1
- stop_lttng_tracing $SESSION_NAME-2
+ stop_lttng_tracing_ok $SESSION_NAME-1
+ stop_lttng_tracing_ok $SESSION_NAME-2
destroy_lttng_session $SESSION_NAME-1
destroy_lttng_session $SESSION_NAME-2
run_app
- stop_lttng_tracing $SESSION_NAME-1
- stop_lttng_tracing $SESSION_NAME-2
+ stop_lttng_tracing_ok $SESSION_NAME-1
+ stop_lttng_tracing_ok $SESSION_NAME-2
destroy_lttng_session $SESSION_NAME-1
destroy_lttng_session $SESSION_NAME-2
run_app 0 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting NO event of the first TP and second TP.
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME-1
- stop_lttng_tracing $SESSION_NAME-2
+ stop_lttng_tracing_ok $SESSION_NAME-1
+ stop_lttng_tracing_ok $SESSION_NAME-2
destroy_lttng_session $SESSION_NAME-1
destroy_lttng_session $SESSION_NAME-2
# Wait for the applications started in background
wait
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting at least one event num 1
# Wait for the applications started in background
wait
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting only one event num 2
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting one event of the second TP only.
# Run 5 times with a 1 second delay, fire debug and second TP.
run_app 1 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting NR_ITER event of the main INFO tp.
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting one event of the second TP only.
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting NR_ITER event of the main INFO tp.
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting no events.
# This is going to take 20 minutes
./$CURDIR/$BIN_NAME >/dev/null 2>&1
-stop_lttng_tracing $SESSION_NAME
+stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
stop_lttng_sessiond
pass "Wait for events to record"
for i in `seq 0 3`; do
- stop_lttng_tracing "$SESSION_NAME-$i"
+ stop_lttng_tracing_ok "$SESSION_NAME-$i"
destroy_lttng_session "$SESSION_NAME-$i"
out=$(babeltrace "$TRACE_PATH/$i" | grep "$EVENT_NAMEi$i" | wc -l)
if [ $out -ne $NR_ITER ]; then
# We don't validate whether the applications have traced here, rather
# just that they registered to sessiond (above).
-stop_lttng_tracing $SESSION_NAME
+stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
#TODO: add trace validation.
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_all_demo_events
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_all_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_all_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_all_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_no_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_all_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_matches $DEMO_EVENT1 $NUM_DEMO1_EVENT $TRACE_PATH
trace_matches $DEMO_EVENT1_2 0 $TRACE_PATH
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_all_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_no_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_all_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_all_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_all_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_no_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_matches $DEMO_EVENT1 $NUM_DEMO1_EVENT $TRACE_PATH
trace_matches $DEMO_EVENT1_2 0 $TRACE_PATH
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_no_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_no_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_all_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_all_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_all_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_all_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_match_all_demo_events
return $?
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
trace_matches $DEMO_EVENT1 $NUM_DEMO1_EVENT $TRACE_PATH
trace_matches $DEMO_EVENT1_2 0 $TRACE_PATH
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
# No events are expected.
trace_match_no_demo_events
run_demo_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
# Expect only "ust_tests_demo" events.
trace_matches "$DEMO_EVENT1" $NUM_DEMO1_EVENT $TRACE_PATH
kill -s SIGKILL ${p}
wait ${p} 2>/dev/null
done
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
wait_trace_apps
wait ${p} 2>/dev/null
done
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
wait_trace_apps
kill -s SIGKILL ${p}
wait ${p} 2>/dev/null
done
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
wait_trace_apps
kill -s SIGKILL ${p}
wait ${p} 2>/dev/null
done
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
wait_trace_apps
# Wait for the applications started in background
wait
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events.
# Run 5 times with a 1 second delay
run_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events.
# Run 5 times with a 1 second delay
run_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events.
# Run 5 times with a 1 second delay
run_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting 0 events.
# Run 5 times with a 1 second delay
run_app
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events.
# Run 5 times with a 1 second delay and fire two TP.
run_app 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events times two.
# Run 5 times with a 1 second delay and fire two TP.
run_app 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting all events times two.
# Run 5 times with a 1 second delay and fire second TP.
run_app 1 1
- stop_lttng_tracing $SESSION_NAME-1
- stop_lttng_tracing $SESSION_NAME-2
+ stop_lttng_tracing_ok $SESSION_NAME-1
+ stop_lttng_tracing_ok $SESSION_NAME-2
destroy_lttng_session $SESSION_NAME-1
destroy_lttng_session $SESSION_NAME-2
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME-1
- stop_lttng_tracing $SESSION_NAME-2
+ stop_lttng_tracing_ok $SESSION_NAME-1
+ stop_lttng_tracing_ok $SESSION_NAME-2
destroy_lttng_session $SESSION_NAME-1
destroy_lttng_session $SESSION_NAME-2
run_app
- stop_lttng_tracing $SESSION_NAME-1
- stop_lttng_tracing $SESSION_NAME-2
+ stop_lttng_tracing_ok $SESSION_NAME-1
+ stop_lttng_tracing_ok $SESSION_NAME-2
destroy_lttng_session $SESSION_NAME-1
destroy_lttng_session $SESSION_NAME-2
run_app 0 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting NO event of the first TP and second TP.
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME-1
- stop_lttng_tracing $SESSION_NAME-2
+ stop_lttng_tracing_ok $SESSION_NAME-1
+ stop_lttng_tracing_ok $SESSION_NAME-2
destroy_lttng_session $SESSION_NAME-1
destroy_lttng_session $SESSION_NAME-2
# Wait for the applications started in background
wait
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting at least one event num 1
# Wait for the applications started in background
wait
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting only one event num 2
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting one event of the second TP only.
# Run 5 times with a 1 second delay, fire debug and second TP.
run_app 1 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting NR_ITER event of the main INFO tp.
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting one event of the second TP only.
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting NR_ITER event of the main INFO tp.
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Validate test. Expecting no events.
enable_ust_lttng_event_per_chan $SESSION_NAME2 $EVENT_NAME3 $CHAN_NAME2
start_lttng_tracing_ok
- stop_lttng_tracing
+ stop_lttng_tracing_ok
start_lttng_tracing_ok
- stop_lttng_tracing
+ stop_lttng_tracing_ok
TODO="Validate trace output is coherent"
ok 0 "Validate trace"
$TESTAPP_BIN $NR_ITER $NR_USEC_WAIT >/dev/null 2>&1
- stop_lttng_tracing
+ stop_lttng_tracing_ok
destroy_lttng_session $SESSION_NAME
$TESTAPP_BIN $NR_ITER $NR_USEC_WAIT
ok $? "Traced application stopped."
- stop_lttng_tracing $SESSION_NAME
+ stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
enable_ust_lttng_event_ok $SESSION_NAME "$EVENT_NAME2"
start_lttng_tracing_ok
- stop_lttng_tracing
+ stop_lttng_tracing_ok
TODO="Validate trace output is coherent"
ok 0 "Validate trace"
done
for a in $(seq 1 $NR_SESSION); do
- stop_lttng_tracing $SESSION_NAME-$a
+ stop_lttng_tracing_ok $SESSION_NAME-$a
check_sessiond
destroy_lttng_session $SESSION_NAME-$a
check_sessiond
done
for a in $(seq 1 $NR_SESSION); do
- stop_lttng_tracing $SESSION_NAME-$a
+ stop_lttng_tracing_ok $SESSION_NAME-$a
check_sessiond
check_relayd
destroy_lttng_session $SESSION_NAME-$a
done
for a in $(seq 1 $NR_SESSION); do
- stop_lttng_tracing $SESSION_NAME-$a
+ stop_lttng_tracing_ok $SESSION_NAME-$a
check_sessiond
check_relayd
destroy_lttng_session $SESSION_NAME-$a
function stop_lttng_tracing ()
{
- local sess_name=$1
- local expected_to_fail=$2
+ local expected_to_fail=$1
+ local sess_name=$2
$TESTDIR/../src/bin/lttng/$LTTNG_BIN stop $sess_name >$OUTPUT_DEST
ret=$?
- if [[ $expected_to_fail ]]; then
+ if [[ $expected_to_fail -eq "1" ]]; then
test "$ret" -ne "0"
ok $? "Expected fail on stop tracing for session: $sess_name"
else
fi
}
+function stop_lttng_tracing_ok ()
+{
+ stop_lttng_tracing 0 "$@"
+}
+
+function stop_lttng_tracing_fail ()
+{
+ stop_lttng_tracing 1 "$@"
+}
+
function destroy_lttng_session ()
{
local sess_name=$1
$TESTDIR/../src/bin/lttng/$LTTNG_BIN destroy $sess_name >$OUTPUT_DEST
ret=$?
- if [[ $expected_to_fail ]]; then
+ if [[ $expected_to_fail -eq "1" ]]; then
test "$ret" -ne "0"
ok $? "Expected fail on session deletion $sess_name"
else