diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sched.h | 4 | ||||
| -rw-r--r-- | include/trace/events/sched.h | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 9e4171146f39..77d3b4c106cd 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2352,6 +2352,10 @@ extern u32 sched_get_wake_up_idle(struct task_struct *p); extern int sched_set_boost(int enable); extern int sched_set_init_task_load(struct task_struct *p, int init_load_pct); extern u32 sched_get_init_task_load(struct task_struct *p); +extern int sched_set_static_cpu_pwr_cost(int cpu, unsigned int cost); +extern unsigned int sched_get_static_cpu_pwr_cost(int cpu); +extern int sched_set_static_cluster_pwr_cost(int cpu, unsigned int cost); +extern unsigned int sched_get_static_cluster_pwr_cost(int cpu); #else static inline int sched_set_boost(int enable) diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 3b10396d61b6..69aede209948 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -171,6 +171,7 @@ TRACE_EVENT(sched_cpu_load, __field(unsigned int, max_freq ) __field(unsigned int, power_cost ) __field( int, cstate ) + __field( int, dstate ) __field( int, temp ) ), @@ -187,14 +188,16 @@ TRACE_EVENT(sched_cpu_load, __entry->max_freq = rq->max_freq; __entry->power_cost = power_cost; __entry->cstate = rq->cstate; + __entry->dstate = rq->dstate; __entry->temp = temp; ), - TP_printk("cpu %u idle %d nr_run %u nr_big %u lsf %u capacity %u cr_avg %llu irqload %llu fcur %u fmax %u power_cost %u cstate %d temp %d", + TP_printk("cpu %u idle %d nr_run %u nr_big %u lsf %u capacity %u cr_avg %llu irqload %llu fcur %u fmax %u power_cost %u cstate %d dstate %d temp %d", __entry->cpu, __entry->idle, __entry->nr_running, __entry->nr_big_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->temp) + __entry->max_freq, __entry->power_cost, __entry->cstate, + __entry->dstate, __entry->temp) ); TRACE_EVENT(sched_set_boost, |
