summaryrefslogtreecommitdiff
path: root/kernel/stacktrace.c
diff options
context:
space:
mode:
authorJoonwoo Park <joonwoop@codeaurora.org>2015-11-12 19:38:54 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:01:48 -0700
commitfa8dd7068ae69078c24e3f5ffbfb5fc078b9c8e6 (patch)
tree5f1e92246464692f0fe4e663cc93d2640e7482b1 /kernel/stacktrace.c
parent6832b1d70e7fd9470e43812cc0c384c4e1bf535a (diff)
sched/core: Fix incorrect wait time and wait count statistics
At present scheduler resets task's wait start timestamp when the task migrates to another rq. This misleads scheduler itself into reporting less wait time than actual by omitting time spent for waiting prior to migration and also more wait count than actual by counting migration as wait end event which can be seen by trace or /proc/<pid>/sched with CONFIG_SCHEDSTATS=y. Carry forward migrating task's wait time prior to migration and don't count migration as a wait end event to fix such statistics error. In order to determine whether task is migrating mark task->on_rq with TASK_ON_RQ_MIGRATING while dequeuing and enqueuing due to migration. Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: ohaugan@codeaurora.org Link: http://lkml.kernel.org/r/20151113033854.GA4247@codeaurora.org Signed-off-by: Ingo Molnar <mingo@kernel.org> [joonwoop@codeaurora.org: fixed minor conflict in detach_task().] Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org> Change-Id: I2d7f7d9895815430ad61383e62d28d889cce66c3
Diffstat (limited to 'kernel/stacktrace.c')
0 files changed, 0 insertions, 0 deletions