Merge tag 'ntb-5.11' of git://github.com/jonmason/ntb
[linux/fpc-iii.git] / tools / perf / tests / shell / lib / probe.sh
blob51e3f60baba0c08a885ce1dc78aea1c80cce6607
1 # SPDX-License-Identifier: GPL-2.0
2 # Arnaldo Carvalho de Melo <acme@kernel.org>, 2017
4 skip_if_no_perf_probe() {
5 perf probe 2>&1 | grep -q 'is not a perf-command' && return 2
6 return 0
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 2
11 return 0