Loading include/trace/events/sched.h +5 −0 Original line number Diff line number Diff line Loading @@ -786,6 +786,11 @@ DEFINE_EVENT(sched_task_util, sched_task_util_imbalance, TP_PROTO(struct task_struct *p, int task_cpu, unsigned long task_util, int nominated_cpu, int target_cpu, int ediff, bool need_idle), TP_ARGS(p, task_cpu, task_util, nominated_cpu, target_cpu, ediff, need_idle) ); DEFINE_EVENT(sched_task_util, sched_task_util_need_idle, TP_PROTO(struct task_struct *p, int task_cpu, unsigned long task_util, int nominated_cpu, int target_cpu, int ediff, bool need_idle), TP_ARGS(p, task_cpu, task_util, nominated_cpu, target_cpu, ediff, need_idle) ); #endif /* Loading kernel/sched/fair.c +8 −0 Original line number Diff line number Diff line Loading @@ -7144,6 +7144,14 @@ static int energy_aware_wake_cpu(struct task_struct *p, int target, int sync) return target_cpu; } if (need_idle) { trace_sched_task_util_need_idle(p, task_cpu(p), task_util(p), target_cpu, target_cpu, 0, need_idle); return target_cpu; } /* * We always want to migrate the task to the best CPU when * placement boost is active. Loading Loading
include/trace/events/sched.h +5 −0 Original line number Diff line number Diff line Loading @@ -786,6 +786,11 @@ DEFINE_EVENT(sched_task_util, sched_task_util_imbalance, TP_PROTO(struct task_struct *p, int task_cpu, unsigned long task_util, int nominated_cpu, int target_cpu, int ediff, bool need_idle), TP_ARGS(p, task_cpu, task_util, nominated_cpu, target_cpu, ediff, need_idle) ); DEFINE_EVENT(sched_task_util, sched_task_util_need_idle, TP_PROTO(struct task_struct *p, int task_cpu, unsigned long task_util, int nominated_cpu, int target_cpu, int ediff, bool need_idle), TP_ARGS(p, task_cpu, task_util, nominated_cpu, target_cpu, ediff, need_idle) ); #endif /* Loading
kernel/sched/fair.c +8 −0 Original line number Diff line number Diff line Loading @@ -7144,6 +7144,14 @@ static int energy_aware_wake_cpu(struct task_struct *p, int target, int sync) return target_cpu; } if (need_idle) { trace_sched_task_util_need_idle(p, task_cpu(p), task_util(p), target_cpu, target_cpu, 0, need_idle); return target_cpu; } /* * We always want to migrate the task to the best CPU when * placement boost is active. Loading