1[ -e $IGT_BENCHMARKS/gem_mmap ] || return 1 2sudo -n true || return 1 3 4for i in cpu gtt wc; do 5 for j in fault clear write read; do 6 for k in none x y; do 7 test_name="$test_name gem:mmap:$i:$j:$k" 8 eval "gem:mmap:${i}:${j}:${k}_run() { sudo $IGT_BENCHMARKS/gem_mmap -m $i -d $j -t $k -r \$1 ; } " 9 10 done 11 done 12done 13 14test_exec_time=2 15