Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* How to get number of context switches and system calls for a process
@ 1998-12-08  5:00 Nenad Vidovic
  0 siblings, 0 replies; only message in thread
From: Nenad Vidovic @ 1998-12-08  5:00 UTC (permalink / 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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-12-08  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-08  5:00 How to get number of context switches and system calls for a process Nenad Vidovic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox