validate_trace "sched_switch" $TRACE_PATH
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
validate_trace "sched_process_exit" $TRACE_PATH
validate_trace "sched_process_free" $TRACE_PATH
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
validate_trace "sched_switch" $TRACE_PATH
validate_trace "sched_process_exit" $TRACE_PATH
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
# ensure trace only contains those.
validate_trace_only_exp "-e syscall_entry_$EVENT_NAME: -e compat_syscall_entry_$EVENT_NAME: -e syscall_exit_$EVENT_NAME: -e compat_syscall_exit_$EVENT_NAME:" $TRACE_PATH
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
# ensure trace only contains those.
validate_trace_only_exp "-e syscall_entry_$EVENT_NAME: -e compat_syscall_entry_$EVENT_NAME: -e syscall_exit_$EVENT_NAME: -e compat_syscall_exit_$EVENT_NAME: -e syscall_entry_$EVENT_NAME2: -e compat_syscall_entry_$EVENT_NAME2: -e syscall_exit_$EVENT_NAME2: -e compat_syscall_exit_$EVENT_NAME2:" $TRACE_PATH
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
# ensure trace only contains those.
validate_trace_only_exp "-e syscall_entry_open: -e compat_syscall_entry_open: -e syscall_exit_open: -e compat_syscall_exit_open:" $TRACE_PATH
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
# ensure trace only contains those.
validate_trace_only_exp "-e syscall_entry_open: -e compat_syscall_entry_open: -e syscall_exit_open: -e compat_syscall_exit_open: -e syscall_entry_close: -e compat_syscall_entry_close: -e syscall_exit_close: -e compat_syscall_exit_close:" $TRACE_PATH
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
validate_trace_exp "-e syscall_exit_close: -e compat_syscall_exit_close:" $TRACE_PATH
# trace may contain other syscalls.
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
validate_trace_exp "-e syscall_entry_close: -e compat_syscall_entry_close:" $TRACE_PATH
validate_trace_exp "-e syscall_exit_close: -e compat_syscall_exit_close:" $TRACE_PATH
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
validate_trace_exp "-e syscall_entry_execve: -e compat_syscall_entry_execve:" $TRACE_PATH
validate_trace_exp "-e syscall_exit_execve: -e compat_syscall_exit_execve:" $TRACE_PATH
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
# ensure nothing has been traced.
validate_trace_empty $TRACE_PATH
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
validate_trace_exp "-e syscall_exit_close: -e compat_syscall_exit_close:" $TRACE_PATH
# trace may contain other syscalls.
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
# ensure nothing has been traced.
validate_trace_empty $TRACE_PATH
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
# ensure nothing has been traced.
validate_trace_empty $TRACE_PATH
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
# ensure nothing has been traced.
validate_trace_empty $TRACE_PATH
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
# ensure trace only contains those.
validate_trace_only_exp "-e syscall_entry_open: -e compat_syscall_entry_open: -e syscall_exit_open: -e compat_syscall_exit_open:" $TRACE_PATH
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
# Second disable succeeds too, due to enabler semantic.
lttng_disable_kernel_syscall_ok $SESSION_NAME "open"
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
# Second disable succeeds too, due to enabler semantic.
lttng_disable_kernel_syscall_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
# semantic.
lttng_enable_kernel_syscall_ok $SESSION_NAME "thissyscallcannotexist"
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
# Enabling an event already enabled succeeds, due to enabler semantic.
lttng_enable_kernel_syscall_ok $SESSION_NAME "open"
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
# Disabling an event already disabled fails.
lttng_disable_kernel_syscall_fail $SESSION_NAME "open"
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
# it knowns about. Disable all succeeds if it finds no match.
lttng_disable_kernel_syscall_ok $SESSION_NAME "-a" $CHANNEL_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
lttng_enable_kernel_channel_ok $SESSION_NAME $CHANNEL_NAME
lttng_disable_kernel_syscall_fail $SESSION_NAME "open" $CHANNEL_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
stop_lttng_tracing_ok $SESSION_NAME
# Destroy session
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
stats=`babeltrace $trace_path | $STATS_BIN --tracepoint $EV_EXCLUDE_NAME | grep -v index`
if [ ! -z "$stats" ]; then
enable_ust_lttng_event_filter $SESSION_NAME $EVENT_NAME "$test_invalid_filter"
# Destroy session
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
}
function test_bytecode_limit
enable_ust_lttng_event_filter $SESSION_NAME $EVENT_NAME "$BYTECODE_LIMIT"
# Destroy session
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
}
plan_tests $NUM_TESTS
fi
# Destroy session
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
return 0
}
stop_lttng_tracing_ok $SESSION_NAME
# Destroy session
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
stats=`babeltrace $trace_path | $STATS_BIN --tracepoint $EVENT_NAME`
create_lttng_session_no_output $SESSION_NAME
enable_ust_lttng_event_ok $SESSION_NAME $UST_EVENT_NAME $CHANNEL_NAME
start_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Check health status
$CURDIR/$HEALTH_CHECK_BIN > ${STDOUT_PATH} 2> ${STDERR_PATH}
create_lttng_session_no_output $SESSION_NAME
lttng_enable_kernel_event $SESSION_NAME $KERNEL_EVENT_NAME $CHANNEL_NAME
start_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Check health status
$CURDIR/$HEALTH_CHECK_BIN > ${STDOUT_PATH} 2> ${STDERR_PATH}
function clean_live_tracing()
{
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
}
# Need root access for kernel tracing.
function clean_live_tracing()
{
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
}
start_lttng_sessiond
is_command_success $OUTPUT_DEST true
OUTPUT_DEST=$DEVNULL
- destroy_lttng_session $session_name
+ destroy_lttng_session_ok $session_name
}
function test_destroy_session ()
done
OUTPUT_DEST=$OUTPUT_DIR/$OUTPUT_FILE
- destroy_lttng_session ${session_name[0]}
+ destroy_lttng_session_ok ${session_name[0]}
$XML_VALIDATE $OUTPUT_DEST
ok $? "MI test: destroy session ${session_name[0]} xsd validation"
ok $? "Mi test: $num / 2 sessions discovered"
#Verify that if no session is present command fail and mi report it.
- destroy_lttng_session ${session_name[0]} 1
+ destroy_lttng_session_fail ${session_name[0]}
$XML_VALIDATE $OUTPUT_DEST
ok $? "MI test: failing destroy session ${session_name[0]} xsd validation"
extract_xml $OUTPUT_DEST $XPATH_COMMAND_SUCCESS result
lttng_load "-i $CURDIR/$SESSION_NAME.lttng"
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
}
function test_complex_load()
else
fail "Disabled event is loaded in disabled state"
fi
- destroy_lttng_session $sess
+ destroy_lttng_session_ok $sess
stop_lttng_relayd_nocheck
}
lttng_load "-a -i $CURDIR"
- destroy_lttng_session $SESSION_NAME
- destroy_lttng_session "$SESSION_NAME-complex"
+ destroy_lttng_session_ok $SESSION_NAME
+ destroy_lttng_session_ok "$SESSION_NAME-complex"
stop_lttng_relayd_nocheck
}
# This one should succeed
lttng_load "-f -i $CURDIR $SESSION_NAME"
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
}
start_lttng_sessiond
is_session_saved $TRACE_PATH $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
}
function test_basic_save_all()
is_session_saved $TRACE_PATH $SESSION_NAME-2
is_session_saved $TRACE_PATH $SESSION_NAME-3
- destroy_lttng_session $SESSION_NAME-1
- destroy_lttng_session $SESSION_NAME-2
- destroy_lttng_session $SESSION_NAME-3
+ destroy_lttng_session_ok $SESSION_NAME-1
+ destroy_lttng_session_ok $SESSION_NAME-2
+ destroy_lttng_session_ok $SESSION_NAME-3
}
function test_overwrite()
is_session_saved $TRACE_PATH $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Create a new session with same name so we can force the overwrite
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
is_session_saved $TRACE_PATH $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
}
start_lttng_sessiond
lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
lttng_snapshot_record $SESSION_NAME
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test
validate_trace $EVENT_NAME $TRACE_PATH/
stop_lttng_tracing_ok $SESSION_NAME
lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
lttng_snapshot_record $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test
validate_trace $EVENT_NAME $TRACE_PATH/
fi
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
}
function test_kernel_1000_local_snapshots ()
fi
done
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
}
plan_tests $NUM_TESTS
fi
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
return 0
}
snapshot_add_output $SESSION_NAME "net://localhost"
lttng_snapshot_record $SESSION_NAME
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test
validate_trace $EVENT_NAME $TRACE_PATH/$HOSTNAME/snapshot-1*
out=$?
snapshot_add_output $SESSION_NAME "net://localhost" $name
lttng_snapshot_record $SESSION_NAME
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
if ls $TRACE_PATH/$HOSTNAME/$name* &> /dev/null; then
ok 0 "Custom name snapshot exists"
fi
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
stop_test_apps
snapshot_add_output $SESSION_NAME "net://localhost"
lttng_snapshot_record $SESSION_NAME
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test
validate_trace $EVENT_NAME $TRACE_PATH/$HOSTNAME/snapshot-1*
out=$?
snapshot_add_output $SESSION_NAME "-C tcp://localhost:5342 -D tcp://localhost:5343"
lttng_snapshot_record $SESSION_NAME
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test
validate_trace $EVENT_NAME $TRACE_PATH/$HOSTNAME/snapshot-1*
out=$?
snapshot_add_output $SESSION_NAME "net://localhost" $name
lttng_snapshot_record $SESSION_NAME
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
if ls $TRACE_PATH/$HOSTNAME/$name* &> /dev/null; then
ok 0 "Custom name snapshot exists"
ok $? "Snapshot named ${output_names[1]} present in list-output listing"
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
}
function test_ust_local_snapshot ()
lttng_snapshot_record $SESSION_NAME
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test
validate_trace $EVENT_NAME $TRACE_PATH/
pass "Tracefiles size sum validation"
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test
validate_trace $EVENT_NAME $TRACE_PATH/
ok $? "Start application to trace"
lttng_snapshot_record $SESSION_NAME
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test
validate_trace $LM_EVENT $TRACE_PATH/
lttng_snapshot_record $SESSION_NAME
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test
validate_trace $EVENT_NAME $TRACE_PATH/
lttng_snapshot_record $SESSION_NAME
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test
validate_trace $EVENT_NAME $TRACE_PATH/
fi
done
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
stop_test_apps
}
wait
pass "waiting done"
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
validate_event_count
}
# Give a second
sleep 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
}
# Deactivated since this feature is not yet available where we can enable
# Give a second
sleep 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
}
plan_tests $NUM_TESTS
wait
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -f ${file_sync_after_first}
rm -f ${file_sync_before_last}
}
done
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Wait for the applications started in background
wait
stop_lttng_tracing_ok $session_name
- destroy_lttng_session $session_name
+ destroy_lttng_session_ok $session_name
# Validate tracing dir
stop_lttng_tracing_ok $session_name
- destroy_lttng_session $session_name
+ destroy_lttng_session_ok $session_name
# Validate file size, each one shall be no larger than the
# specified size limit
ok $? "Traced application stopped."
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
wait
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -f ${file_sync_after_first}
rm -f ${file_sync_before_last}
wait
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
trace_match_only $EVENT_NAME $[NR_ITER * 5] $TRACE_PATH
pass "Waiting done"
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
for i in `seq 1 5`; do
rm -f ${file_sync_after_first}_${i}
wait
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
wait
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -f ${file_sync_after_first}
rm -f ${file_sync_before_last}
trace_match_only $EVENT_NAME $[NR_ITER * 5] $TRACE_PATH
out=$?
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
return $out
}
pass "Wait for applications to end"
stop_lttng_tracing_ok $SESSION_NAME
-destroy_lttng_session $SESSION_NAME
+destroy_lttng_session_ok $SESSION_NAME
stop_lttng_sessiond
wait
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -f ${file_sync_after_first}
rm -f ${file_sync_before_last}
run_app
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
run_app
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
run_app
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting 0 events.
trace_match_only $EVENT_NAME 0 $TRACE_PATH
run_app
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
run_app 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events times two.
trace_match_only $EVENT_NAME $(($NR_ITER * 2)) $TRACE_PATH
run_app 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events times two.
trace_match_only $EVENT_NAME $(($NR_ITER * 2)) $TRACE_PATH
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
+ destroy_lttng_session_ok $SESSION_NAME-1
+ destroy_lttng_session_ok $SESSION_NAME-2
# Expecting 6 events being the main event plus the second tp.
trace_match_only $EVENT_NAME $(($NR_ITER + 1)) $TRACE_PATH/$SESSION_NAME-1
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
+ destroy_lttng_session_ok $SESSION_NAME-1
+ destroy_lttng_session_ok $SESSION_NAME-2
# Validate test. Expecting one event of the second TP.
trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME-1
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
+ destroy_lttng_session_ok $SESSION_NAME-1
+ destroy_lttng_session_ok $SESSION_NAME-2
# Validate test. Expecting NO event of the first TP.
trace_match_only $EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME-1
run_app 0 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting NO event of the first TP and second TP.
trace_match_only $EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME
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
+ destroy_lttng_session_ok $SESSION_NAME-1
+ destroy_lttng_session_ok $SESSION_NAME-2
# Validate test. Expecting all events of first TP
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME-1
wait
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting at least one event num 1
validate_trace $EVENT_NAME $TRACE_PATH/first-sess
wait
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting only one event num 2
trace_match_only $EVENT_NAME2 1 $TRACE_PATH/second-sess
run_app 0 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting one event of the second TP only.
trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME
run_app 1 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting NR_ITER event of the main INFO tp.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME
run_app 0 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting one event of the second TP only.
trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME
run_app 0 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting NR_ITER event of the main INFO tp.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME
run_app 0 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting no events.
trace_match_only $ALL_EVENTS 0 $TRACE_PATH/$SESSION_NAME
wait
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -f ${file_sync_after_first}
rm -f ${file_sync_before_last}
run_app
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
run_app
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
run_app
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting 0 events.
trace_match_only $EVENT_NAME 0 $TRACE_PATH
run_app
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
run_app 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events times two.
trace_match_only $EVENT_NAME $(($NR_ITER * 2)) $TRACE_PATH
run_app 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events times two.
trace_match_only $EVENT_NAME $(($NR_ITER * 2)) $TRACE_PATH
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
+ destroy_lttng_session_ok $SESSION_NAME-1
+ destroy_lttng_session_ok $SESSION_NAME-2
# Expecting 6 events being the main event plus the second tp.
trace_match_only $EVENT_NAME $(($NR_ITER + 1)) $TRACE_PATH/$SESSION_NAME-1
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
+ destroy_lttng_session_ok $SESSION_NAME-1
+ destroy_lttng_session_ok $SESSION_NAME-2
# Validate test. Expecting one event of the second TP.
trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME-1
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
+ destroy_lttng_session_ok $SESSION_NAME-1
+ destroy_lttng_session_ok $SESSION_NAME-2
# Validate test. Expecting NO event of the first TP.
trace_match_only $EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME-1
run_app 0 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting NO event of the first TP and second TP.
trace_match_only $EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME
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
+ destroy_lttng_session_ok $SESSION_NAME-1
+ destroy_lttng_session_ok $SESSION_NAME-2
# Validate test. Expecting all events of first TP
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME-1
wait
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting at least one event num 1
validate_trace $EVENT_NAME $TRACE_PATH/first-sess
wait
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting only one event num 2
trace_match_only $EVENT_NAME2 1 $TRACE_PATH/second-sess
run_app 0 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting one event of the second TP only.
trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME
run_app 1 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting NR_ITER event of the main INFO tp.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME
run_app 0 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting one event of the second TP only.
trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME
run_app 0 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting NR_ITER event of the main INFO tp.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME
run_app 0 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting no events.
trace_match_only $ALL_EVENTS 0 $TRACE_PATH/$SESSION_NAME
./$CURDIR/$BIN_NAME >/dev/null 2>&1
stop_lttng_tracing_ok $SESSION_NAME
-destroy_lttng_session $SESSION_NAME
+destroy_lttng_session_ok $SESSION_NAME
stop_lttng_sessiond
for i in `seq 0 3`; do
stop_lttng_tracing_ok "$SESSION_NAME-$i"
- destroy_lttng_session "$SESSION_NAME-$i"
+ destroy_lttng_session_ok "$SESSION_NAME-$i"
out=$(babeltrace "$TRACE_PATH/$i" | grep "$EVENT_NAMEi$i" | wc -l)
if [ $out -ne $NR_ITER ]; then
fail "Trace validation of $SESSION_NAME-$i"
# just that they registered to sessiond (above).
stop_lttng_tracing_ok $SESSION_NAME
-destroy_lttng_session $SESSION_NAME
+destroy_lttng_session_ok $SESSION_NAME
#TODO: add trace validation.
# Execute test
${TESTS[$i]}
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
wait ${p} 2>/dev/null
done
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
wait_trace_apps
done
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
wait_trace_apps
wait ${p} 2>/dev/null
done
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
wait_trace_apps
wait ${p} 2>/dev/null
done
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
wait_trace_apps
wait
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
run_app
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
run_app
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
run_app
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting 0 events.
trace_match_only $EVENT_NAME 0 $TRACE_PATH
run_app
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
run_app 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events times two.
trace_match_only $EVENT_NAME $(($NR_ITER * 2)) $TRACE_PATH
run_app 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting all events times two.
trace_match_only $EVENT_NAME $(($NR_ITER * 2)) $TRACE_PATH
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
+ destroy_lttng_session_ok $SESSION_NAME-1
+ destroy_lttng_session_ok $SESSION_NAME-2
# Expecting NR_ITER events being the main event and the second tp one.
trace_matches $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME-1
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
+ destroy_lttng_session_ok $SESSION_NAME-1
+ destroy_lttng_session_ok $SESSION_NAME-2
# Validate test. Expecting one event of the second TP.
trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME-1
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
+ destroy_lttng_session_ok $SESSION_NAME-1
+ destroy_lttng_session_ok $SESSION_NAME-2
# Validate test. Expecting NO event of the first TP.
trace_match_only $EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME-1
run_app 0 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting NO event of the first TP and second TP.
trace_match_only $EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME
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
+ destroy_lttng_session_ok $SESSION_NAME-1
+ destroy_lttng_session_ok $SESSION_NAME-2
# Validate test. Expecting all events of first TP
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME-1
wait
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting at least one event num 1
validate_trace $EVENT_NAME $TRACE_PATH/first-sess
wait
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting only one event num 2
trace_match_only $EVENT_NAME2 1 $TRACE_PATH/second-sess
run_app 0 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting one event of the second TP only.
trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME
run_app 1 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting NR_ITER event of the main INFO tp.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME
run_app 0 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting one event of the second TP only.
trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME
run_app 0 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting NR_ITER event of the main INFO tp.
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME
run_app 0 1
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
# Validate test. Expecting no events.
trace_match_only $ALL_EVENTS 0 $TRACE_PATH/$SESSION_NAME
ok 0 "Validate trace"
unset TODO
- destroy_lttng_session $SESSION_NAME2
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME2
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
stop_lttng_tracing_ok
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
validate_trace "perf_thread_page_fault" $TRACE_PATH
rm -rf $TRACE_PATH
ok $? "Traced application stopped."
stop_lttng_tracing_ok $SESSION_NAME
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
ok 0 "Validate trace"
unset TODO
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
rm -rf $TRACE_PATH
}
for a in $(seq 1 $NR_SESSION); do
stop_lttng_tracing_ok $SESSION_NAME-$a
check_sessiond
- destroy_lttng_session $SESSION_NAME-$a
+ destroy_lttng_session_ok $SESSION_NAME-$a
check_sessiond
done
done
stop_lttng_tracing_ok $SESSION_NAME-$a
check_sessiond
check_relayd
- destroy_lttng_session $SESSION_NAME-$a
+ destroy_lttng_session_ok $SESSION_NAME-$a
check_sessiond
check_relayd
done
stop_lttng_tracing_ok $SESSION_NAME-$a
check_sessiond
check_relayd
- destroy_lttng_session $SESSION_NAME-$a
+ destroy_lttng_session_ok $SESSION_NAME-$a
check_sessiond
check_relayd
done
function destroy_lttng_session ()
{
- local sess_name=$1
- local expected_to_fail=$2
+ local expected_to_fail=$1
+ local sess_name=$2
$TESTDIR/../src/bin/lttng/$LTTNG_BIN destroy $sess_name >$OUTPUT_DEST
ret=$?
fi
}
+function destroy_lttng_session_ok ()
+{
+ destroy_lttng_session 0 "$@"
+
+}
+
+function destroy_lttng_session_fail ()
+{
+ destroy_lttng_session 1 "$@"
+}
+
+
function destroy_lttng_sessions ()
{
$TESTDIR/../src/bin/lttng/$LTTNG_BIN destroy --all >$OUTPUT_DEST