From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 19 15:23:28 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 20FB21065693 for ; Thu, 19 Nov 2009 15:23:28 +0000 (UTC) (envelope-from koffieyahoo@gmail.com) Received: from mail-gx0-f218.google.com (mail-gx0-f218.google.com [209.85.217.218]) by mx1.freebsd.org (Postfix) with ESMTP id D511A8FC1D for ; Thu, 19 Nov 2009 15:23:27 +0000 (UTC) Received: by gxk10 with SMTP id 10so2137645gxk.3 for ; Thu, 19 Nov 2009 07:23:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=jQfMT/1Gy+78CFRoqeNt2HOm3V+dt+k4Od/1mtyk2XQ=; b=slwOULfqIK+YA02hil84mnaQtDfcErKkq5GGq/87hQlb6dwiiFFyxMqcMrqf2GqEIX 3Ajj2rpsiM1ZU5fr4dK75v4hgty0rDvTg8MSFXM9N4+tG0d/2LL4M8pAgPmVsVfpXqWh 4VSj+dvKPsFGb5ICk/mozP/J5goPmR9vAmiX0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ltI/YDjQtfwZGJt71uSRBgG27R/XQjmDknXwOygCblpUajtt+WWaT2QQ4/Q/vTczb4 nIW91kS0HCxO5k10TBtnfVPY/Sb7UndOreC0CPsHa/Fkg4I1ZjJQmhz44Rkchxbad9BW Sa1RgeJKNsdpso/lxyC5VA18fzJBV0jofGBq0= MIME-Version: 1.0 Received: by 10.150.127.6 with SMTP id z6mr326987ybc.145.1258643754272; Thu, 19 Nov 2009 07:15:54 -0800 (PST) In-Reply-To: <4B056039.4040802@acm.poly.edu> 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:15:54 +0100 Message-ID: <9cb658f10911190715p404da03er9446b5dc5c31cb78@mail.gmail.com> From: Koffie Yahoo To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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:23:28 -0000 > 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. Unfortunately, as far as I can see the kinfo_proc structure only contains the sum of user time and system time and not the two values separately, or have I missed something? Jay