diff options
| author | Steve Muckle <smuckle@codeaurora.org> | 2014-11-02 17:41:32 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:01:14 -0700 |
| commit | 636a5749c8706da90cfb1c607df53f3f657fb76f (patch) | |
| tree | 4d036f797ef4f0d69b10cfdd263f095f80de4f7d /include | |
| parent | bd4d0eade78733d06017a7f022051ee5f077e735 (diff) | |
sched: extend sched_task_load tracepoint to indicate sync wakeup
Sync wakeups provide a hint to the scheduler about upcoming task
activity. Knowing which wakeups are sync wakeups from logs will
assist in workload analysis.
Change-Id: I6ffe73f2337e56b8234d4097069d5d70ab045eda
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/trace/events/sched.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 82bd9f92a7e2..a60fc80f66e3 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -115,9 +115,10 @@ TRACE_EVENT(sched_enq_deq_task, TRACE_EVENT(sched_task_load, - TP_PROTO(struct task_struct *p, int small_task, int boost, int reason), + TP_PROTO(struct task_struct *p, int small_task, int boost, int reason, + int sync), - TP_ARGS(p, small_task, boost, reason), + TP_ARGS(p, small_task, boost, reason, sync), TP_STRUCT__entry( __array( char, comm, TASK_COMM_LEN ) @@ -129,6 +130,7 @@ TRACE_EVENT(sched_task_load, __field( int, small_task ) __field( int, boost ) __field( int, reason ) + __field( int, sync ) ), TP_fast_assign( @@ -141,12 +143,14 @@ TRACE_EVENT(sched_task_load, __entry->small_task = small_task; __entry->boost = boost; __entry->reason = reason; + __entry->sync = sync; ), - TP_printk("%d (%s): sum=%u, sum_scaled=%u, period=%u demand=%u small=%d boost=%d reason=%d", + TP_printk("%d (%s): sum=%u, sum_scaled=%u, period=%u demand=%u small=%d boost=%d reason=%d sync=%d", __entry->pid, __entry->comm, __entry->sum, __entry->sum_scaled, __entry->period, __entry->demand, - __entry->small_task, __entry->boost, __entry->reason) + __entry->small_task, __entry->boost, __entry->reason, + __entry->sync) ); TRACE_EVENT(sched_cpu_load, |
