forked from luck/tmp_suning_uos_patched
5875cf4cd3
Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: https://lkml.kernel.org/n/tip-p0kg493z2m8qizjbdefzip1i@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
13 lines
329 B
Bash
13 lines
329 B
Bash
# SPDX-License-Identifier: GPL-2.0
|
|
# Arnaldo Carvalho de Melo <acme@kernel.org>, 2017
|
|
|
|
skip_if_no_perf_probe() {
|
|
perf probe 2>&1 | grep -q 'is not a perf-command' && return 2
|
|
return 0
|
|
}
|
|
|
|
skip_if_no_perf_trace() {
|
|
perf trace -h 2>&1 | grep -q -e 'is not a perf-command' -e 'trace command not available' && return 2
|
|
return 0
|
|
}
|