Maxim Uvarov b663a79c19 taskstats: add context-switch counters
Make available to the user the following task and process performance
statistics:

	* Involuntary Context Switches (task_struct->nivcsw)
	* Voluntary Context Switches (task_struct->nvcsw)

Statistics information is available from:
	1. taskstats interface (Documentation/accounting/)
	2. /proc/PID/status (task only).

This data is useful for detecting hyperactivity patterns between processes.

[akpm@linux-foundation.org: cleanup]
Signed-off-by: Maxim Uvarov <muvarov@ru.mvista.com>
Cc: Shailabh Nagar <nagar@watson.ibm.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Jay Lan <jlan@engr.sgi.com>
Cc: Jonathan Lim <jlim@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-16 09:05:46 -07:00
..
2007-07-16 09:05:45 -07:00
2007-05-11 05:38:25 -04:00
2007-05-11 05:38:26 -04:00
2007-06-24 12:08:53 -07:00
2006-12-07 08:39:36 -08:00
2006-12-04 02:00:22 -05:00
2007-05-09 12:30:56 -07:00
2007-05-21 09:18:19 -07:00
2007-07-13 14:14:28 +02:00
2007-07-09 18:51:58 +02:00
2005-04-16 15:20:36 -07:00
2007-07-16 09:05:43 -07:00
2007-05-11 08:29:35 -07:00
2007-07-16 09:05:43 -07:00
2006-12-07 08:39:25 -08:00
2007-05-09 08:57:56 +02:00