Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07b9bee5 authored by Satya Durga Srinivasu Prabhala's avatar Satya Durga Srinivasu Prabhala
Browse files

sched/debug: Show WALT specific details in /proc/sched_debug



WALT specific details can be very handy while debugging any
issue on live target.

Change-Id: I26f323393fd0f8d7c193f38dcea1531976d28272
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent 708b0099
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -666,6 +666,21 @@ do { \
	P(cpu_load[2]);
	P(cpu_load[3]);
	P(cpu_load[4]);
#ifdef CONFIG_SMP
	P(cpu_capacity);
#endif
#ifdef CONFIG_SCHED_WALT
	P(cluster->load_scale_factor);
	P(cluster->capacity);
	P(cluster->max_possible_capacity);
	P(cluster->efficiency);
	P(cluster->cur_freq);
	P(cluster->max_freq);
	P(cluster->exec_scale_factor);
	P(walt_stats.nr_big_tasks);
	SEQ_printf(m, "  .%-30s: %llu\n", "walt_stats.cumulative_runnable_avg",
			rq->walt_stats.cumulative_runnable_avg_scaled);
#endif
#undef P
#undef PN

@@ -744,6 +759,13 @@ static void sched_debug_header(struct seq_file *m)
	PN(sysctl_sched_wakeup_granularity);
	P(sysctl_sched_child_runs_first);
	P(sysctl_sched_features);
#ifdef CONFIG_SCHED_WALT
	P(sched_init_task_load_windows);
	P(min_capacity);
	P(max_capacity);
	P(sched_ravg_window);
	P(sched_load_granule);
#endif
#undef PN
#undef P

@@ -935,6 +957,9 @@ void proc_sched_show_task(struct task_struct *p, struct pid_namespace *ns,
		P_SCHEDSTAT(se.statistics.nr_wakeups_passive);
		P_SCHEDSTAT(se.statistics.nr_wakeups_idle);

#ifdef CONFIG_SCHED_WALT
		P(ravg.demand);
#endif
		avg_atom = p->se.sum_exec_runtime;
		if (nr_switches)
			avg_atom = div64_ul(avg_atom, nr_switches);