summaryrefslogtreecommitdiff
path: root/benchmarks/ezbench.d/gem_mmap.test
blob: 8d0d47882621f457e5982166fb570ce56a731f49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[ -e $IGT_BENCHMARKS/gem_mmap ] || return 1
sudo -n true || return 1

for i in cpu gtt wc; do
    for j in fault clear write read; do
        for k in none x y; do
            test_name="$test_name gem:mmap:$i:$j:$k"
            eval "gem:mmap:${i}:${j}:${k}_run() { sudo $IGT_BENCHMARKS/gem_mmap -m $i -d $j -t $k -r \$1 ; } "

        done
    done
done

test_exec_time=2