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 29FF3A00C3; Wed, 7 Dec 2022 20:00:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C0E58410FB; Wed, 7 Dec 2022 20:00:20 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id D0D08410D7 for ; Wed, 7 Dec 2022 20:00:19 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 1AA6520B6C40; Wed, 7 Dec 2022 11:00:19 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1AA6520B6C40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1670439619; bh=Ci6Wwr4BEuDrM60j8r++QLkjxo9KbrXVy0OrMD/7xFo=; h=From:To:Cc:Subject:Date:From; b=NTyOx5zW/qHtcWk4Tpa4peuRVE3OTjRFU9CaMjqvKGC5LnPug0WXm6KK0UAa5Y8ZD y3XhyPnB7+jFr02nYJw3+1/8jnr5hfGQtI9WlkTZFopUvaCF5D+48sogQbu8WWj2jS utoBTpeAaG9tQ8h1zD2sMRK7fEDp40E2biNfcsvY= From: Tyler Retzlaff To: dev@dpdk.org Cc: thomas@monjalon.net, david.marchand@redhat.com, olivier.matz@6wind.com, stephen@networkplumber.org, Tyler Retzlaff Subject: [PATCH 0/5] add lcore set name and get name API Date: Wed, 7 Dec 2022 11:00:12 -0800 Message-Id: <1670439617-9054-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 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 Set the lcore_config[].thread_id for the main lcore. Introduce 2 new public APIs rte_lcore_set_name and rte_lcore_get_name that allow set and get of the lcore name and if the underlying platform supports it sets the platform-specific thread name. Remove rte_thread_getname API Deprecate rte_thread_setname public API and provide replacement rte_thread_set_name internal API for use by the EAL. Add basic unit test for new APIs Tyler Retzlaff (5): eal: add lcore set name and get name API eal: set lcore config thread for lcore main test: add a unit test for set and get lcore name APIs eal: remove thread getname API eal: deprecate rte thread setname API app/test/test_lcores.c | 52 ++++++++++++++++++++++++++++++ doc/guides/rel_notes/deprecation.rst | 4 +++ lib/eal/common/eal_common_lcore.c | 32 +++++++++++++++++++ lib/eal/common/eal_common_thread.c | 18 ++++++----- lib/eal/common/eal_common_trace.c | 2 +- lib/eal/freebsd/eal.c | 5 ++- lib/eal/freebsd/eal_thread.c | 15 ++++----- lib/eal/include/rte_lcore.h | 62 ++++++++++++++++++++++++++---------- lib/eal/include/rte_thread.h | 8 +++++ lib/eal/linux/eal.c | 5 ++- lib/eal/linux/eal_thread.c | 18 +++++++---- lib/eal/version.map | 6 +++- lib/eal/windows/rte_thread.c | 41 ++++++++++++++++++++++++ 13 files changed, 221 insertions(+), 47 deletions(-) -- 1.8.3.1