2019-12-12 21:41:38 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-11-02 15:49:40 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright (C) 2019 Intel Corporation
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
2019-12-12 21:41:38 +00:00
|
|
|
testdir=$(readlink -f $(dirname $0))
|
|
|
|
rootdir=$(readlink -f $testdir/../..)
|
|
|
|
source $rootdir/test/common/autotest_common.sh
|
|
|
|
|
|
|
|
MEM_SCRIPT="$rootdir/scripts/dpdk_mem_info.py"
|
|
|
|
|
2021-06-24 14:44:45 +00:00
|
|
|
"${SPDK_APP[@]}" &
|
2019-12-12 21:41:38 +00:00
|
|
|
spdkpid=$!
|
|
|
|
|
|
|
|
waitforlisten $spdkpid
|
|
|
|
|
|
|
|
trap 'killprocess $spdkpid' SIGINT SIGTERM EXIT
|
|
|
|
|
|
|
|
$rpc_py env_dpdk_get_mem_stats
|
|
|
|
|
|
|
|
$MEM_SCRIPT
|
|
|
|
|
|
|
|
$MEM_SCRIPT -m 0
|
|
|
|
|
|
|
|
trap - SIGINT SIGTERM EXIT
|
|
|
|
killprocess $spdkpid
|