diff options
| author | Srivatsa Vaddagiri <vatsa@codeaurora.org> | 2016-05-13 02:05:32 -0700 |
|---|---|---|
| committer | Pavankumar Kondeti <pkondeti@codeaurora.org> | 2016-12-16 16:50:51 +0530 |
| commit | f8c7c6ffdfb366efce72a4df93d124659a246b8c (patch) | |
| tree | c9a7d3cc5acdf1c70b68482aae03bc6bb38cc2b6 /include/trace | |
| parent | 3162449f7d245d45f007d4ea3224576ddf1bcc63 (diff) | |
sched: Track burst length for tasks
Track burst length for tasks as time they ran from wakeup to sleep.
This is used to predict average time a task may run when it wakes up
and thus avoid waking up idle cpu for "short-burst" tasks.
Change-Id: Ie71d3163630fb8aa0db8ee8383768f8748270cf9
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Diffstat (limited to 'include/trace')
| -rw-r--r-- | include/trace/events/sched.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 72bbed9ad5db..27c5c580acc2 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -134,6 +134,7 @@ TRACE_EVENT(sched_task_load, __field( int, best_cpu ) __field( u64, latency ) __field( int, grp_id ) + __field( u64, avg_burst ) ), TP_fast_assign( @@ -150,13 +151,14 @@ TRACE_EVENT(sched_task_load, sched_ktime_clock() - p->ravg.mark_start : 0; __entry->grp_id = p->grp ? p->grp->id : 0; + __entry->avg_burst = p->ravg.avg_burst; ), - TP_printk("%d (%s): demand=%u boost=%d reason=%d sync=%d need_idle=%d flags=%x grp=%d best_cpu=%d latency=%llu", + TP_printk("%d (%s): demand=%u boost=%d reason=%d sync=%d need_idle=%d flags=%x grp=%d best_cpu=%d latency=%llu avg_burst=%llu", __entry->pid, __entry->comm, __entry->demand, __entry->boost, __entry->reason, __entry->sync, __entry->need_idle, __entry->flags, __entry->grp_id, - __entry->best_cpu, __entry->latency) + __entry->best_cpu, __entry->latency, __entry->avg_burst) ); TRACE_EVENT(sched_set_preferred_cluster, |
