summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOlav Haugan <ohaugan@codeaurora.org>2016-08-15 15:52:50 -0700
committerSyed Rameez Mustafa <rameezmustafa@codeaurora.org>2016-08-22 14:06:34 -0700
commitfbc251af5ad5b14d1a782575833be7c7a77fde16 (patch)
tree51bcac53e185630f0a395b29230cd16ed0444129 /include
parent67e0df6e338edbf119ae2cb7abe52a460cb33851 (diff)
sched/fair: Add flag to indicate why we picked the CPU
Add a flag to the trace event that indicates why we picked a particular CPU. This is very useful information/statistic that can be used to analyse the effectiveness of the scheduler. Change-Id: Ic9462fef751f9442ae504c09fbf4418e08f018b0 Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/sched.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h
index 8367eba91a2e..f35630045c2f 100644
--- a/include/trace/events/sched.h
+++ b/include/trace/events/sched.h
@@ -116,9 +116,9 @@ TRACE_EVENT(sched_enq_deq_task,
TRACE_EVENT(sched_task_load,
TP_PROTO(struct task_struct *p, bool boost, int reason,
- bool sync, bool need_idle, bool fast_path, int best_cpu),
+ bool sync, bool need_idle, u32 flags, int best_cpu),
- TP_ARGS(p, boost, reason, sync, need_idle, fast_path, best_cpu),
+ TP_ARGS(p, boost, reason, sync, need_idle, flags, best_cpu),
TP_STRUCT__entry(
__array( char, comm, TASK_COMM_LEN )
@@ -128,7 +128,7 @@ TRACE_EVENT(sched_task_load,
__field( int, reason )
__field( bool, sync )
__field( bool, need_idle )
- __field( bool, fast_path )
+ __field( u32, flags )
__field( int, best_cpu )
__field( u64, latency )
),
@@ -141,17 +141,17 @@ TRACE_EVENT(sched_task_load,
__entry->reason = reason;
__entry->sync = sync;
__entry->need_idle = need_idle;
- __entry->fast_path = fast_path;
+ __entry->flags = flags;
__entry->best_cpu = best_cpu;
__entry->latency = p->state == TASK_WAKING ?
sched_ktime_clock() -
p->ravg.mark_start : 0;
),
- TP_printk("%d (%s): demand=%u boost=%d reason=%d sync=%d need_idle=%d fast_path=%d best_cpu=%d latency=%llu",
+ TP_printk("%d (%s): demand=%u boost=%d reason=%d sync=%d need_idle=%d flags=%x best_cpu=%d latency=%llu",
__entry->pid, __entry->comm, __entry->demand,
__entry->boost, __entry->reason, __entry->sync,
- __entry->need_idle, __entry->fast_path,
+ __entry->need_idle, __entry->flags,
__entry->best_cpu, __entry->latency)
);