/*-
* BSD LICENSE
*
- * Copyright(c) 2010-2012 Intel Corporation. All rights reserved.
+ * Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * version: DPDK.L.1.2.3-3
*/
#include <stdio.h>
#include <rte_memzone.h>
#include <rte_tailq.h>
#include <rte_eal.h>
+#include <rte_eal_memconfig.h>
#include <rte_log.h>
#include "eal_private.h"
for (i=0; i<RTE_MAX_MEMSEG; i++) {
if (mcfg->memseg[i].addr == NULL)
break;
- printf("phys:0x%"PRIx64", len:0x%"PRIx64", virt:%p, "
- "socket_id:%"PRId32"\n",
+
+ printf("Segment %u: phys:0x%"PRIx64", len:0x%"PRIx64", "
+ "virt:%p, socket_id:%"PRId32", "
+ "hugepage_sz:0x%"PRIx64", nchannel:%"PRIx32", "
+ "nrank:%"PRIx32"\n", i,
mcfg->memseg[i].phys_addr,
mcfg->memseg[i].len,
mcfg->memseg[i].addr,
- mcfg->memseg[i].socket_id);
+ mcfg->memseg[i].socket_id,
+ mcfg->memseg[i].hugepage_sz,
+ mcfg->memseg[i].nchannel,
+ mcfg->memseg[i].nrank);
}
}