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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

2014-04-14 13:37, Wang Sheng-Hui:

Quoted 5 lines

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.

Added the BSD part, changed title to
"eal: print maximum and detected lcores"
and applied for version 1.7.0.

Thanks

Signature · 1 line
Thomas