From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id F38E85A68 for ; Thu, 19 Nov 2015 12:49:55 +0100 (CET) Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 5D82B130A for ; Thu, 19 Nov 2015 11:49:55 +0000 (UTC) Received: from sopuli.koti.laiskiainen.org (vpn1-4-238.ams2.redhat.com [10.36.4.238]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tAJBnsaL018611 for ; Thu, 19 Nov 2015 06:49:54 -0500 To: dev@dpdk.org References: <103431910.iACTIb73WP@xps13> <1447932137-16886-1-git-send-email-ferruh.yigit@intel.com> From: Panu Matilainen Message-ID: <564DB761.5090203@redhat.com> Date: Thu, 19 Nov 2015 13:49:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1447932137-16886-1-git-send-email-ferruh.yigit@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 Subject: Re: [dpdk-dev] [PATCH] Revert "eal: set name to threads" 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: Thu, 19 Nov 2015 11:49:56 -0000 On 11/19/2015 01:22 PM, Ferruh Yigit wrote: > This reverts commit 67b6d3039e9edbc4624c878c6930be5e126e8b58. > > Reverted patch uses pthread_setname_np() function, this function added > into glibc in version 2.12 and cause a compile error in older glibc > versions: > error: implicit declaration of function "pthread_setname_np" > > Main purpose of reverted patch is to name threads, without > pthread_setname_np() function, patch does not mean much, so reverting > patch for sake of compatibility with older glibc versions. > Debuggability is important too. Rather than revert, why not wrap it in rte_thread_setname() or such and just make it a no-op with glibc versions where pthread_setname_np() is not available? - Panu -