summaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/shell/lib/probe.sh
diff options
context:
space:
mode:
authorMark Brown2017-09-19 15:12:47 +0200
committerMark Brown2017-09-19 15:12:47 +0200
commite9331ee9b164d58b4dd0abc882ba7e23d2f404b3 (patch)
tree903d078e53a59ed65708193f2486ad0b9a8109d8 /tools/perf/tests/shell/lib/probe.sh
parentASoC: rockchip: Add dapm route for HDMI (diff)
parentLinux 4.14-rc1 (diff)
downloadkernel-qcow2-linux-e9331ee9b164d58b4dd0abc882ba7e23d2f404b3.tar.gz
kernel-qcow2-linux-e9331ee9b164d58b4dd0abc882ba7e23d2f404b3.tar.xz
kernel-qcow2-linux-e9331ee9b164d58b4dd0abc882ba7e23d2f404b3.zip
Merge tag 'v4.14-rc1' into asoc-rockchip
Linux 4.14-rc1
Diffstat (limited to 'tools/perf/tests/shell/lib/probe.sh')
-rw-r--r--tools/perf/tests/shell/lib/probe.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/tests/shell/lib/probe.sh b/tools/perf/tests/shell/lib/probe.sh
new file mode 100644
index 000000000000..6293cc660947
--- /dev/null
+++ b/tools/perf/tests/shell/lib/probe.sh
@@ -0,0 +1,6 @@
+# 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
+}