1#!/usr/bin/env bash 2# SPDX-License-Identifier: BSD-3-Clause 3# Copyright (C) 2019 Intel Corporation 4# All rights reserved. 5# 6testdir=$(readlink -f $(dirname $0)) 7rootdir=$(readlink -f $testdir/../..) 8source $rootdir/test/common/autotest_common.sh 9 10MEM_SCRIPT="$rootdir/scripts/dpdk_mem_info.py" 11 12"${SPDK_APP[@]}" & 13spdkpid=$! 14 15waitforlisten $spdkpid 16 17trap 'killprocess $spdkpid' SIGINT SIGTERM EXIT 18 19$rpc_py env_dpdk_get_mem_stats 20 21$MEM_SCRIPT 22 23$MEM_SCRIPT -m 0 24 25trap - SIGINT SIGTERM EXIT 26killprocess $spdkpid 27