sched/debug: Add load-tracking statistics to task
authorKamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Tue, 25 Jun 2013 08:03:36 +0000 (13:33 +0530)
committerJon Medhurst <tixy@linaro.org>
Wed, 22 Jan 2014 09:50:40 +0000 (09:50 +0000)
commit42f95a9ca82e0931ba134c9ec180ab7ae8d90dcc
tree57835eddc6ffcd71eb3c8fc5b93dc2aeada67fdc
parent9a0758156e5f7f2f609617eb342e476378ef63f2
sched/debug: Add load-tracking statistics to task

At present we print per-entity load-tracking statistics for
cfs_rq of cgroups/runqueues. Given that per task statistics
is maintained, it can be used to know the contribution made
by the task to its parenting cfs_rq level.

This patch adds per-task load-tracking statistics to /proc/<PID>/sched.

Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20130625080336.GA20175@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
(cherry picked from commit 939fd731eb88a0cdd9058d0b0143563172a217d7)

Signed-off-by: Jon Medhurst <tixy@linaro.org>
kernel/sched/debug.c