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 96B39423BA; Thu, 12 Jan 2023 22:55:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 468D542D36; Thu, 12 Jan 2023 22:55:40 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 8FD3442D27 for ; Thu, 12 Jan 2023 22:55:38 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id D574D20DFDF6; Thu, 12 Jan 2023 13:55:37 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D574D20DFDF6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1673560537; bh=sJqOJmZ+Bs9kFe4/TgUEHqrhXl9IBGIxAf+h+IWK/zg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NS2TnEEkElsZzJUiTW5GM9kqVzgyxLwAMfQtGMh4Fp/XksI3/r9blGDoAh4c1+mh3 W3BItVm78RCm7IT8yODQRxAzAoEVzlc4vJxZ7ns0e4/cUnVbIzAiDjzC0TYS+eXEjG rE8m8BkJulq9KyBftyqdEhDQFH9Q/3UiPB7qj1gE= From: Tyler Retzlaff To: dev@dpdk.org Cc: thomas@monjalon.net, david.marchand@redhat.com, mb@smartsharesystems.com, Tyler Retzlaff Subject: [PATCH v3 0/4] add rte_thread_set_name API for rte_thread_t Date: Thu, 12 Jan 2023 13:55:32 -0800 Message-Id: <1673560536-31057-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1670439617-9054-1-git-send-email-roretzla@linux.microsoft.com> References: <1670439617-9054-1-git-send-email-roretzla@linux.microsoft.com> 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 Replace the rte_thread_setname API which operates on pthread_t with rte_thread_set_name that operates on rte_thread_t. v3: * fix coding style error * move remove of rte_thread_getname to patch #2 v2: * initial series provided get/set for lcore thread id, those additions have been removed as per discussion. including unit test. * add a single api rte_thread_set_name does not fail but emits debug logging if the internal implementation is aware of in-exact use of the name or failure to set the name. * adapt mlx5 driver to avoid use of deprecated API. Tyler Retzlaff (4): eal: add thread set name API operating on rte thread eal: remove thread getname API drivers: mlx5 use rte thread set name eal: deprecate rte thread setname API doc/guides/rel_notes/deprecation.rst | 4 ++++ drivers/net/mlx5/mlx5_hws_cnt.c | 3 ++- drivers/vdpa/mlx5/mlx5_vdpa_event.c | 3 +-- lib/eal/common/eal_common_thread.c | 9 +++---- lib/eal/common/eal_common_trace.c | 2 -- lib/eal/freebsd/eal.c | 4 +++- lib/eal/freebsd/eal_thread.c | 20 +++++++++------- lib/eal/include/rte_lcore.h | 19 ++------------- lib/eal/include/rte_thread.h | 17 +++++++++++++ lib/eal/linux/eal.c | 8 +++---- lib/eal/linux/eal_thread.c | 29 ++++++++++++++--------- lib/eal/version.map | 4 +++- lib/eal/windows/rte_thread.c | 46 ++++++++++++++++++++++++++++++++++++ 13 files changed, 113 insertions(+), 55 deletions(-) Series-acked-by: Morten Brørup