2015-12-03 14:30:38 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -xe
|
|
|
|
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
2018-03-22 15:26:12 -07:00
|
|
|
rootdir=$(readlink -f $testdir/../..)
|
2018-02-27 15:14:08 -07:00
|
|
|
source $rootdir/test/common/autotest_common.sh
|
2015-12-03 14:30:38 -07:00
|
|
|
|
|
|
|
timing_enter ioat
|
|
|
|
|
|
|
|
timing_enter perf
|
2016-08-19 10:34:06 -07:00
|
|
|
$rootdir/examples/ioat/perf/perf -t 1
|
2015-12-03 14:30:38 -07:00
|
|
|
timing_exit perf
|
|
|
|
|
|
|
|
timing_enter verify
|
2016-08-19 10:34:06 -07:00
|
|
|
$rootdir/examples/ioat/verify/verify -t 1
|
2015-12-03 14:30:38 -07:00
|
|
|
timing_exit verify
|
|
|
|
|
2017-01-23 16:38:35 -07: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
|
2017-12-18 14:20:41 -07:00
|
|
|
report_test_completion "ioat_kperf"
|
2017-01-23 16:38:35 -07:00
|
|
|
timing_exit kperf
|
|
|
|
fi
|
|
|
|
|
2017-12-18 14:20:41 -07:00
|
|
|
report_test_completion "ioat"
|
2015-12-03 14:30:38 -07:00
|
|
|
timing_exit ioat
|