Re: getrusage(2) not returning number of context switches! (fwd)

Neil Conway (nconway.list@ukaea.org.uk)
Wed, 25 Nov 1998 00:51:48 +0000


Sachin Garg wrote:
>
> [...]
> The parameters I am interested in are :
>
> 1) User Time
> 2) System Time
> 3) Voluntary Context Switches
> 4) Involuntary Context Switches
>
> I get the first two parameters fine but the Context switch field
> always remains zero!

The kernel doesn't fill in those fields (even in 2.0.36 and 2.1.129) and
it seems that this is because it doesn't record that info yet on a
per-process basis. This is undoubtedly on the wish-list already...

Neil

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/