Lines Matching full:then
19 if [ -n "$PERF" ] ; then
23 if [ -z "$PERF" ] ; then
27 if [ ! -x "$PERF" ] ; then
39 if [ $EUID -eq 0 ] ; then
95 if [ $EUID -ne 0 ] ; then
100 if [ -z "$SUDO_USER" ] ; then
113 if [ -n "$SUDO_GID" ] ; then
124 if [ $EUID -eq 0 ] ; then
136 if [ -n "$PERMISSIONS_OK" ] ; then
145 if [ $EUID -ne 0 ] ; then
147 if [ "$(cat /proc/sys/kernel/kptr_restrict)" -ne 0 ] ; then
151 …" | grep -q ' -a \|^-a \| -a$\|^-a$\| --all-cpus \|^--all-cpus \| --all-cpus$\|^--all-cpus$' ; then
155 if echo "${PERF_OPTIONS[@]}" | grep -q 'intel_pt\|intel_bts\| -I\|^-I' ; then
156 if [ "$(cat /proc/sys/kernel/perf_event_paranoid)" -gt -1 ] ; then
160 …PERF_OPTIONS[@]}" | grep -q ' --per-thread \|^--per-thread \| --per-thread$\|^--per-thread$' ; then
162 elif echo "${PERF_OPTIONS[@]}" | grep -q ' -t \|^-t \| -t$\|^-t$' ; then
164 elif [ ! -r /sys/kernel/debug -o ! -x /sys/kernel/debug ] ; then
170 if [ -z "$1" ] ; then
175 if [ -e "$PERF_DATA_DIR" ] ; then
187 if rmdir "$PERF_DATA_DIR" > /dev/null 2>/dev/null ; then
204 if [ "$1" = "fix_buildid_cache_permissions" ] ; then
214 if [ -z "$PERF_SUB_COMMAND" ] ; then
218 if [ -z "$PERF_DATA_DIR" ] ; then
228 if [ "$1" != "--" ] ; then