Currently when not having lttng available, the perfcollect script is not usable.
Setting the -nolttng flag on startup doesn't help, as the usage of lttng wasn't guarded properly in the script.
This PR fixes this by first processing arguments and guarding the places where lttng is used.
Also fixes some trailing whitespace. If this disturbs your review append ?w=1 to the github URL to ignore.
Currently when not having lttng available, the perfcollect script is not usable. Setting the
-nolttng
flag on startup doesn't help, as the usage oflttng
wasn't guarded properly in the script.This PR fixes this by first processing arguments and guarding the places where
lttng
is used.Also fixes some trailing whitespace. If this disturbs your review append
?w=1
to the github URL to ignore.