summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf')
-rwxr-xr-xtools/perf/tests/shell/data_type_profiling.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/tests/shell/data_type_profiling.sh b/tools/perf/tests/shell/data_type_profiling.sh
index a230f5d4c42c..3ef72a10850d 100755
--- a/tools/perf/tests/shell/data_type_profiling.sh
+++ b/tools/perf/tests/shell/data_type_profiling.sh
@@ -4,6 +4,11 @@
set -e
+if ! perf test --list-workloads | grep -qw code_with_type ; then
+ echo "Skip: code_with_type workload not built in 'perf test'"
+ exit 2
+fi
+
# The logic below follows the same line as the annotate test, but looks for a
# data type profiling manifestation