From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 15:20:15 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D50C1065747 for ; Thu, 19 Nov 2009 15:20:15 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 604828FC29 for ; Thu, 19 Nov 2009 15:20:15 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 633916D41C; Thu, 19 Nov 2009 15:20:14 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 32D3B84463; Thu, 19 Nov 2009 16:20:14 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Boris Kochergin References: <9cb658f10911190214j5a6bc17fq200a82ea0b4acaa8@mail.gmail.com> <86ocmy63ww.fsf@ds4.des.no> <9cb658f10911190652j555e4484u2427d2bed87871f8@mail.gmail.com> <4B056039.4040802@acm.poly.edu> Date: Thu, 19 Nov 2009 16:20:14 +0100 In-Reply-To: <4B056039.4040802@acm.poly.edu> (Boris Kochergin's message of "Thu, 19 Nov 2009 10:11:53 -0500") Message-ID: <86einu35jl.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Koffie Yahoo Subject: Re: Getting running time of child X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 15:20:15 -0000 Boris Kochergin writes: > It's not as portable as getrusage(2), but you could probably get the > information you want using libkvm's kvm_getprocs(3) function. The > information available is defined in the kinfo_proc structure in > /usr/include/sys/user.h. Read the original post. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no