From owner-freebsd-hackers@freebsd.org Mon Apr 30 13:25:22 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4999FAB291 for ; Mon, 30 Apr 2018 13:25:22 +0000 (UTC) (envelope-from ryao@gentoo.org) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7A3727D637 for ; Mon, 30 Apr 2018 13:25:22 +0000 (UTC) (envelope-from ryao@gentoo.org) Received: from [IPv6:2600:1:f45e:b478:dd3a:c418:c4d8:a451] (unknown [IPv6:2600:1:f45e:b478:dd3a:c418:c4d8:a451]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ryao) by smtp.gentoo.org (Postfix) with ESMTPSA id D7B7D335C99; Mon, 30 Apr 2018 13:25:20 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: Getting pthread names From: Richard Yao X-Mailer: iPhone Mail (15E302) In-Reply-To: <20180430111434.GA18085@freebsd-t450.fritz.box> Date: Mon, 30 Apr 2018 09:25:14 -0400 Cc: freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <37C69B52-808C-4F9A-B00A-679564F4BCE0@gentoo.org> References: <20180430111434.GA18085@freebsd-t450.fritz.box> To: =?utf-8?Q?Manuel_St=C3=BChn?= X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 13:25:23 -0000 > On Apr 30, 2018, at 7:14 AM, Manuel St=C3=BChn w= rote: >=20 > Hi, >=20 > for setting a name for pthreads i found pthread_set_name_np(3), but for re= trieving the name i found nothing. Is there any api like pthread_getname_np f= or FreeBSD? Or is there another way to retrieve the threads name within an a= pplication? The only time that I have ever seen the names listed was when attaching gdb t= o a process on Linux and listing the threads. I have not tried it on FreeBSD= . I suggest attaching gdb to see if it displays them. If it works, then you c= ould look into how gdb gets them. I hope that helps. >=20 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"=