From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6A0E8A0543; Thu, 22 Sep 2022 12:30:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 09F1B40156; Thu, 22 Sep 2022 12:30:37 +0200 (CEST) Received: from guvercin.ceng.metu.edu.tr (guvercin.ceng.metu.edu.tr [144.122.171.43]) by mails.dpdk.org (Postfix) with ESMTP id 62AF4400D7 for ; Thu, 22 Sep 2022 12:30:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by guvercin.ceng.metu.edu.tr (Postfix) with ESMTP id 275612C3B0; Thu, 22 Sep 2022 13:30:35 +0300 (+03) X-Virus-Scanned: Debian amavisd-new at ceng.metu.edu.tr Received: from guvercin.ceng.metu.edu.tr ([127.0.0.1]) by localhost (guvercin.ceng.metu.edu.tr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ID9_GWO-MxKk; Thu, 22 Sep 2022 13:30:26 +0300 (+03) Received: from dmu.otak.ist (unknown [212.156.37.190]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: e1885458) by guvercin.ceng.metu.edu.tr (Postfix) with ESMTPSA id C3FF32C61F; Thu, 22 Sep 2022 13:30:24 +0300 (+03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ceng.metu.edu.tr; s=mail; t=1663842626; bh=h9AjDJ3NShpvj9Tp78IsmMj+V+7w2NOTuqiAA1kqCqk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JSTKpC+AkjbCLKeNedcdaOyf173uo8bQ2nfoZtnxG/GXzWUIJzmmdg5XPcXtAUGce yFK1I4A50F9LYT7FXa26NEYwVMu8X9JxVNPf/8XimGkIbrSI+3c6YlR676vq+AgjKP PHklWZ6VTmWxNbQ54RN/vCgd3VR62yo0w8vQ1zCQ= From: =?UTF-8?q?Abdullah=20=C3=96mer=20Yama=C3=A7?= To: dev@dpdk.org Cc: ferruh.yigit@xilinx.com, =?UTF-8?q?Abdullah=20=C3=96mer=20Yama=C3=A7?= , David Marchand Subject: [PATCH v2] lib/eal/linux: update lcore-worker name due to high number of cores Date: Thu, 22 Sep 2022 13:30:23 +0300 Message-Id: <20220922103023.499233-1-omer.yamac@ceng.metu.edu.tr> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220922101824.498149-1-omer.yamac@ceng.metu.edu.tr> References: <20220922101824.498149-1-omer.yamac@ceng.metu.edu.tr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org In this patch we suggest a new name for lcore-worker. In case of more than 99 logical cores, name is truncated (length is restricted to 16 characters, including the terminating null byte ('\0')) and it makes hard to follow threads. Signed-off-by: Abdullah Ömer Yamaç --- Cc: David Marchand --- lib/eal/linux/eal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eal/linux/eal.c b/lib/eal/linux/eal.c index 46bf52cef0..9a168b7773 100644 --- a/lib/eal/linux/eal.c +++ b/lib/eal/linux/eal.c @@ -1248,7 +1248,7 @@ rte_eal_init(int argc, char **argv) /* Set thread_name for aid in debugging. */ snprintf(thread_name, sizeof(thread_name), - "lcore-worker-%d", i); + "rte-worker-%d", i); ret = rte_thread_setname(lcore_config[i].thread_id, thread_name); if (ret != 0) -- 2.27.0