From owner-freebsd-threads@FreeBSD.ORG Thu Feb 16 14:25:59 2012 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A78701065670 for ; Thu, 16 Feb 2012 14:25:58 +0000 (UTC) (envelope-from cs@sdata.de) Received: from mailgw.sdata.de (mailgw.sdata.de [193.30.133.65]) by mx1.freebsd.org (Postfix) with ESMTP id 58BBE8FC0C for ; Thu, 16 Feb 2012 14:25:56 +0000 (UTC) Received: from mailgw.sdata.de (mailgw.sdata.de [127.0.0.1]) by mailgw.sdata.de (iRedMail) with ESMTP id 6F93633C33 for ; Thu, 16 Feb 2012 15:10:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sdata.de; h= mime-version:content-transfer-encoding:to:date:date:message-id :x-mailer:content-type:content-type:from:from:subject:subject; s=dkim; t=1329401447; x=1330265448; bh=OLoZvYO51cFo/4gisS8CoE5J WWSnvwktPWxppSgyDq0=; b=A1ZlFNONzxTN5R95aw/yVzn/rdMvJw6LuyKzA1fF ul5V5vxv7w5Ppi3ohC6NBjK8OJrSQqlGIr/LLM3l8REF/CGbYPzn16YQOSUkEGIE HrCf/0lKhLWfxbDuJVRk6IZcEStXA1vzWri3qmtpggpGRTykxmSkcoIL7SxAfaAS oow= X-Virus-Scanned: amavisd-new at mailgw.sdata.de Received: from mailgw.sdata.de ([127.0.0.1]) by mailgw.sdata.de (mailgw.sdata.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id swEd3rGnXzDx for ; Thu, 16 Feb 2012 15:10:47 +0100 (CET) Received: from [192.168.133.100] (p4FF17669.dip.t-dialin.net [79.241.118.105]) by mailgw.sdata.de (iRedMail) with ESMTPSA id DD74F33C2C for ; Thu, 16 Feb 2012 15:10:46 +0100 (CET) From: Christoph Splittgerber Content-Type: text/plain; charset=us-ascii X-Mailer: iPad Mail (9A405) Message-Id: <813D616D-66E4-41BB-9D4C-BB736268B88A@sdata.de> Date: Thu, 16 Feb 2012 15:10:47 +0100 To: "freebsd-threads@freebsd.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: How to map a thread-id to a thread-address X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 14:25:59 -0000 Hallo, I hope his is the correct maling list for his: I need a per thread overview of CPU time used. I found out that a "ps -H -otdaddr,time" gives me exactly this. The question= now is, how to relate the thread-address printed by the ps command to my th= reads. I did let the program print the thread-ids, and the threads stack-add= ress but non of them correlate to the address printed by ps. I would be grateful for any pointers. Thanks in advance, Christoph