From owner-freebsd-hackers@freebsd.org Wed Mar 30 10:42:00 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE3A9AE2DB8 for ; Wed, 30 Mar 2016 10:42:00 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 878FB1DE7 for ; Wed, 30 Mar 2016 10:42:00 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 2329E15340A for ; Wed, 30 Mar 2016 12:41:55 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XI2OT7UakbHN; Wed, 30 Mar 2016 12:41:44 +0200 (CEST) Received: from [192.168.101.107] (vpn.ecoracks.nl [31.223.170.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 8E527153430 for ; Wed, 30 Mar 2016 12:41:44 +0200 (CEST) To: freebsd-hackers@freebsd.org From: Willem Jan Withagen Subject: Getting a thread name Message-ID: <56FBAD69.908@digiware.nl> Date: Wed, 30 Mar 2016 12:41:45 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2016 10:42:00 -0000 Hi, pthread_np has a call: pthread_set_name(tid, str). Now I'm looking for a way of retrieving that name. But there is no: pthread_get_name() in the same set. But I see top actually displaying the threadnames. So can somebody give me a hint where to look? Other than going thru top... Thanx, --WjW