1 #!/bin/bash << 2 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 3 # Arnaldo Carvalho de Melo <acme@kernel.org>, 2 2 # Arnaldo Carvalho de Melo <acme@kernel.org>, 2017 4 3 5 skip_if_no_perf_probe() { 4 skip_if_no_perf_probe() { 6 perf probe 2>&1 | grep -q 'is not a pe 5 perf probe 2>&1 | grep -q 'is not a perf-command' && return 2 7 return 0 6 return 0 8 } 7 } 9 8 10 skip_if_no_perf_trace() { 9 skip_if_no_perf_trace() { 11 perf trace -h 2>&1 | grep -q -e 'is no 10 perf trace -h 2>&1 | grep -q -e 'is not a perf-command' -e 'trace command not available' && return 2 12 return 0 11 return 0 13 } 12 }
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.