X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils%2Futils.sh;h=da23f7abeb1780191b86e41a0a88219fd32eeb56;hb=9e136324e6ac723dd66fcec57d90843ab16eaedf;hp=35207929eca6afd63394c63a7f7d556c579f3489;hpb=db7b260cfaefc5c9065650ac21bfe21c2e401192;p=lttng-tools.git diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index 35207929e..da23f7abe 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -86,6 +86,16 @@ function randstring() echo } +# Return the number of _configured_ CPUs. +function conf_proc_count() +{ + getconf _NPROCESSORS_CONF + if [ $? -ne 0 ]; then + diag "Failed to get the number of configured CPUs" + fi + echo +} + function enable_kernel_lttng_event { local expected_to_fail="$1" @@ -362,7 +372,7 @@ function start_lttng_sessiond_opt() if [ -z $(pgrep --full lt-$SESSIOND_BIN) ]; then # Have a load path ? if [ -n "$load_path" ]; then - $DIR/../src/bin/lttng-sessiond/$SESSIOND_BIN --load "$1" --background --consumerd32-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" + $DIR/../src/bin/lttng-sessiond/$SESSIOND_BIN --load "$load_path" --background --consumerd32-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" else $DIR/../src/bin/lttng-sessiond/$SESSIOND_BIN --background --consumerd32-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" fi