From 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 13 May 2024 10:30:14 +0000
Subject: [PATCH] modify sin led gpio
---
kernel/tools/perf/tests/shell/lib/probe.sh | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/kernel/tools/perf/tests/shell/lib/probe.sh b/kernel/tools/perf/tests/shell/lib/probe.sh
index 6293cc6..51e3f60 100644
--- a/kernel/tools/perf/tests/shell/lib/probe.sh
+++ b/kernel/tools/perf/tests/shell/lib/probe.sh
@@ -1,6 +1,12 @@
+# SPDX-License-Identifier: GPL-2.0
# 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
}
+
+skip_if_no_perf_trace() {
+ perf trace -h 2>&1 | grep -q -e 'is not a perf-command' -e 'trace command not available' && return 2
+ return 0
+}
--
Gitblit v1.6.2