rte_malloc_dump_heaps

nodes = rte_malloc(NULL, sizeof(struct node), 0);
        if (NULL == nodes)
                rte_exit(EXIT_FAILURE, "Cannot malloc memory 
");
        printf("nodes addr %llx 
 ",(long long) nodes);
        FILE * fp = fopen ("rte_malloc.txt", "w+");
        rte_malloc_dump_heaps(fp);
原文地址:https://www.cnblogs.com/dream397/p/13598361.html