drm/nouveau: consume the return of large GSP message
[drm/drm-misc.git] / tools / perf / tests / shell / stat_metrics_values.sh
blob279f19c5919ae47f2eea8809b6e10d5cd6cd03b5
1 #!/bin/bash
2 # perf metrics value validation
3 # SPDX-License-Identifier: GPL-2.0
5 shelldir=$(dirname "$0")
6 # shellcheck source=lib/setup_python.sh
7 . "${shelldir}"/lib/setup_python.sh
9 grep -q GenuineIntel /proc/cpuinfo || { echo Skipping non-Intel; exit 2; }
11 pythonvalidator=$(dirname $0)/lib/perf_metric_validation.py
12 rulefile=$(dirname $0)/lib/perf_metric_validation_rules.json
13 tmpdir=$(mktemp -d /tmp/__perf_test.program.XXXXX)
14 workload="perf bench futex hash -r 2 -s"
16 # Add -debug, save data file and full rule file
17 echo "Launch python validation script $pythonvalidator"
18 echo "Output will be stored in: $tmpdir"
19 $PYTHON $pythonvalidator -rule $rulefile -output_dir $tmpdir -wl "${workload}"
20 ret=$?
21 rm -rf $tmpdir
22 if [ $ret -ne 0 ]; then
23 echo "Metric validation return with erros. Please check metrics reported with errors."
25 exit $ret