]> Git Repo - J-linux.git/blob - tools/perf/tests/shell/lib/probe.sh
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / tools / perf / tests / shell / lib / probe.sh
1 #!/bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Arnaldo Carvalho de Melo <[email protected]>, 2017
4
5 skip_if_no_perf_probe() {
6         perf probe 2>&1 | grep -q 'is not a perf-command' && return 2
7         return 0
8 }
9
10 skip_if_no_perf_trace() {
11         perf trace -h 2>&1 | grep -q -e 'is not a perf-command' -e 'trace command not available' && return 2
12         return 0
13 }
This page took 0.02792 seconds and 4 git commands to generate.