blob: 1d95335de438245aae284197f54059f3f63e2ff8 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
[ -e $IGT_BENCHMARKS/gem_busy ] || return 1
sudo -n true || return 1
for ring in rcs bcs vcs vecs all; do
while read label mode; do
name="gem:busy:$label:$ring"
test_name="$test_name $name"
eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_busy $mode -e $ring -r \$1 ; }"
name="gem:busy:$label:$ring:forked"
test_name="$test_name $name"
eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_busy $mode -f -e $ring -r \$1 ; }"
name="gem:busy:$label:$ring:wait"
test_name="$test_name $name"
eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_busy $mode -w -e $ring -r \$1 ; }"
name="gem:busy:$label:$ring:wait:forked"
test_name="$test_name $name"
eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_busy $mode -w -f -e $ring -r \$1 ; }"
name="gem:busy:$label:$ring:dmabuf"
test_name="$test_name $name"
eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_busy $mode -d -e $ring -r \$1 ; }"
name="gem:busy:$label:$ring:dmabuf:forked"
test_name="$test_name $name"
eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_busy $mode -d -f -e $ring -r \$1 ; }"
name="gem:busy:$label:$ring:sync-file"
test_name="$test_name $name"
eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_busy $mode -s -e $ring -r \$1 ; }"
name="gem:busy:$label:$ring:sync-file:forked"
test_name="$test_name $name"
eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_busy $mode -s -f -e $ring -r \$1 ; }"
done<<MODES
read
write -W
idle -I
MODES
done
test_exec_time=3
test_invert=1
|