From: Anatoly Burakov Date: Wed, 11 Apr 2018 12:29:40 +0000 (+0100) Subject: test: add command to dump malloc heap contents X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=180698a82c65f40156e8fe2613ce9f9e32f0a1bf;p=dpdk.git test: add command to dump malloc heap contents Signed-off-by: Anatoly Burakov Tested-by: Santosh Shukla Tested-by: Hemant Agrawal Tested-by: Gowrishankar Muthukrishnan --- diff --git a/test/test/commands.c b/test/test/commands.c index cf0b726bb0..6bfdc0272a 100644 --- a/test/test/commands.c +++ b/test/test/commands.c @@ -137,6 +137,8 @@ static void cmd_dump_parsed(void *parsed_result, rte_log_dump(stdout); else if (!strcmp(res->dump, "dump_malloc_stats")) rte_malloc_dump_stats(stdout, NULL); + else if (!strcmp(res->dump, "dump_malloc_heaps")) + rte_malloc_dump_heaps(stdout); } cmdline_parse_token_string_t cmd_dump_dump = @@ -147,6 +149,7 @@ cmdline_parse_token_string_t cmd_dump_dump = "dump_ring#" "dump_mempool#" "dump_malloc_stats#" + "dump_malloc_heaps#" "dump_devargs#" "dump_log_types");