summaryrefslogtreecommitdiff
path: root/kernel/sched/debug.c
diff options
context:
space:
mode:
authorSrivatsa Vaddagiri <vatsa@codeaurora.org>2014-03-31 18:07:16 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 19:59:08 -0700
commit47d2c533b247c7c1903f61a4b67b9664a3162b7d (patch)
tree5891fe4818428e4730d9b1d693dca4ddf128d3cc /kernel/sched/debug.c
parent7379f7f11051d258d685dd0079b5b0745bc6d007 (diff)
sched: Extend /proc/sched_debug with additional information
Provide additional information in /proc/sched_debug for every cpu. This will be a valuable debug aid. Change-Id: If22ee530e880cd21719242be7bc2c41308ad4186 Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org> [rameezmustafa@codeaurora.org]: Port to msm-3.18] Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Diffstat (limited to 'kernel/sched/debug.c')
-rw-r--r--kernel/sched/debug.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index 5799706cc6f0..a89496c171c6 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -306,6 +306,20 @@ do { \
P(cpu_load[2]);
P(cpu_load[3]);
P(cpu_load[4]);
+#ifdef CONFIG_SMP
+ P(cpu_capacity);
+#endif
+#if defined(CONFIG_SCHED_HMP) || defined(CONFIG_SCHED_FREQ_INPUT)
+ P(load_scale_factor);
+ P(capacity);
+ P(efficiency);
+ P(cur_freq);
+ P(max_freq);
+#endif
+#ifdef CONFIG_SCHED_HMP
+ P(nr_big_tasks);
+ P(nr_small_tasks);
+#endif
#undef P
#undef PN
@@ -386,6 +400,14 @@ 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_HMP
+ P(sched_mostly_idle_load);
+ P(sched_small_task);
+ P(sched_upmigrate);
+ P(sched_downmigrate);
+ P(sched_init_task_load_windows);
+ P(sched_init_task_load_pelt);
+#endif
#undef PN
#undef P