test/common: Make common pmap call more generic

This is to support older versions of pmap (specifically procps v 3.2.8
which ships with centOS 6) which don't support the -p and -X options.

Change-Id: Ic8d4b94985c165e8bf224204af48b5d856aa2403
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/411755
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Seth Howell 2018-05-18 10:45:36 -07:00 committed by Daniel Verkamp
parent 3c2044e9aa
commit 27d7bac9a0

View File

@ -365,7 +365,7 @@ function start_stub() {
sleep 1s
done
# dump process memory map contents to help debug random ASLR failures
pmap -pX $stubpid
pmap -pX $stubpid || pmap -x $stubpid || true
echo done.
}