sched/stat: Expose /proc/pid/schedstat if CONFIG_SCHED_INFO=y
authorNaveen N. Rao <[email protected]>
Tue, 30 Jun 2015 09:06:03 +0000 (14:36 +0530)
committerIngo Molnar <[email protected]>
Sat, 4 Jul 2015 08:04:31 +0000 (10:04 +0200)
commit5968cecedd7a09f23e9fcb5f9fb4e893712f35ba
treeecc681414550f43744fcf78640979e948c78380d
parentf6db8347993256b58bd4746b0c4c5b935c32210d
sched/stat: Expose /proc/pid/schedstat if CONFIG_SCHED_INFO=y

Expand /proc/pid/schedstat output:

 - enable it on CONFIG_TASK_DELAY_ACCT=y && !CONFIG_SCHEDSTATS kernels.

 - dump all zeroes on kernels that are booted with the 'nodelayacct'
   option, which boot option disables delay accounting on
   CONFIG_TASK_DELAY_ACCT=y kernels.

Signed-off-by: Naveen N. Rao <[email protected]>
Cc: Balbir Singh <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Srikar Dronamraju <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/5ccbef17d4bc841084ea6e6421d4e4a23b7b806f.1435654789.git.naveen.n.rao@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <[email protected]>
fs/proc/base.c