X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Futils%2Futils.sh;h=92ed7b354bc492649967d249b53a695fdabf559f;hb=9c8a396496a28702730192ae1ded06105c54c5dc;hp=c88387dc76d12808dcd7403039a8f36c58ea89e6;hpb=ef96836ca0f16e7afe7b815cc3a3752fb8ea0399;p=lttng-tools.git diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index c88387dc7..92ed7b354 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -125,6 +125,16 @@ function conf_proc_count() echo } +# Check if base lttng-modules are present. +# Bail out on failure +function validate_lttng_modules_present () +{ + modprobe -n lttng-tracer 2>/dev/null + if [ $? -ne 0 ]; then + BAIL_OUT "LTTng modules not detected." + fi +} + function enable_kernel_lttng_event { local withtap="$1"