diff options
| author | Syed Rameez Mustafa <rameezmustafa@codeaurora.org> | 2014-09-08 13:42:41 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:00:40 -0700 |
| commit | daf32916ebcef4194866c7f378046e9871fcc227 (patch) | |
| tree | dd75b0b7b10796741b7c13f46e45826a064e701f /include/trace | |
| parent | b12fe96d5593db81bb3475b6d6fdd557de49be5e (diff) | |
sched: extend sched_task_load tracepoint to indicate small tasks
While debugging its always useful to know whether a task is small or
not to determine the scheduling algorithm being used. Have the
sched_task_load tracepoint indicate this information rather than
having to do manual calculations for every task placement.
Change-Id: Ibf390095f05c7da80df1ebfe00f4c5af66c97d12
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Diffstat (limited to 'include/trace')
| -rw-r--r-- | include/trace/events/sched.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 4438eff39024..4726fa017f51 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -115,9 +115,9 @@ TRACE_EVENT(sched_enq_deq_task, TRACE_EVENT(sched_task_load, - TP_PROTO(struct task_struct *p, int boost, int reason), + TP_PROTO(struct task_struct *p, int small_task, int boost, int reason), - TP_ARGS(p, boost, reason), + TP_ARGS(p, small_task, boost, reason), TP_STRUCT__entry( __array( char, comm, TASK_COMM_LEN ) @@ -126,6 +126,7 @@ TRACE_EVENT(sched_task_load, __field(unsigned int, sum_scaled ) __field(unsigned int, period ) __field(unsigned int, demand ) + __field( int, small_task ) __field( int, boost ) __field( int, reason ) ), @@ -137,14 +138,15 @@ TRACE_EVENT(sched_task_load, __entry->sum_scaled = p->se.avg.runnable_avg_sum_scaled; __entry->period = p->se.avg.runnable_avg_period; __entry->demand = p->ravg.demand; + __entry->small_task = small_task; __entry->boost = boost; __entry->reason = reason; ), - TP_printk("%d (%s): sum=%u, sum_scaled=%u, period=%u demand=%u boost=%d reason=%d", + TP_printk("%d (%s): sum=%u, sum_scaled=%u, period=%u demand=%u small=%d boost=%d reason=%d", __entry->pid, __entry->comm, __entry->sum, __entry->sum_scaled, __entry->period, __entry->demand, - __entry->boost, __entry->reason) + __entry->small_task, __entry->boost, __entry->reason) ); TRACE_EVENT(sched_cpu_load, |
