1#!/usr/bin/env bash 2 3testdir=$(readlink -f $(dirname $0)) 4rootdir=$(readlink -f $testdir/../..) 5source $rootdir/test/common/autotest_common.sh 6 7timing_enter env 8 9timing_enter memory 10$testdir/memory/memory_ut 11timing_exit memory 12 13timing_enter vtophys 14$testdir/vtophys/vtophys 15timing_exit vtophys 16 17timing_enter pci 18$testdir/pci/pci_ut 19timing_exit pci 20 21timing_enter env_dpdk_post_init 22argv="-c 0x1 " 23if [ $(uname) = Linux ]; then 24 # The default base virtaddr falls into a region reserved by ASAN. 25 # DPDK will try to find the nearest available address space by 26 # trying to do mmap over and over, which will take ages to finish. 27 # We speed up the process by specifying an address that's not 28 # supposed to be reserved by ASAN. Regular SPDK applications do 29 # this implicitly. 30 argv+="--base-virtaddr=0x200000000000" 31fi 32$testdir/env_dpdk_post_init/env_dpdk_post_init $argv 33timing_exit env_dpdk_post_init 34 35if [ $(uname) = Linux ]; then 36 # This tests the --match-allocations DPDK parameter which is only 37 # supported on Linux 38 timing_enter mem_callbacks 39 $testdir/mem_callbacks/mem_callbacks 40 timing_exit mem_callbacks 41fi 42 43report_test_completion "env" 44timing_exit env 45