utils/trace: allow help display before sanity checks
This commit is contained in:
parent
451a5ed15b
commit
b2787140b4
|
@ -1,16 +1,6 @@
|
|||
#! /bin/sh
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
if test \! -d $EVL_TRACEDIR; then
|
||||
echo >&2 "no kernel support for tracing"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
if test \! -d $EVL_TRACEDIR/events/evl; then
|
||||
echo >&2 "no EVL core in kernel"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
usage() {
|
||||
echo >&2 "usage: $(basename $1) [-e [-s <buffer_size>]] [-d] [-p] [-f] [-h] [-c <cpu>] [-h]"
|
||||
}
|
||||
|
@ -60,6 +50,16 @@ if test x$help = xtrue; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if test \! -d $EVL_TRACEDIR; then
|
||||
echo >&2 "no kernel support for tracing"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
if test \! -d $EVL_TRACEDIR/events/evl; then
|
||||
echo >&2 "no EVL core in kernel"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
cd $EVL_TRACEDIR
|
||||
|
||||
if test x$enable = xtrue; then
|
||||
|
|
Loading…
Reference in New Issue