kernel/tools/perf/tests/shell/lib/probe.sh
.. .. @@ -1,6 +1,12 @@ 1 +# SPDX-License-Identifier: GPL-2.01 2 # Arnaldo Carvalho de Melo <acme@kernel.org>, 2017 2 3 3 4 skip_if_no_perf_probe() { 4 5 perf probe 2>&1 | grep -q 'is not a perf-command' && return 2 5 6 return 0 6 7 } 8 +9 +skip_if_no_perf_trace() {10 + perf trace -h 2>&1 | grep -q -e 'is not a perf-command' -e 'trace command not available' && return 211 + return 012 +}