Skip to contentSkip to conversation

eal_lcore.c: print the supported maximum lcores as configured, and detected lcores on eal cpu init

PATCH In review Wang Sheng-Hui 2 participants 2 messages Apr 14, 2014 – May 5, 2014 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eal_lcore.c: print the supported maximum lcores as configured, and detected lcores on eal cpu init

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.

---
 lib/librte_eal/linuxapp/eal/eal_lcore.c | 3 +++
 1 file changed, 3 insertions(+)
lib/librte_eal/linuxapp/eal/eal_lcore.c +3 -0
index d310d85..da20fa3 100644
@@ -182,6 +182,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;
 }
Signature · 1 line
1.8.3.2