]> git.baikalelectronics.ru Git - kernel.git/commit
taskstats: add context-switch counters
authorMaxim Uvarov <muvarov@ru.mvista.com>
Mon, 16 Jul 2007 06:40:48 +0000 (23:40 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:46 +0000 (09:05 -0700)
commitbfba85a45f48d8c4452cd166e45a52e5c96c35bd
tree270a0472bf1fb0c7323ecb60ec68e40d02dcb1b4
parentaec25d24ffc712b6e387acbe35c9d0681fd600f7
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>
Documentation/accounting/getdelays.c
Documentation/accounting/taskstats-struct.txt
fs/proc/array.c
include/linux/taskstats.h
kernel/taskstats.c