From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by dpdk.org (Postfix) with ESMTP id 97984156 for ; Mon, 14 Apr 2014 07:37:16 +0200 (CEST) Received: by mail-pd0-f170.google.com with SMTP id v10so7705787pde.29 for ; Sun, 13 Apr 2014 22:37:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=Ool+/18ja0lyzR6pChrdhNEyxNPUJBqeq8SzeonKFj8=; b=H/sWkQTnnygIq0i2P1IXUBKJq5qcEYufOMvMQPyLRFprr8oxMgKlYuI0W5EziN1Msy glCjxXIvu/pkrWjnyOMeZFdbzTCnjtWqqpvUnIw8jJVFbVweyJr7Ad8hqWckM0I0wW7x Y69OjHQN6n25ZhXyn9hzLlUFu3EUZzfLIr1eo01bcNu5XQZ+SOgObnFAei+A/jYzRbGX +t4GC6G10TMuZ53lsaKLQWVemTse69jyb47IVR3dtZHmtHb+X4utkxfi9Ql8tEMzNoN5 9p7yxWcIZILeHmu2ka/Ve+xHIwcf2cMId36vLNDzIInO4hKjtfksKMPcmchqlGMH7vyG gDSQ== X-Received: by 10.68.236.41 with SMTP id ur9mr41632662pbc.101.1397453835918; Sun, 13 Apr 2014 22:37:15 -0700 (PDT) Received: from [10.200.0.70] ([124.207.145.166]) by mx.google.com with ESMTPSA id h6sm31266570pbl.75.2014.04.13.22.37.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 13 Apr 2014 22:37:14 -0700 (PDT) Message-ID: <534B7400.3050905@gmail.com> Date: Mon, 14 Apr 2014 13:37:04 +0800 From: Wang Sheng-Hui User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: dev@dpdk.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] [PATCH] eal_lcore.c: print the supported maximum lcores as configured, and detected lcores on eal cpu init X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2014 05:37:17 -0000 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 --- 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