This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Sat Apr 27 05:06:36 2024 Received: from entropy.muc.muohio.edu (IDENT:root@entropy.muc.muohio.edu [134.53.213.10]) by herbie.ucs.indiana.edu (8.9.3/8.9.3) with ESMTP id OAA20014 for ; Sun, 15 Aug 1999 14:01:15 -0500 (EST) Received: from vger.rutgers.edu (vger.rutgers.edu [128.6.190.2]) by entropy.muc.muohio.edu (8.8.7/8.8.7) with ESMTP id PAA27437; Sun, 15 Aug 1999 15:00:09 -0400 Received: by vger.rutgers.edu via listexpand id ; Fri, 13 Aug 1999 11:32:24 -0400 Received: by vger.rutgers.edu id ; Fri, 13 Aug 1999 10:38:50 -0400 Received: from mail.RWTH-Aachen.DE ([137.226.144.9]:2546 "EHLO mail.rwth-aachen.de") by vger.rutgers.edu with ESMTP id ; Fri, 13 Aug 1999 10:03:06 -0400 Received: from reze-1.rz.rwth-aachen.de by mail.rwth-aachen.de (PMDF V5.1-12 #D3869) with SMTP id <01JEQ3GELJB00009TH@mail.rwth-aachen.de> for linux-kernel@vger.rutgers.edu; Fri, 13 Aug 1999 16:03:54 +0200 Received: from REZE-1/MERCQUEUE by reze-1.rz.rwth-aachen.de (Mercury 1.13) ; Fri, 13 Aug 1999 16:02:52 +0100 Received: from MERCQUEUE by REZE-1 (Mercury 1.13); Fri, 13 Aug 1999 16:02:23 +0100 Received: from rz.rwth-aachen.de by reze-1.rz.rwth-aachen.de (Mercury 1.13) with ESMTP; Fri, 13 Aug 1999 16:02:17 +0100 Date: Fri, 13 Aug 1999 16:02:03 +0200 From: Roman Breuer Subject: Re: user/CPU-time in /proc//stat problems To: Mark Hahn , linux-kernel@vger.rutgers.edu Message-Id: <37B4255B.6699882F@rz.rwth-aachen.de> Mime-Version: 1.0 X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5 i586) Content-Type: text/plain; charset=iso-8859-1 X-Accept-Language: de, en References: Sender: owner-linux-kernel@vger.rutgers.edu Precedence: bulk X-Loop: majordomo@vger.rutgers.edu X-Orcpt: rfc822;linux-kernel-outgoing-dig Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by herbie.ucs.indiana.edu id OAA20014 Hi, thanks for your reply, but as I understand rusage it is only for the process or its children. I need a function to get the values for any process selected by its PID. The manpage says: getrusage returns the current resource usages, for a who of either RUSAGE_SELF or RUSAGE_CHILDREN. Regards, Roman Mark Hahn wrote: > > Can you help me with that problem ? Can I somehow get the values in C > > without looking in /proc//stat ? > > getrusage or times are the standard/normal/unix/portable ways. -- ------------------------------------------------------------------------- \_\_\_\_ \_ \_\_\_\_\_ \_ Rheinisch- \_ \_\_ \__ \_ \_ \_ \_ Westfaelische \_\_\_ \_\_\_\_ \_ \_\_\_ Technische \_ \_ \__ \__ \_ \_ \_ Hochschule \_ \_ \_ \_ \_ \_ \_ Aachen ============================================ Workstation-Verbund RECHENZENTRUM ------------------------------------------------------------------------- Roman Breuer, Rechenzentrum RWTH Aachen e-mail: breuer@rz.rwth-aachen.de ------------------------------------------------------------------------- :.˛mkabzwmb˛mbz_^nrzh&zvy杶ii