Skip to content

Commit c33717c

Browse files
Gagandeep Singhdavid-marchand
authored andcommitted
app/procinfo: dump memory heap
This patch adds the malloc heap dump support in memory dump option. Signed-off-by: Gagandeep Singh <[email protected]> Acked-by: Hemant Agrawal <[email protected]> Acked-by: Stephen Hemminger <[email protected]>
1 parent 17bb600 commit c33717c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/proc-info/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <rte_common.h>
2020
#include <rte_debug.h>
2121
#include <rte_ethdev.h>
22+
#include <rte_malloc.h>
2223
#include <rte_memory.h>
2324
#include <rte_memzone.h>
2425
#include <rte_launch.h>
@@ -637,6 +638,10 @@ meminfo_display(void)
637638
rte_memzone_dump(stdout);
638639
printf("---------- END_MEMORY_ZONES -----------\n");
639640

641+
printf("---------- MALLOC_HEAP_DUMP -----------\n");
642+
rte_malloc_dump_heaps(stdout);
643+
printf("-------- END_MALLOC_HEAP_DUMP ---------\n");
644+
640645
printf("------------- TAIL_QUEUES -------------\n");
641646
rte_dump_tailq(stdout);
642647
printf("---------- END_TAIL_QUEUES ------------\n");

0 commit comments

Comments
 (0)