Commit 2e1c5a72 authored by Jim Harris's avatar Jim Harris
Browse files

dpdk_mem_info.py: handle spaces in mempool names



DPDK is OK with spaces in mempool names.  SPDK has
never done it, but latest OCF code uses a name with
a space that gets used as a mempool name. The
dpdk_mem_info.py script was parsing mempool
information assuming there were no spaces in the
name.  So this patch fixes it.

Note: I created a dummy memzone with a space in
its name, and confirmed that works correctly.  So
only mempool names needed to be fixed.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I76d4e6e94852dd697b4be187e6ee625db867867a
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17316


Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarAmir Haroush <amir.haroush@huawei.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent daaa699e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -265,11 +265,10 @@ def parse_segment(line):


def parse_mempool_name(line):
    trash, info = line.split()
    name, addr = line.split('@')
    name = name.replace("<", "")
    name = name.replace(">", "")
    trash, name = name.split()
    trash, sep, name = name.partition(' ')

    return name