You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
902 B

[ -e $IGT_BENCHMARKS/gem_exec_nop ] || return 1
sudo -n true || return 1
for ring in rcs bcs vcs vecs all; do
while read label mode; do
name="gem:exec:$label:$ring:single"
test_name="$test_name $name"
eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_exec_nop $mode -s -e $ring -r \$1 ; }"
name="gem:exec:$label:$ring:single:forked"
test_name="$test_name $name"
eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_exec_nop $mode -f -s -e $ring -r \$1 ; }"
name="gem:exec:$label:$ring:continuous"
test_name="$test_name $name"
eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_exec_nop $mode -e $ring -r \$1 ; }"
name="gem:exec:$label:$ring:continuous:forked"
test_name="$test_name $name"
eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_exec_nop $mode -f -e $ring -r \$1 ; }"
done<<MODES
nop
write -W
read -R
rw -R -W
MODES
done
test_exec_time=3
test_invert=1