From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6c3c03eac1f671ba,start X-Google-Attributes: gidfee84,public From: Alexander Kogan Subject: table(TBL_SYSINFO,,,,) for many CPUs ? Date: 1998/06/17 Message-ID: <35882D7F.643EF10B@ptc.com>#1/1 X-Deja-AN: 364448108 Content-Type: multipart/mixed; boundary="------------17A11CEE030EE7B8A623FB37" Organization: Parametric Technology Corporation MIME-Version: 1.0 Newsgroups: comp.unix.osf.osf1 This is a multi-part message in MIME format. --------------17A11CEE030EE7B8A623FB37 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I'm trying to get system time information (user time, system, wait and nice) for each CPU in my box. I guess I can use table() or getsysinfo(). I know how to get it from table() but only for one CPU: struct tbl_sysinfo sibuf; if ( table(TBL_SYSINFO, 0, &sibuf, 1, sizeof(struct tbl_sysinfo) ) < 0 ) { perror("TBL_SYSINFO"); return; } sibuf.si_user; sibuf.si_nice; sibuf.si_sys; sibuf.si_idle; Does anybody know how to get it for many CPUs? Thanks, --------------17A11CEE030EE7B8A623FB37 Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Kogan, Alexander Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Alexander Kogan n: Kogan;Alexander org: Parametric Technology Corporation adr: 128 Technology Drive;;;Waltham;MA;02154;USA email;internet: kogan@ptc.com title: Senior Software Engineer tel;work: (781)398-5172 tel;fax: (881)398-5454 x-mozilla-cpt: ;0 x-mozilla-html: TRUE version: 2.1 end: vcard --------------17A11CEE030EE7B8A623FB37--