modprobe lttng-test
test_kernel_local
test_kernel_streaming
- rmmod lttng-test
+ modprobe --remove lttng-test
test_ust_local
test_ust_streaming
{
modprobe lttng-test
test_kernel_raw
- rmmod lttng-test
+ modprobe --remove lttng-test
}
stop_lttng_sessiond
{
diag "*** Exiting ***"
stop_lttng_sessiond
- modprobe -r lttng-test lttng-clock-plugin-test lttng-clock
+ modprobe --remove lttng-test lttng-clock-plugin-test lttng-clock
full_cleanup
}
destroy_lttng_session_ok $SESSION_NAME
stop_lttng_sessiond
- modprobe -r lttng-test lttng-clock-plugin-test lttng-clock
+ modprobe --remove lttng-test lttng-clock-plugin-test lttng-clock
local TRACE_METADATA_FILE_PATH="$(find "$TRACE_PATH" -name metadata -type f)"
local TRACE_METADATA_DIR="$(dirname "$TRACE_METADATA_FILE_PATH")"
cut -d, -f1 | uniq | wc -l)
test $unique_timestamps_count -gt 1
ok $? "Unique event timestamps without clock override: $unique_timestamps_count expect >1"
- rmmod lttng-test
+ modprobe --remove lttng-test
stop_lttng_sessiond
# Test with clock override plugin.
stop_lttng_tracing_ok $SESSION_NAME
destroy_lttng_session_ok $SESSION_NAME
- rmmod lttng-test
stop_lttng_sessiond
- rmmod lttng-clock-plugin-test
- rmmod lttng-clock
+ modprobe --remove lttng-clock-plugin-test lttng-clock lttng-test
# Use Babeltrace with "-n all" to give a comma separated list for
# easy extraction of timestamps.
function signal_cleanup()
{
diag "*** Exiting ***"
- modprobe -r lttng-test
+ modprobe --remove lttng-test
full_cleanup
}
rm -rf $TRACE_PATH
- modprobe -r lttng-test
+ modprobe --remove lttng-test
stop_lttng_sessiond
}
function signal_cleanup ()
{
stop_lttng_sessiond
- modprobe -r lttng-test
+ modprobe --remove lttng-test
full_cleanup
}
clean_path $TRACE_PATH
done
- rmmod lttng-test
+ modprobe --remove lttng-test
stop_lttng_sessiond
stop_lttng_relayd
i=$(( i + 2 ))
done
- rmmod lttng-test
+ modprobe --remove lttng-test
}
stop_lttng_sessiond
${fct_test}
done
- rmmod lttng-test
+ modprobe --remove lttng-test
stop_lttng_sessiond
unset LTTNG_HOME
wait $APP_PID 2> /dev/null
- rmmod lttng-test
+ modprobe --remove lttng-test
rm -rf ${consumerd_pipe[@]} 2> /dev/null
}
wait $generator_pid 2> /dev/null
rm -rf ${TESTAPP_STATE_FILE} 2> /dev/null
- rmmod lttng-test
+ modprobe --remove lttng-test
}
function test_on_register_evaluation_ust ()
wait $generator_pid 2> /dev/null
rm -rf ${TESTAPP_STATE_FILE} 2> /dev/null
- rmmod lttng-test
+ modprobe --remove lttng-test
}
function test_on_register_evaluation ()
${fct_test}
done
- rmmod lttng-test
+ modprobe --remove lttng-test
stop_lttng_sessiond
stop_lttng_relayd
}
${fct_test}
done
- rmmod lttng-test
+ modprobe --remove lttng-test
stop_lttng_sessiond
}
clean_path $TRACE_PATH
done
- rmmod lttng-test
+ modprobe --remove lttng-test
stop_lttng_sessiond
stop_lttng_relayd
}
test_event_tracker kernel 1 "${EVENT_NAME}" "--pid --all"
test_event_pid_tracker kernel 1 "${EVENT_NAME}"
- rmmod lttng-test
+ modprobe --remove lttng-test
ok $? "Unloading lttng-test module"
}
test_event_wildcard kernel 1 'lttng*test*filter*event'
test_event_wildcard kernel 1 '*lttng*test*filter*event*'
- rmmod lttng-test
+ modprobe --remove lttng-test
}
stop_lttng_sessiond
if [ -n "$modules" ]; then
diag "Unloading all LTTng modules"
- modprobe -r "$modules"
+ modprobe --remove "$modules"
fi
fi
fi