summaryrefslogtreecommitdiff
path: root/benchmarks/ezbench.d/gem_exec_nop.test
blob: 1c3c4b56098b6813c87507e8330ac39e3a79a93e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[ -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