From b20539d687d55255a5ef249f0216e11d300d514f Mon Sep 17 00:00:00 2001 From: Wang Sheng-Hui Date: Mon, 14 Apr 2014 13:37:04 +0800 Subject: [PATCH] eal: print maximum and detected lcores Print the maximum lcore(s) as configured, and the number of lcore(s) detected on eal cpu init as debug info besides the not separate detected/not-detected lcore info. Signed-off-by: Wang Sheng-Hui [Thomas: add BSD part] Signed-off-by: Thomas Monjalon --- lib/librte_eal/bsdapp/eal/eal_lcore.c | 3 +++ lib/librte_eal/linuxapp/eal/eal_lcore.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/librte_eal/bsdapp/eal/eal_lcore.c b/lib/librte_eal/bsdapp/eal/eal_lcore.c index 81b5f13c45..807bfac4a4 100644 --- a/lib/librte_eal/bsdapp/eal/eal_lcore.c +++ b/lib/librte_eal/bsdapp/eal/eal_lcore.c @@ -96,6 +96,9 @@ rte_eal_cpu_init(void) } config->lcore_count = count; + RTE_LOG(DEBUG, EAL, "Support maximum %u logical core(s) by configuration.\n", + RTE_MAX_LCORE); + RTE_LOG(DEBUG, EAL, "Detected %u lcore(s)\n", config->lcore_count); return 0; } diff --git a/lib/librte_eal/linuxapp/eal/eal_lcore.c b/lib/librte_eal/linuxapp/eal/eal_lcore.c index 03f4ba3a13..91164e54e1 100644 --- a/lib/librte_eal/linuxapp/eal/eal_lcore.c +++ b/lib/librte_eal/linuxapp/eal/eal_lcore.c @@ -181,6 +181,9 @@ rte_eal_cpu_init(void) } /* Set the count of enabled logical cores of the EAL configuration */ config->lcore_count = count; + RTE_LOG(DEBUG, EAL, "Support maximum %u logical core(s) by configuration.\n", + RTE_MAX_LCORE); + RTE_LOG(DEBUG, EAL, "Detected %u lcore(s)\n", config->lcore_count); return 0; } -- 2.20.1