From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8EF61A04B5; Mon, 2 Dec 2019 16:42:20 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 719051BE3D; Mon, 2 Dec 2019 16:42:20 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 803851BE3D for ; Mon, 2 Dec 2019 16:42:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575301338; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ziPQrN0/eev7S2nwq9z4NKxVwAv428fZRgRx1k1TynY=; b=D8qjCMiJWYGh+F0LYt63ykRNkn7KyqIlQtPb3/SZ0ZHrxRtIw4CS+cau9p8JNzj3hciYCc XhbOO9QDMt7cQiZGQKRVr7Xmsqt2vPBVwbkNBCdcWRhxL3EJnSN99/XquraShXjAKFr4t1 V1+5lY4xPa74Eng2ryGPX8P/sUZGoao= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-382-E6-I7UFeNbu6MQPKkxYO2w-1; Mon, 02 Dec 2019 10:42:17 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0D8F81099BB1 for ; Mon, 2 Dec 2019 15:42:16 +0000 (UTC) Received: from dmarchan.remote.csb (ovpn-205-88.brq.redhat.com [10.40.205.88]) by smtp.corp.redhat.com (Postfix) with ESMTP id B3768600C8; Mon, 2 Dec 2019 15:42:14 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: aconole@redhat.com Date: Mon, 2 Dec 2019 16:42:10 +0100 Message-Id: <20191202154210.10837-1-david.marchand@redhat.com> In-Reply-To: <20191202153559.9709-1-david.marchand@redhat.com> References: <20191202153559.9709-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: E6-I7UFeNbu6MQPKkxYO2w-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-dev] [PATCH 3/4] eal: display all detected cores at startup X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add debug logs to have a trace of unused cores for -c/-l options on systems with more cores than RTE_MAX_LCORE. Signed-off-by: David Marchand --- lib/librte_eal/common/eal_common_lcore.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/librte_eal/common/eal_common_lcore.c b/lib/librte_eal/comm= on/eal_common_lcore.c index 1d16fb2156..5404922a87 100644 --- a/lib/librte_eal/common/eal_common_lcore.c +++ b/lib/librte_eal/common/eal_common_lcore.c @@ -159,6 +159,14 @@ rte_eal_cpu_init(void) =09=09=09=09lcore_config[lcore_id].socket_id); =09=09count++; =09} +=09for (; lcore_id < CPU_SETSIZE; lcore_id++) { +=09=09if (eal_cpu_detected(lcore_id) =3D=3D 0) +=09=09=09continue; +=09=09RTE_LOG(DEBUG, EAL, "Skipped lcore %u as core %u on socket %u\n", +=09=09=09lcore_id, eal_cpu_core_id(lcore_id), +=09=09=09eal_cpu_socket_id(lcore_id)); +=09} + =09/* Set the count of enabled logical cores of the EAL configuration */ =09config->lcore_count =3D count; =09RTE_LOG(DEBUG, EAL, --=20 2.23.0