diff options
author | Olav Haugan <ohaugan@codeaurora.org> | 2014-11-24 16:54:59 -0800 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:01:19 -0700 |
commit | 5a48aeb06c504302abaec157664a6f3a6205b2cd (patch) | |
tree | 6f475bf8cabcd0ec9569cc3a7a856075b56b31a7 /include/trace | |
parent | 72fa561b0dfd807f1f69ffd6a6f63cdf38a5d000 (diff) |
sched: Add temperature to cpu_load trace point
Add the current CPU temperature to the sched_cpu_load trace point.
This will allow us to track the CPU temperature.
CRs-Fixed: 764788
Change-Id: Ib2e3559bbbe3fe07a6b7c8115db606828bc36254
Signed-off-by: Olav Haugan <ohaugan@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 7294f44da319..6f4a8f0d45e3 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -158,9 +158,9 @@ TRACE_EVENT(sched_task_load, TRACE_EVENT(sched_cpu_load, TP_PROTO(struct rq *rq, int idle, int mostly_idle, u64 irqload, - unsigned int power_cost), + unsigned int power_cost, int temp), - TP_ARGS(rq, idle, mostly_idle, irqload, power_cost), + TP_ARGS(rq, idle, mostly_idle, irqload, power_cost, temp), TP_STRUCT__entry( __field(unsigned int, cpu ) @@ -177,6 +177,7 @@ TRACE_EVENT(sched_cpu_load, __field(unsigned int, max_freq ) __field(unsigned int, power_cost ) __field( int, cstate ) + __field( int, temp ) ), TP_fast_assign( @@ -194,15 +195,16 @@ TRACE_EVENT(sched_cpu_load, __entry->max_freq = rq->max_freq; __entry->power_cost = power_cost; __entry->cstate = rq->cstate; + __entry->temp = temp; ), - 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 irqload %llu fcur %u fmax %u power_cost %u cstate %d", + 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 irqload %llu fcur %u fmax %u power_cost %u cstate %d temp %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->irqload, __entry->cur_freq, __entry->max_freq, - __entry->power_cost, __entry->cstate) + __entry->power_cost, __entry->cstate, __entry->temp) ); TRACE_EVENT(sched_set_boost, |