summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorPatrick Bellasi <patrick.bellasi@arm.com>2015-06-24 15:36:08 +0100
committerLeo Yan <leo.yan@linaro.org>2016-05-10 16:54:43 +0800
commitfed95d9ef1b2674c4a2cda8b2445ca7ef3f6ca59 (patch)
tree29791f5749a7782fa9813e7e309116350843b698 /kernel
parenta09a25c5dfc81d08df7b3c2e76ea94a651c17ac2 (diff)
DEBUG: schedtune: add tracepoint for schedtune_tasks_update() values
Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/tune.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/kernel/sched/tune.c b/kernel/sched/tune.c
index f5f4c57efb9e..7a434f2394e7 100644
--- a/kernel/sched/tune.c
+++ b/kernel/sched/tune.c
@@ -264,12 +264,18 @@ schedtune_boostgroup_update(int idx, int boost)
/* Check if this update increase current max */
if (boost > cur_boost_max && bg->group[idx].tasks) {
bg->boost_max = boost;
+ trace_sched_tune_boostgroup_update(cpu, 1, bg->boost_max);
continue;
}
/* Check if this update has decreased current max */
- if (cur_boost_max == old_boost && old_boost > boost)
+ if (cur_boost_max == old_boost && old_boost > boost) {
schedtune_cpu_update(cpu);
+ trace_sched_tune_boostgroup_update(cpu, -1, bg->boost_max);
+ continue;
+ }
+
+ trace_sched_tune_boostgroup_update(cpu, 0, bg->boost_max);
}
return 0;
@@ -293,6 +299,10 @@ schedtune_tasks_update(struct task_struct *p, int cpu, int idx, int task_count)
tasks = bg->group[idx].tasks;
if (tasks == 1 || tasks == 0)
schedtune_cpu_update(cpu);
+
+ trace_sched_tune_tasks_update(p, cpu, tasks, idx,
+ bg->group[idx].boost, bg->boost_max);
+
}
/*