2015-12-03 21:30:38 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -xe
|
|
|
|
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
2017-04-04 23:20:16 +00:00
|
|
|
rootdir=$(readlink -f $testdir/../../..)
|
2015-12-03 21:30:38 +00:00
|
|
|
source $rootdir/scripts/autotest_common.sh
|
|
|
|
|
|
|
|
timing_enter ioat
|
|
|
|
|
|
|
|
timing_enter perf
|
2016-08-19 17:34:06 +00:00
|
|
|
$rootdir/examples/ioat/perf/perf -t 1
|
2015-12-03 21:30:38 +00:00
|
|
|
timing_exit perf
|
|
|
|
|
|
|
|
timing_enter verify
|
2016-08-19 17:34:06 +00:00
|
|
|
$rootdir/examples/ioat/verify/verify -t 1
|
2015-12-03 21:30:38 +00:00
|
|
|
timing_exit verify
|
|
|
|
|
2017-01-23 23:38:35 +00:00
|
|
|
if [ `uname` = Linux ]; then
|
|
|
|
timing_enter kperf
|
|
|
|
$rootdir/scripts/setup.sh reset
|
|
|
|
insmod $rootdir/examples/ioat/kperf/kmod/dmaperf.ko
|
|
|
|
$rootdir/examples/ioat/kperf/ioat_kperf -n 4 -q 4 -s 12 -t 32
|
|
|
|
rmmod dmaperf.ko
|
|
|
|
$rootdir/scripts/setup.sh
|
|
|
|
timing_exit kperf
|
|
|
|
fi
|
|
|
|
|
2015-12-03 21:30:38 +00:00
|
|
|
timing_exit ioat
|