lttng_enable_kernel_event $SESSION_NAME
- start_lttng_tracing
+ start_lttng_tracing_ok
stop_lttng_tracing
validate_trace "sched_switch" $TRACE_PATH
lttng_enable_kernel_event $SESSION_NAME "sched_process_exit"
lttng_enable_kernel_event $SESSION_NAME "sched_process_free"
- start_lttng_tracing
+ start_lttng_tracing_ok
stop_lttng_tracing
validate_trace "sched_switch" $TRACE_PATH
lttng_enable_kernel_event $SESSION_NAME "sched_switch"
- start_lttng_tracing
+ start_lttng_tracing_ok
lttng_enable_kernel_event $SESSION_NAME "sched_process_exit"
stop_lttng_tracing
validate_list $SESSION_NAME $EVENT_NAME
- start_lttng_tracing
+ start_lttng_tracing_ok
eval ${TESTCMD}
stop_lttng_tracing
validate_list $SESSION_NAME $EVENT_NAME
validate_list $SESSION_NAME $EVENT_NAME2
- start_lttng_tracing
+ start_lttng_tracing_ok
eval ${TESTCMD}
stop_lttng_tracing
lttng_enable_kernel_syscall_ok $SESSION_NAME "open"
- start_lttng_tracing
+ start_lttng_tracing_ok
eval ${TESTCMD}
stop_lttng_tracing
lttng_enable_kernel_syscall_ok $SESSION_NAME "open"
lttng_enable_kernel_syscall_ok $SESSION_NAME "close"
- start_lttng_tracing
+ start_lttng_tracing_ok
eval ${TESTCMD}
stop_lttng_tracing
# enable all syscalls
lttng_enable_kernel_syscall_ok $SESSION_NAME
- start_lttng_tracing
+ start_lttng_tracing_ok
eval ${TESTCMD}
stop_lttng_tracing
# "all syscalls" is not "the open" system call.
lttng_disable_kernel_syscall_fail $SESSION_NAME "open"
- start_lttng_tracing
+ start_lttng_tracing_ok
eval ${TESTCMD}
stop_lttng_tracing
lttng_disable_kernel_syscall_fail $SESSION_NAME "open"
lttng_disable_kernel_syscall_fail $SESSION_NAME "close"
- start_lttng_tracing
+ start_lttng_tracing_ok
# generates open, close, execve (at least)
eval ${TESTCMD}
stop_lttng_tracing
# disable all system calls
lttng_disable_kernel_syscall_ok $SESSION_NAME
- start_lttng_tracing
+ start_lttng_tracing_ok
# generates open, close, execve (at least)
eval ${TESTCMD}
stop_lttng_tracing
# enable all system calls
lttng_enable_kernel_syscall_ok $SESSION_NAME
- start_lttng_tracing
+ start_lttng_tracing_ok
# generates open, close, execve (at least)
eval ${TESTCMD}
stop_lttng_tracing
# disable all system calls
lttng_disable_kernel_syscall_ok $SESSION_NAME
- start_lttng_tracing
+ start_lttng_tracing_ok
# generates open, close, execve (at least)
eval ${TESTCMD}
stop_lttng_tracing
# disable open system call
lttng_disable_kernel_syscall_ok $SESSION_NAME "open"
- start_lttng_tracing
+ start_lttng_tracing_ok
# generates open, close, execve (at least)
eval ${TESTCMD}
stop_lttng_tracing
lttng_disable_kernel_syscall_ok $SESSION_NAME "open"
lttng_disable_kernel_syscall_ok $SESSION_NAME "close"
- start_lttng_tracing
+ start_lttng_tracing_ok
# generates open, close, execve (at least)
eval ${TESTCMD}
stop_lttng_tracing
# disable close system call
lttng_disable_kernel_syscall_ok $SESSION_NAME "close"
- start_lttng_tracing
+ start_lttng_tracing_ok
# generates open, close, execve (at least)
eval ${TESTCMD}
stop_lttng_tracing
enable_ust_lttng_all_event_exclusion $SESSION_NAME $EV_EXCLUDE_NAME
# Trace apps
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_apps
stop_lttng_tracing $SESSION_NAME
enable_ust_lttng_event_filter $SESSION_NAME $EVENT_NAME $filter
# Trace apps
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_apps
stop_lttng_tracing $SESSION_NAME
diag "With kernel consumer daemon"
lttng_enable_kernel_event $SESSION_NAME $KERNEL_EVENT_NAME $CHANNEL_NAME
}
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
fi
if [ ${test_relayd} -eq 1 ]; then
diag "With UST consumer daemons"
create_lttng_session_no_output $SESSION_NAME
enable_ust_lttng_event_ok $SESSION_NAME $UST_EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Check health status
diag "With kernel consumer daemon"
create_lttng_session_no_output $SESSION_NAME
lttng_enable_kernel_event $SESSION_NAME $KERNEL_EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session $SESSION_NAME
# Check health status
ok $? "Create session in live mode with delay $DELAY_USEC"
lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
}
function clean_live_tracing()
ok $? "Create session in live mode with delay $DELAY_USEC"
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
}
function clean_live_tracing()
#Test fail command
#No channel enable start command should return element success false
OUTPUT_DEST=$OUTPUT_DIR/$OUTPUT_FILE
- start_lttng_tracing $session_name 1
+ start_lttng_tracing_fail $session_name
$XML_VALIDATE $OUTPUT_DEST
ok $? "Mi test: failed start xsd validation"
#Start tracing
OUTPUT_DEST=$OUTPUT_DIR/$OUTPUT_FILE
- start_lttng_tracing $session_name
+ start_lttng_tracing_ok $session_name
$XML_VALIDATE $OUTPUT_DEST
ok $? "Mi test: start xsd validation"
create_lttng_session_no_output $SESSION_NAME
enable_lttng_mmap_overwrite_kernel_channel $SESSION_NAME $CHANNEL_NAME
lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
lttng_snapshot_record $SESSION_NAME
stop_lttng_tracing $SESSION_NAME
create_lttng_session_no_output $SESSION_NAME
enable_lttng_mmap_overwrite_kernel_channel $SESSION_NAME $CHANNEL_NAME
lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
stop_lttng_tracing $SESSION_NAME
lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
lttng_snapshot_record $SESSION_NAME
create_lttng_session_no_output $SESSION_NAME
enable_lttng_mmap_overwrite_kernel_channel $SESSION_NAME $CHANNEL_NAME
lttng_enable_kernel_event $SESSION_NAME $EVENT1 $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
# first snapshot with only 1 event
create_lttng_session_no_output $SESSION_NAME
enable_lttng_mmap_overwrite_kernel_channel $SESSION_NAME $CHANNEL_NAME
lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
for i in $(seq 1 $NB_SNAP); do
diag "Snapshot $i/$NB_SNAP"
create_lttng_session_no_output $SESSION_NAME
enable_lttng_mmap_overwrite_kernel_channel $SESSION_NAME $CHANNEL_NAME
lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
snapshot_add_output $SESSION_NAME "net://localhost"
lttng_snapshot_record $SESSION_NAME
create_lttng_session_no_output $SESSION_NAME
enable_lttng_mmap_overwrite_kernel_channel $SESSION_NAME $CHANNEL_NAME
lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
snapshot_add_output $SESSION_NAME "net://localhost"
lttng_snapshot_record $SESSION_NAME
stop_lttng_tracing $SESSION_NAME
create_lttng_session_no_output $SESSION_NAME
enable_lttng_mmap_overwrite_kernel_channel $SESSION_NAME $CHANNEL_NAME
lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
snapshot_add_output $SESSION_NAME "net://localhost" $name
lttng_snapshot_record $SESSION_NAME
stop_lttng_tracing $SESSION_NAME
create_lttng_session_no_output $SESSION_NAME
enable_lttng_mmap_overwrite_ust_channel $SESSION_NAME $CHANNEL_NAME
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
start_test_app
create_lttng_session_no_output $SESSION_NAME
enable_lttng_mmap_overwrite_ust_channel $SESSION_NAME $CHANNEL_NAME
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
start_test_app
create_lttng_session_no_output $SESSION_NAME
enable_lttng_mmap_overwrite_ust_channel $SESSION_NAME $CHANNEL_NAME
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
start_test_app
create_lttng_session_no_output $SESSION_NAME
enable_lttng_mmap_overwrite_ust_channel $SESSION_NAME $CHANNEL_NAME
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
start_test_app
enable_lttng_mmap_overwrite_ust_channel $SESSION_NAME $CHANNEL_NAME
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
snapshot_add_output $SESSION_NAME "file://$TRACE_PATH" ${output_names[0]}
create_lttng_session_no_output $SESSION_NAME
enable_lttng_mmap_overwrite_ust_channel $SESSION_NAME $CHANNEL_NAME
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
# Returns once the application has at least fired ONE tracepoint.
enable_mmap_overwrite_subbuf_ust_channel $SESSION_NAME $CHANNEL_NAME $subbuf_size
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
snapshot_add_output $SESSION_NAME "file://$TRACE_PATH" "" $max_size
create_lttng_session_no_output $SESSION_NAME
enable_lttng_mmap_overwrite_ust_channel $SESSION_NAME $CHANNEL_NAME
enable_ust_lttng_event_ok $SESSION_NAME $LM_EVENT $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
$LM_BIN 1 1
ok $? "Start application to trace"
create_lttng_session_no_output $SESSION_NAME
enable_channel_per_uid_mmap_overwrite $SESSION_NAME $CHANNEL_NAME
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
# Returns once the application has at least fired ONE tracepoint.
create_lttng_session_no_output $SESSION_NAME
enable_channel_per_uid_mmap_overwrite $SESSION_NAME $CHANNEL_NAME
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
# Returns once the application has at least fired ONE tracepoint.
create_lttng_session_no_output $SESSION_NAME
enable_lttng_mmap_overwrite_ust_channel $SESSION_NAME $CHANNEL_NAME
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME $CHANNEL_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
# Returns once the application has at least fired ONE tracepoint.
NETWORK_URI="net://localhost"
create_lttng_session_with_uri $SESSION_NAME $NETWORK_URI
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_apps
diag "Waiting for applications to end"
wait
diag "Test kernel streaming with event enable BEFORE start"
lttng_create_session_uri
lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Give a second
sleep 1
stop_lttng_tracing $SESSION_NAME
{
diag "Test kernel streaming with event enable AFTER start"
lttng_create_session_uri
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
lttng_enable_kernel_event $SESSION_NAME $EVENT_NAME
# Give a second
sleep 1
# Run 5 times with a 1 second delay
$TESTAPP_BIN $NR_ITER $NR_USEC_WAIT ${file_sync_after_first} ${file_sync_before_last} /dev/null 2>&1 &
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
touch ${file_sync_before_last}
diag "Test UST streaming AFTER tracing starts"
lttng_create_session_uri
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
$TESTAPP_BIN $NR_ITER $NR_USEC_WAIT ${file_sync_after_first} >/dev/null 2>&1
enable_ust_lttng_event_per_channel \
$session_name $event_name $channel_name
- start_lttng_tracing $session_name
+ start_lttng_tracing_ok $session_name
$TESTAPP_BIN $num_iter >/dev/null 2>&1
enable_ust_lttng_event_per_channel \
$session_name $event_name $channel_name
- start_lttng_tracing $session_name
+ start_lttng_tracing_ok $session_name
$TESTAPP_BIN $NR_ITER >/dev/null 2>&1
# BEFORE application is spawned
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
$TESTAPP_BIN $NR_ITER $NR_USEC_WAIT &
wait
$TESTAPP_BIN $NR_ITER $NR_USEC_WAIT ${file_sync_after_first} ${file_sync_before_last} &
ok $? "Application started in background."
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
touch ${file_sync_before_last}
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_channel_per_pid $SESSION_NAME "channel0"
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME "channel0"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
for i in `seq 1 5`; do
$TESTAPP_BIN $NR_ITER $NR_USEC_WAIT >/dev/null 2>&1 &
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_channel_per_pid $SESSION_NAME "channel0"
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME "channel0"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
for i in `seq 1 5`; do
touch ${file_sync_before_last}_${i}
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_channel_per_pid $SESSION_NAME "channel0"
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME "channel0"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
$TESTAPP_BIN $NR_ITER $NR_USEC_WAIT &
ok $? "Start application to trace"
$TESTAPP_BIN $NR_ITER $NR_USEC_WAIT ${file_sync_after_first} ${file_sync_before_last} &
ok $? "Start application to trace"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
touch ${file_sync_before_last}
ok $? "Enable event $EVENT_NAME for session $SESSION_NAME in channel3"
$TESTDIR/../src/bin/lttng/$LTTNG_BIN enable-event $EVENT_NAME -c channel4 -s $SESSION_NAME -u >/dev/null 2>&1
ok $? "Enable event $EVENT_NAME for session $SESSION_NAME in channel4"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
$TESTAPP_BIN $NR_ITER $NR_USEC_WAIT &
ok $? "Start application to trace"
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME
-start_lttng_tracing $SESSION_NAME
+start_lttng_tracing_ok $SESSION_NAME
for i in `seq 1 $NR_APP`; do
./$CURDIR/$BIN_NAME >/dev/null 2>&1 &
# Run 5 times with a 1 second delay
run_app_background
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
touch ${file_sync_before_last}
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_jul_lttng_event $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_jul_lttng_event_loglevel $SESSION_NAME $EVENT_NAME "JUL_INFO"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_jul_lttng_event_loglevel $SESSION_NAME $EVENT_NAME "JUL_SEVERE"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_jul_lttng_event_loglevel $SESSION_NAME $EVENT_NAME "JUL_FINER"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_jul_lttng_event_loglevel $SESSION_NAME $EVENT_NAME "JUL_INFO"
enable_jul_lttng_event_loglevel $SESSION_NAME $EVENT_NAME "JUL_FINEST"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire two TP.
run_app 1
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_jul_lttng_event_loglevel $SESSION_NAME '*' "JUL_INFO"
enable_jul_lttng_event_loglevel $SESSION_NAME '*' "JUL_FINEST"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire two TP.
run_app 1
create_lttng_session_ok $SESSION_NAME-1 $TRACE_PATH/$SESSION_NAME-1
enable_jul_loglevel_only $SESSION_NAME-1 '*' "JUL_INFO"
- start_lttng_tracing $SESSION_NAME-1
+ start_lttng_tracing_ok $SESSION_NAME-1
create_lttng_session_ok $SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
enable_jul_loglevel_only $SESSION_NAME-2 '*' "JUL_FINEST"
- start_lttng_tracing $SESSION_NAME-2
+ start_lttng_tracing_ok $SESSION_NAME-2
# Run 5 times with a 1 second delay and fire second TP.
run_app 1 1
enable_jul_lttng_event $SESSION_NAME-1 $EVENT_NAME
enable_jul_lttng_event $SESSION_NAME-1 $EVENT_NAME2
disable_jul_lttng_event $SESSION_NAME-1 $EVENT_NAME
- start_lttng_tracing $SESSION_NAME-1
+ start_lttng_tracing_ok $SESSION_NAME-1
create_lttng_session_ok $SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
enable_jul_lttng_event $SESSION_NAME-2 $EVENT_NAME2
- start_lttng_tracing $SESSION_NAME-2
+ start_lttng_tracing_ok $SESSION_NAME-2
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
disable_jul_lttng_event $SESSION_NAME-1 '*'
- start_lttng_tracing $SESSION_NAME-1
- start_lttng_tracing $SESSION_NAME-2
+ start_lttng_tracing_ok $SESSION_NAME-1
+ start_lttng_tracing_ok $SESSION_NAME-2
run_app
disable_jul_lttng_event $SESSION_NAME '*'
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_app 0 1
create_lttng_session_ok $SESSION_NAME-1 $TRACE_PATH/$SESSION_NAME-1
enable_jul_lttng_event $SESSION_NAME-1 $EVENT_NAME
- start_lttng_tracing $SESSION_NAME-1
+ start_lttng_tracing_ok $SESSION_NAME-1
create_lttng_session_ok $SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
enable_jul_lttng_event $SESSION_NAME-2 $EVENT_NAME2
- start_lttng_tracing $SESSION_NAME-2
+ start_lttng_tracing_ok $SESSION_NAME-2
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
create_lttng_session_ok $SESSION_NAME $TRACE_PATH/first-sess
enable_jul_lttng_event $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app_background 0 1
create_lttng_session_ok $SESSION_NAME $TRACE_PATH/second-sess
enable_jul_lttng_event $SESSION_NAME $EVENT_NAME2
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app_background 0 1
create_lttng_session_ok $SESSION_NAME $TRACE_PATH/$SESSION_NAME
# Enable all event with a filter.
enable_jul_filter $SESSION_NAME '*' 'msg == "JUL second logger fired"'
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
# Enable first Logger but filter msg payload for the INFO one while
# triggering the finest and second TP.
enable_jul_filter $SESSION_NAME $EVENT_NAME 'msg == "JUL tp fired!"'
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay, fire finest and second TP.
run_app 1 1
enable_jul_lttng_event $SESSION_NAME $EVENT_NAME
enable_jul_lttng_event $SESSION_NAME $EVENT_NAME2
disable_jul_lttng_event $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
enable_jul_lttng_event $SESSION_NAME $EVENT_NAME
disable_jul_lttng_event $SESSION_NAME $EVENT_NAME
enable_jul_lttng_event $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
enable_jul_filter_loglevel_only $SESSION_NAME $BOGUS_EVENT_NAME "$FILTER" JUL_CONFIG
disable_jul_lttng_event $SESSION_NAME $BOGUS_EVENT_NAME
enable_jul_filter_loglevel_only $SESSION_NAME $BOGUS_EVENT_NAME "$FILTER" JUL_CONFIG
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
# Run 5 times with a 1 second delay
run_app_background
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
touch ${file_sync_before_last}
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_log4j_lttng_event $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_log4j_lttng_event_loglevel $SESSION_NAME $EVENT_NAME "LOG4J_INFO"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_log4j_lttng_event_loglevel $SESSION_NAME $EVENT_NAME "LOG4J_FATAL"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_log4j_lttng_event_loglevel $SESSION_NAME $EVENT_NAME "LOG4J_TRACE"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_log4j_lttng_event_loglevel $SESSION_NAME $EVENT_NAME "LOG4J_INFO"
enable_log4j_lttng_event_loglevel $SESSION_NAME $EVENT_NAME "LOG4J_DEBUG"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire two TP.
run_app 1
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_log4j_lttng_event_loglevel $SESSION_NAME '*' "LOG4J_INFO"
enable_log4j_lttng_event_loglevel $SESSION_NAME '*' "LOG4J_DEBUG"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire two TP.
run_app 1
create_lttng_session_ok $SESSION_NAME-1 $TRACE_PATH/$SESSION_NAME-1
enable_log4j_loglevel_only $SESSION_NAME-1 '*' "LOG4J_INFO"
- start_lttng_tracing $SESSION_NAME-1
+ start_lttng_tracing_ok $SESSION_NAME-1
create_lttng_session_ok $SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
enable_log4j_loglevel_only $SESSION_NAME-2 '*' "LOG4J_DEBUG"
- start_lttng_tracing $SESSION_NAME-2
+ start_lttng_tracing_ok $SESSION_NAME-2
# Run 5 times with a 1 second delay and fire second TP.
run_app 1 1
enable_log4j_lttng_event $SESSION_NAME-1 $EVENT_NAME
enable_log4j_lttng_event $SESSION_NAME-1 $EVENT_NAME2
disable_log4j_lttng_event $SESSION_NAME-1 $EVENT_NAME
- start_lttng_tracing $SESSION_NAME-1
+ start_lttng_tracing_ok $SESSION_NAME-1
create_lttng_session_ok $SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
enable_log4j_lttng_event $SESSION_NAME-2 $EVENT_NAME2
- start_lttng_tracing $SESSION_NAME-2
+ start_lttng_tracing_ok $SESSION_NAME-2
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
disable_log4j_lttng_event $SESSION_NAME-1 '*'
- start_lttng_tracing $SESSION_NAME-1
- start_lttng_tracing $SESSION_NAME-2
+ start_lttng_tracing_ok $SESSION_NAME-1
+ start_lttng_tracing_ok $SESSION_NAME-2
run_app
disable_log4j_lttng_event $SESSION_NAME '*'
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_app 0 1
create_lttng_session_ok $SESSION_NAME-1 $TRACE_PATH/$SESSION_NAME-1
enable_log4j_lttng_event $SESSION_NAME-1 $EVENT_NAME
- start_lttng_tracing $SESSION_NAME-1
+ start_lttng_tracing_ok $SESSION_NAME-1
create_lttng_session_ok $SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
enable_log4j_lttng_event $SESSION_NAME-2 $EVENT_NAME2
- start_lttng_tracing $SESSION_NAME-2
+ start_lttng_tracing_ok $SESSION_NAME-2
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
create_lttng_session_ok $SESSION_NAME $TRACE_PATH/first-sess
enable_log4j_lttng_event $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app_background 0 1
create_lttng_session_ok $SESSION_NAME $TRACE_PATH/second-sess
enable_log4j_lttng_event $SESSION_NAME $EVENT_NAME2
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app_background 0 1
create_lttng_session_ok $SESSION_NAME $TRACE_PATH/$SESSION_NAME
# Enable all event with a filter.
enable_log4j_filter $SESSION_NAME '*' 'msg == "LOG4J second logger fired"'
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
# Enable first Logger but filter msg payload for the INFO one while
# triggering the debug and second TP.
enable_log4j_filter $SESSION_NAME $EVENT_NAME 'msg == "LOG4J tp fired!"'
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay, fire debug and second TP.
run_app 1 1
enable_log4j_lttng_event $SESSION_NAME $EVENT_NAME
enable_log4j_lttng_event $SESSION_NAME $EVENT_NAME2
disable_log4j_lttng_event $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
enable_log4j_lttng_event $SESSION_NAME $EVENT_NAME
disable_log4j_lttng_event $SESSION_NAME $EVENT_NAME
enable_log4j_lttng_event $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
enable_log4j_filter_loglevel_only $SESSION_NAME $BOGUS_EVENT_NAME "$FILTER" LOG4J_INFO
disable_log4j_lttng_event $SESSION_NAME $BOGUS_EVENT_NAME
enable_log4j_filter_loglevel_only $SESSION_NAME $BOGUS_EVENT_NAME "$FILTER" LOG4J_INFO
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME
-start_lttng_tracing $SESSION_NAME
+start_lttng_tracing_ok $SESSION_NAME
# This is going to take 20 minutes
./$CURDIR/$BIN_NAME >/dev/null 2>&1
for i in `seq 0 3`; do
create_lttng_session_ok "$SESSION_NAME-$i" "$TRACE_PATH/$i"
enable_ust_lttng_event_ok "$SESSION_NAME-$i" "$EVENT_NAME$i"
- start_lttng_tracing "$SESSION_NAME-$i"
+ start_lttng_tracing_ok "$SESSION_NAME-$i"
done
./$CURDIR/gen-nevents $NR_ITER &
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME
-start_lttng_tracing $SESSION_NAME
+start_lttng_tracing_ok $SESSION_NAME
touch ${file_sync_before_last}
enable_ust_lttng_event_ok $SESSION_NAME "$event_wild1"
enable_ust_lttng_event_ok $SESSION_NAME "$event_wild2"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild1" "1==1"
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild2" "1==0"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild1" "1==0"
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild2" "1==1"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild1" "1==1"
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild2" "1==1"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild1" "1==0"
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild2" "1==0"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild1" "1==1"
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild2" "1==0"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild1" "1==0"
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild2" "1==1"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild1" "1==1"
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild2" "1==1"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild1" "1==0"
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild2" "1==0"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild1" "1==1&&1==1"
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild2" "1==1"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
fail "Enable event $event_name with filtering for session $sess_name twice failure NOT detected"
fi
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild1" "1==1"
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild2" "1==0"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild1" "1==0&&1==0"
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild2" "1==0"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild1" "1==1&&1==1"
enable_ust_lttng_event_filter $SESSION_NAME "$event_wild2" "1==1"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
disable_ust_lttng_event $SESSION_NAME "ust*"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_ok $SESSION_NAME "$event_wild2"
enable_ust_lttng_event_ok $SESSION_NAME "$event_wild3"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_ok $SESSION_NAME "$event_wild1"
enable_ust_lttng_event_ok $SESSION_NAME "$event_wild2"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_loglevel $SESSION_NAME "$event_wild1" "TRACE_WARNING"
enable_ust_lttng_event_loglevel $SESSION_NAME "$event_wild2" "TRACE_CRIT"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_loglevel $SESSION_NAME "$event_wild1" "TRACE_WARNING"
enable_ust_lttng_event_loglevel_only $SESSION_NAME "$event_wild2" "TRACE_CRIT"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_loglevel $SESSION_NAME "$event_wild1" "TRACE_WARNING"
enable_ust_lttng_event_loglevel $SESSION_NAME "$event_wild2" "TRACE_CRIT"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_loglevel $SESSION_NAME "$event_wild1" "TRACE_CRIT"
enable_ust_lttng_event_loglevel $SESSION_NAME "$event_wild2" "TRACE_WARNING"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_ust_lttng_event_loglevel $SESSION_NAME "$event_wild1" "TRACE_CRIT"
enable_ust_lttng_event_loglevel $SESSION_NAME "$event_wild2" "TRACE_WARNING"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
disable_ust_lttng_event $SESSION_NAME "$event_wild1"
disable_ust_lttng_event $SESSION_NAME "$event_wild2"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
disable_ust_lttng_event $SESSION_NAME "$event_wild1"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_demo_app
enable_metadata_per_pid $SESSION_NAME
enable_channel_per_pid $SESSION_NAME "channel0"
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME "channel0"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Start application after tracing
start_check_trace_app
enable_metadata_per_pid $SESSION_NAME
enable_channel_per_pid $SESSION_NAME "channel0"
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME "channel0"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
check_app_tmp_file
# Let the application at least perform a flush!
enable_metadata_per_uid $SESSION_NAME
enable_channel_per_uid $SESSION_NAME "channel0"
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME "channel0"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Start application after tracing
start_check_trace_app
enable_metadata_per_uid $SESSION_NAME
enable_channel_per_uid $SESSION_NAME "channel0"
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME "channel0"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
check_app_tmp_file
# Let the application at least perform a flush!
# Run 5 times with a 1 second delay
run_app_background
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Wait for the applications started in background
wait
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_python_lttng_event $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_python_lttng_event_loglevel $SESSION_NAME $EVENT_NAME "INFO"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_python_lttng_event_loglevel $SESSION_NAME $EVENT_NAME "CRITICAL"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_python_lttng_event_loglevel $SESSION_NAME $EVENT_NAME "DEBUG"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_python_lttng_event_loglevel $SESSION_NAME $EVENT_NAME "INFO"
enable_python_lttng_event_loglevel $SESSION_NAME $EVENT_NAME "DEBUG"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire two TP.
run_app 1
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_python_lttng_event_loglevel $SESSION_NAME '*' "INFO"
enable_python_lttng_event_loglevel $SESSION_NAME '*' "DEBUG"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire two TP.
run_app 1
create_lttng_session_ok $SESSION_NAME-1 $TRACE_PATH/$SESSION_NAME-1
enable_python_loglevel_only $SESSION_NAME-1 '*' "INFO"
- start_lttng_tracing $SESSION_NAME-1
+ start_lttng_tracing_ok $SESSION_NAME-1
create_lttng_session_ok $SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
enable_python_loglevel_only $SESSION_NAME-2 '*' "DEBUG"
- start_lttng_tracing $SESSION_NAME-2
+ start_lttng_tracing_ok $SESSION_NAME-2
# Run 5 times with a 1 second delay and fire second TP.
run_app 1 1
enable_python_lttng_event $SESSION_NAME-1 $EVENT_NAME
enable_python_lttng_event $SESSION_NAME-1 $EVENT_NAME2
disable_python_lttng_event $SESSION_NAME-1 $EVENT_NAME
- start_lttng_tracing $SESSION_NAME-1
+ start_lttng_tracing_ok $SESSION_NAME-1
create_lttng_session_ok $SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
enable_python_lttng_event $SESSION_NAME-2 $EVENT_NAME2
- start_lttng_tracing $SESSION_NAME-2
+ start_lttng_tracing_ok $SESSION_NAME-2
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
disable_python_lttng_event $SESSION_NAME-1 '*'
- start_lttng_tracing $SESSION_NAME-1
- start_lttng_tracing $SESSION_NAME-2
+ start_lttng_tracing_ok $SESSION_NAME-1
+ start_lttng_tracing_ok $SESSION_NAME-2
run_app
disable_python_lttng_event $SESSION_NAME '*'
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
run_app 0 1
create_lttng_session_ok $SESSION_NAME-1 $TRACE_PATH/$SESSION_NAME-1
enable_python_lttng_event $SESSION_NAME-1 $EVENT_NAME
- start_lttng_tracing $SESSION_NAME-1
+ start_lttng_tracing_ok $SESSION_NAME-1
create_lttng_session_ok $SESSION_NAME-2 $TRACE_PATH/$SESSION_NAME-2
enable_python_lttng_event $SESSION_NAME-2 $EVENT_NAME2
- start_lttng_tracing $SESSION_NAME-2
+ start_lttng_tracing_ok $SESSION_NAME-2
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
create_lttng_session_ok $SESSION_NAME $TRACE_PATH/first-sess
enable_python_lttng_event $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app_background 0 1
create_lttng_session_ok $SESSION_NAME $TRACE_PATH/second-sess
enable_python_lttng_event $SESSION_NAME $EVENT_NAME2
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay
run_app_background 0 1
create_lttng_session_ok $SESSION_NAME $TRACE_PATH/$SESSION_NAME
# Enable all event with a filter.
enable_python_filter $SESSION_NAME '*' 'msg == "python-ev-test2 fired"'
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
# Enable first Logger but filter msg payload for the INFO one while
# triggering the debug and second TP.
enable_python_filter $SESSION_NAME $EVENT_NAME 'msg == "python-ev-test1 fired"'
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay, fire debug and second TP.
run_app 1 1
enable_python_lttng_event $SESSION_NAME $EVENT_NAME
enable_python_lttng_event $SESSION_NAME $EVENT_NAME2
disable_python_lttng_event $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
enable_python_lttng_event $SESSION_NAME $EVENT_NAME
disable_python_lttng_event $SESSION_NAME $EVENT_NAME
enable_python_lttng_event $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
enable_python_filter_loglevel_only $SESSION_NAME $BOGUS_EVENT_NAME "$FILTER" "INFO"
disable_python_lttng_event $SESSION_NAME $BOGUS_EVENT_NAME
enable_python_filter_loglevel_only $SESSION_NAME $BOGUS_EVENT_NAME "$FILTER" "INFO"
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
# Run 5 times with a 1 second delay and fire second TP.
run_app 0 1
enable_ust_lttng_event_per_chan $SESSION_NAME $EVENT_NAME $CHAN_NAME
enable_ust_lttng_event_per_chan $SESSION_NAME2 $EVENT_NAME3 $CHAN_NAME2
- start_lttng_tracing
+ start_lttng_tracing_ok
stop_lttng_tracing
- start_lttng_tracing
+ start_lttng_tracing_ok
stop_lttng_tracing
TODO="Validate trace output is coherent"
add_ust_lttng_context $SESSION_NAME $CHAN_NAME "perf:thread:page-fault"
- start_lttng_tracing
+ start_lttng_tracing_ok
$TESTAPP_BIN $NR_ITER $NR_USEC_WAIT >/dev/null 2>&1
{
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME
- start_lttng_tracing $SESSION_NAME
+ start_lttng_tracing_ok $SESSION_NAME
$TESTAPP_BIN $NR_ITER $NR_USEC_WAIT
ok $? "Traced application stopped."
enable_ust_lttng_event_ok $SESSION_NAME "$EVENT_NAME"
enable_ust_lttng_event_ok $SESSION_NAME "$EVENT_NAME2"
- start_lttng_tracing
+ start_lttng_tracing_ok
stop_lttng_tracing
TODO="Validate trace output is coherent"
check_sessiond
enable_ust_lttng_event_ok $SESSION_NAME-$a $EVENT_NAME
check_sessiond
- start_lttng_tracing $SESSION_NAME-$a
+ start_lttng_tracing_ok $SESSION_NAME-$a
check_sessiond
done
enable_ust_lttng_event_ok $SESSION_NAME-$a $EVENT_NAME
check_sessiond
check_relayd
- start_lttng_tracing $SESSION_NAME-$a
+ start_lttng_tracing_ok $SESSION_NAME-$a
check_sessiond
check_relayd
done
enable_ust_lttng_event_ok $SESSION_NAME-$a $EVENT_NAME
check_sessiond
check_relayd
- start_lttng_tracing $SESSION_NAME-$a
+ start_lttng_tracing_ok $SESSION_NAME-$a
check_sessiond
check_relayd
done
function start_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 start $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 start tracing for session: $sess_name"
else
fi
}
+function start_lttng_tracing_ok ()
+{
+ start_lttng_tracing 0 "$@"
+}
+
+function start_lttng_tracing_fail ()
+{
+ start_lttng_tracing 1 "$@"
+}
+
function stop_lttng_tracing ()
{
local sess_name=$1