diff options
author | Syed Rameez Mustafa <rameezmustafa@codeaurora.org> | 2014-09-05 10:17:47 -0700 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:00:39 -0700 |
commit | b12fe96d5593db81bb3475b6d6fdd557de49be5e (patch) | |
tree | 2a76cd3784979c2d458220e89c66605f23415be2 /include/trace | |
parent | 759ea992364e927f90964ea8a044c07afffe0e60 (diff) |
sched: Add C-state tracking to the sched_cpu_load trace event
C-state information is used by the scheduler for small task placement
decisions. Track this information in the sched_cpu_load trace event.
Also add the trace event in best_small_task_cpu(). This will help
better understand small task placement decisions.
Change-Id: Ife5f05bba59f85c968fab999bd13b9fb6b1c184e
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@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 ee42b306ba32..4438eff39024 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -167,6 +167,7 @@ TRACE_EVENT(sched_cpu_load, __field(unsigned int, cur_freq ) __field(unsigned int, max_freq ) __field(unsigned int, power_cost ) + __field( int, cstate ) ), TP_fast_assign( @@ -182,14 +183,15 @@ TRACE_EVENT(sched_cpu_load, __entry->cur_freq = rq->cur_freq; __entry->max_freq = rq->max_freq; __entry->power_cost = power_cost; + __entry->cstate = rq->cstate; ), - TP_printk("cpu %u idle %d mostly_idle %d nr_run %u nr_big %u nr_small %u lsf %u capacity %u cr_avg %llu fcur %u fmax %u power_cost %u", + TP_printk("cpu %u idle %d mostly_idle %d nr_run %u nr_big %u nr_small %u lsf %u capacity %u cr_avg %llu fcur %u fmax %u power_cost %u cstate %d", __entry->cpu, __entry->idle, __entry->mostly_idle, __entry->nr_running, __entry->nr_big_tasks, __entry->nr_small_tasks, __entry->load_scale_factor, __entry->capacity, __entry->cumulative_runnable_avg, __entry->cur_freq, __entry->max_freq, - __entry->power_cost) + __entry->power_cost, __entry->cstate) ); TRACE_EVENT(sched_set_boost, |