aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-09-13 18:15:54 +0200
committerIngo Molnar <mingo@elte.hu>2009-09-13 18:17:28 +0200
commitf977bb4937857994312fff4f9c2cad336a36a932 (patch)
treece4736f585cfb9ecb3f959f6fe77997852dd00e3 /kernel
parentc13f0d3c8165e9592102687fa999da0a0d9c3724 (diff)
downloadkernel_samsung_aries-f977bb4937857994312fff4f9c2cad336a36a932.zip
kernel_samsung_aries-f977bb4937857994312fff4f9c2cad336a36a932.tar.gz
kernel_samsung_aries-f977bb4937857994312fff4f9c2cad336a36a932.tar.bz2
perf_counter, sched: Add sched_stat_runtime tracepoint
This allows more precise tracking of how the scheduler accounts (and acts upon) a task having spent N nanoseconds of CPU time. Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched_fair.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index aa7f841..a097e90 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -513,6 +513,7 @@ static void update_curr(struct cfs_rq *cfs_rq)
if (entity_is_task(curr)) {
struct task_struct *curtask = task_of(curr);
+ trace_sched_stat_runtime(curtask, delta_exec, curr->vruntime);
cpuacct_charge(curtask, delta_exec);
account_group_exec_runtime(curtask, delta_exec);
}