DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] eal_lcore.c: print the supported maximum lcores as configured, and detected lcores on eal cpu init
@ 2014-04-14  5:37 Wang Sheng-Hui
  2014-05-05 16:09 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Sheng-Hui @ 2014-04-14  5:37 UTC (permalink / raw)
  To: dev


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 <shhuiw@gmail.com>
---
 lib/librte_eal/linuxapp/eal/eal_lcore.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/librte_eal/linuxapp/eal/eal_lcore.c b/lib/librte_eal/linuxapp/eal/eal_lcore.c
index d310d85..da20fa3 100644
--- a/lib/librte_eal/linuxapp/eal/eal_lcore.c
+++ b/lib/librte_eal/linuxapp/eal/eal_lcore.c
@@ -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;
 }
-- 
1.8.3.2

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] eal_lcore.c: print the supported maximum lcores as configured, and detected lcores on eal cpu init
  2014-04-14  5:37 [dpdk-dev] [PATCH] eal_lcore.c: print the supported maximum lcores as configured, and detected lcores on eal cpu init Wang Sheng-Hui
@ 2014-05-05 16:09 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2014-05-05 16:09 UTC (permalink / raw)
  To: Wang Sheng-Hui; +Cc: dev

2014-04-14 13:37, Wang Sheng-Hui:
> 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 <shhuiw@gmail.com>

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

Thanks
-- 
Thomas

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-05 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-14  5:37 [dpdk-dev] [PATCH] eal_lcore.c: print the supported maximum lcores as configured, and detected lcores on eal cpu init Wang Sheng-Hui
2014-05-05 16:09 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).