From: Nenad Vidovic <nenad@swi.com>
Subject: How to get number of context switches and system calls for a process
Date: 1998/12/08 [thread overview]
Message-ID: <366D855B.560B@swi.com> (raw)
Hi!
I am trying to get the number of context switches for some process(not
current one, and not it's child).
On Solaris ioctl(fd, PIOCUSAGE, &usage) retuns in the usage (struct
prusage usage) number of context switches:
u_long pr_vctx; /* voluntary context switches */
u_long pr_ictx; /* involuntary context switches */
This information is not contained on DEC ioctl. However ps has two
options for listing context switches( -o nivcsw,nwchan).
Also a function getrusage can get number of context switches for a
current or child processes. Is there something which will get this
information for pid you specify????
System calls. This is also available in ioctl returned struct on
Solaris, but not on DEC. How to get the number of system calls for a
specified process????
Does anyone have any clues. Thanks for your help!
Regards,
Nenad Vidovic
SWI Systemware/Halcyon Inc.
www.swi.com
nenad@swi.com
reply other threads:[~1998-12-08 5:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox