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>
Showing
- Documentation/accounting/getdelays.c 17 additions, 2 deletionsDocumentation/accounting/getdelays.c
- Documentation/accounting/taskstats-struct.txt 6 additions, 0 deletionsDocumentation/accounting/taskstats-struct.txt
- fs/proc/array.c 10 additions, 0 deletionsfs/proc/array.c
- include/linux/taskstats.h 4 additions, 1 deletioninclude/linux/taskstats.h
- kernel/taskstats.c 4 additions, 0 deletionskernel/taskstats.c
Loading
Please register or sign in to comment