sched: HMP: Additional trace points for debugging HMP behaviour
authorChris Redpath <chris.redpath@arm.com>
Fri, 11 Oct 2013 10:44:59 +0000 (11:44 +0100)
committerJon Medhurst <tixy@linaro.org>
Fri, 11 Oct 2013 14:07:17 +0000 (15:07 +0100)
commit7b8e0b3f2af55b1ffb5c10be1daa59d8dc21d140
treead4fa53146152fb3c9fc780033602d1803ad30ff
parentd73babce9a77f8143136fe0d7b6c1ae44b5652dc
sched: HMP: Additional trace points for debugging HMP behaviour

1. Replace magic numbers in code for migration trace.
   Trace points still emit a number as force=<n> field:
     force=0 : wakeup migration
     force=1 : forced migration
     force=2 : offload migration
     force=3 : idle pull migration

2. Add trace to expose offload decision-making.
   Also adds tracing rq->nr_running so that you can
   look back to see what state the RQ was in at the time.

Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
include/trace/events/sched.h
kernel/sched/fair.c