spdk: add the ioat_kperf test tool to autobuild system
Change-Id: If45a7fd3d6d3a7a52e71595de32ea4cf04e23d36 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
3f7cfd212a
commit
bf927b44c8
@ -17,6 +17,10 @@ timing_enter check_format
|
||||
./scripts/check_format.sh
|
||||
timing_exit check_format
|
||||
|
||||
timing_enter build_kmod
|
||||
./scripts/build_kmod.sh build
|
||||
timing_exit build_kmod
|
||||
|
||||
scanbuild=''
|
||||
if hash scan-build; then
|
||||
scanbuild="scan-build -o $out/scan-build-tmp --status-bugs"
|
||||
|
@ -53,6 +53,7 @@ time test/lib/ioat/ioat.sh
|
||||
timing_exit lib
|
||||
|
||||
./scripts/cleanup.sh
|
||||
./scripts/build_kmod.sh clean
|
||||
|
||||
timing_exit autotest
|
||||
chmod a+r $output_dir/timing.txt
|
||||
|
@ -16,7 +16,7 @@ Building & Usage
|
||||
1. Compile and load the kernel test module first.
|
||||
|
||||
modprobe -v ioatdma
|
||||
cd kmod && make && insmod dmaperf.ko
|
||||
./scripts/build_kmod.sh build && insmod dmaperf.ko
|
||||
|
||||
2. Run the test application.
|
||||
|
||||
@ -37,6 +37,9 @@ Building & Usage
|
||||
Channel 3 Performance Data 1415 MB/s
|
||||
Total Channel Performance Data 5655 MB/s
|
||||
|
||||
3. Cleanup
|
||||
./scripts/build_kmod.sh clean
|
||||
|
||||
OS Support
|
||||
==========
|
||||
We have tested several Linux distributions, currently Fedora 21/22 with kernel
|
||||
|
33
scripts/build_kmod.sh
Executable file
33
scripts/build_kmod.sh
Executable file
@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
readonly BASEDIR=$(readlink -f $(dirname $0))/..
|
||||
|
||||
set -e
|
||||
|
||||
function build_ioat_kmod() {
|
||||
if [ -d $BASEDIR/examples/ioat/kperf/kmod ]; then
|
||||
echo "Build Linux Ioat Test Module ..."
|
||||
cd $BASEDIR/examples/ioat/kperf/kmod
|
||||
make
|
||||
fi
|
||||
}
|
||||
|
||||
function clean_ioat_kmod() {
|
||||
# remove dmaperf test module
|
||||
grep -q "^dmaperf" /proc/modules && rmmod dmaperf
|
||||
# cleanup build
|
||||
if [ -d $BASEDIR/examples/ioat/kperf/kmod ]; then
|
||||
echo "Cleanup Linux Ioat Test Module ..."
|
||||
cd $BASEDIR/examples/ioat/kperf/kmod
|
||||
make clean
|
||||
fi
|
||||
}
|
||||
|
||||
if [ `uname` = Linux ]; then
|
||||
if [ "$1" = "build" ]; then
|
||||
build_ioat_kmod
|
||||
fi
|
||||
if [ "$1" = "clean" ]; then
|
||||
clean_ioat_kmod
|
||||
fi
|
||||
fi
|
Loading…
Reference in New Issue
Block a user