From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] Use pthread_setname APIs Date: Wed, 22 Apr 2015 15:57:44 -0700 Message-ID: <20150422155744.6c41b35d@urahara> References: <1429736748-16874-1-git-send-email-rkerur@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Ravi Kerur Return-path: In-Reply-To: <1429736748-16874-1-git-send-email-rkerur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On Wed, 22 Apr 2015 14:05:48 -0700 Ravi Kerur wrote: > Add code to set names to threads via pthread APIs. > In Linux corresponding _getname_ is available, however, FreeBSD > doesn't have corresponding _get_name API available yet. Hence _getname_ > is not yet used in the code. > > Ravi Kerur (1): > Use pthread_setname apis > > config/common_bsdapp | 5 +++++ > config/common_linuxapp | 5 +++++ > examples/vhost/Makefile | 1 + > examples/vhost/main.c | 18 ++++++++++++++++-- > examples/vhost_xen/Makefile | 1 + > examples/vhost_xen/main.c | 20 ++++++++++++++++++-- > lib/librte_eal/bsdapp/eal/eal.c | 7 +++++++ > lib/librte_eal/linuxapp/eal/Makefile | 2 ++ > lib/librte_eal/linuxapp/eal/eal.c | 11 +++++++++++ > lib/librte_eal/linuxapp/eal/eal_interrupts.c | 20 +++++++++++++++++--- > lib/librte_eal/linuxapp/eal/eal_pci_vfio_mp_sync.c | 16 ++++++++++++++-- > lib/librte_eal/linuxapp/eal/eal_timer.c | 11 ++++++++++- > 12 files changed, 107 insertions(+), 10 deletions(-) > Since it possible to have multiple DPDK applications in same environment, and the thread name size is so limited, I wonder if this is a good idea.