aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_rt.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2008-06-19 08:22:24 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-20 04:25:59 -0400
commitada18de2eb76961a4d4847f63291744c9e7beec4 (patch)
tree2626852c3d735aea1a49570afea3fa936a8186dc /kernel/sched_rt.c
parent1cdad71537b42d0f0bf247772942ce678e4e8898 (diff)
sched: debug: add some rt debug output
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: "Daniel K." <dk@uw.no> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_rt.c')
-rw-r--r--kernel/sched_rt.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index fee5fa7c72db..2e0ccdcf046a 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -1444,3 +1444,17 @@ static const struct sched_class rt_sched_class = {
1444 .prio_changed = prio_changed_rt, 1444 .prio_changed = prio_changed_rt,
1445 .switched_to = switched_to_rt, 1445 .switched_to = switched_to_rt,
1446}; 1446};
1447
1448#ifdef CONFIG_SCHED_DEBUG
1449extern void print_rt_rq(struct seq_file *m, int cpu, struct rt_rq *rt_rq);
1450
1451static void print_rt_stats(struct seq_file *m, int cpu)
1452{
1453 struct rt_rq *rt_rq;
1454
1455 rcu_read_lock();
1456 for_each_leaf_rt_rq(rt_rq, cpu_rq(cpu))
1457 print_rt_rq(m, cpu, rt_rq);
1458 rcu_read_unlock();
1459}
1460#endif