5 testdir
=$
(readlink
-f $
(dirname $0))
6 rootdir
=$
(readlink
-f $testdir/..
/..
/..
)
7 source $rootdir/scripts
/autotest_common.sh
9 function linux_iter_pci
{
10 lspci
-mm -n |
grep $1 |
tr -d '"' |
awk -F " " '{print "0000:"$1}'
15 if [ $RUN_NIGHTLY -eq 1 ]; then
21 $testdir/reset
/reset -q 64 -w write -s 4096 -t 2
26 $rootdir/examples
/nvme
/identify
/identify
27 for bdf
in $
(linux_iter_pci
0108); do
28 $rootdir/examples
/nvme
/identify
/identify
-r "trtype:PCIe traddr:${bdf}"
33 $rootdir/examples
/nvme
/perf
/perf
-q 128 -w read -s 12288 -t 1
37 $rootdir/examples
/nvme
/reserve
/reserve
40 timing_enter hello_world
41 $rootdir/examples
/nvme
/hello_world
/hello_world
45 $rootdir/test
/lib
/nvme
/overhead
/overhead
-s 4096 -t 1
48 if [ -d /usr
/src
/fio
]; then
49 timing_enter fio_plugin
50 for bdf
in $
(linux_iter_pci
0108); do
51 /usr
/src
/fio
/fio
$rootdir/examples
/nvme
/fio_plugin
/example_config.fio
--filename=${bdf//:/.}/1
55 timing_exit fio_plugin
58 timing_enter arbitration
59 $rootdir/examples
/nvme
/arbitration
/arbitration
-t 3
60 timing_exit arbitration
62 if [ $
(uname
-s) = Linux
]; then
63 timing_enter multi_process
64 $rootdir/examples
/nvme
/arbitration
/arbitration
-i 0 -s 4096 -t 10 -c 0xf &
67 $rootdir/examples
/nvme
/perf
/perf
-i 0 -q 1 -w randread
-s 4096 -t 10 -c 0x10 &
71 while [ $count -le 2 ]; do
72 $rootdir/examples
/nvme
/perf
/perf
-i 0 -q 1 -w read -s 4096 -t 1 -c 0x10
76 while [ $count -le 1 ]; do
77 core
=$
((1 << (($count + 4))))
78 printf -v hexcore
"0x%x" "$core"
79 $rootdir/examples
/nvme
/perf
/perf
-i 0 -q 128 -w read -s 4096 -t 1 -c $hexcore &
83 timing_exit multi_process
91 $testdir/e2edp
/nvme_dp