X-Git-Url: https://gerrit.fd.io/r/gitweb?p=deb_dpdk.git;a=blobdiff_plain;f=app%2Ftest%2Ftest_mempool.c;h=b9880b32b8f95ffa330595488044db1265ecf37e;hp=3b21cf76789ebe95a7054b2fa6292a519c87bfe2;hb=6b3e017e5d25f15da73f7700f7f2ac553ef1a2e9;hpb=32e04ea00cd159613e04acef75e52bfca6eeff2f diff --git a/app/test/test_mempool.c b/app/test/test_mempool.c index 3b21cf76..b9880b32 100644 --- a/app/test/test_mempool.c +++ b/app/test/test_mempool.c @@ -52,7 +52,6 @@ #include #include #include -#include #include #include #include @@ -501,6 +500,12 @@ test_mempool_xmem_misc(void) return 0; } +static void +walk_cb(struct rte_mempool *mp, void *userdata __rte_unused) +{ + printf("\t%s\n", mp->name); +} + static int test_mempool(void) { @@ -562,6 +567,9 @@ test_mempool(void) goto err; } + printf("Walk into mempools:\n"); + rte_mempool_walk(walk_cb, NULL); + rte_mempool_list_dump(stdout); /* basic tests without cache */