diff options
author | Wanpeng Li <wanpeng.li@linux.intel.com> | 2014-10-30 18:39:33 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-11-04 01:17:54 -0500 |
commit | acb32132ec0433c03bed750f3e9508dc29db0328 (patch) | |
tree | e12ff655f666c1043c104808f874b0a5349a7ba4 /kernel/sched/debug.c | |
parent | 804968809c321066cca028d4cbd533a420f964bc (diff) |
sched/deadline: Add deadline rq status print
This patch add deadline rq status print.
Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Juri Lelli <juri.lelli@arm.com>
Cc: Kirill Tkhai <ktkhai@parallels.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1414708776-124078-3-git-send-email-wanpeng.li@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/debug.c')
-rw-r--r-- | kernel/sched/debug.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index ce33780d8f20..eeb6046d60c7 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c | |||
@@ -261,6 +261,12 @@ void print_rt_rq(struct seq_file *m, int cpu, struct rt_rq *rt_rq) | |||
261 | #undef P | 261 | #undef P |
262 | } | 262 | } |
263 | 263 | ||
264 | void print_dl_rq(struct seq_file *m, int cpu, struct dl_rq *dl_rq) | ||
265 | { | ||
266 | SEQ_printf(m, "\ndl_rq[%d]:\n", cpu); | ||
267 | SEQ_printf(m, " .%-30s: %ld\n", "dl_nr_running", dl_rq->dl_nr_running); | ||
268 | } | ||
269 | |||
264 | extern __read_mostly int sched_clock_running; | 270 | extern __read_mostly int sched_clock_running; |
265 | 271 | ||
266 | static void print_cpu(struct seq_file *m, int cpu) | 272 | static void print_cpu(struct seq_file *m, int cpu) |
@@ -329,6 +335,7 @@ do { \ | |||
329 | spin_lock_irqsave(&sched_debug_lock, flags); | 335 | spin_lock_irqsave(&sched_debug_lock, flags); |
330 | print_cfs_stats(m, cpu); | 336 | print_cfs_stats(m, cpu); |
331 | print_rt_stats(m, cpu); | 337 | print_rt_stats(m, cpu); |
338 | print_dl_stats(m, cpu); | ||
332 | 339 | ||
333 | print_rq(m, rq, cpu); | 340 | print_rq(m, rq, cpu); |
334 | spin_unlock_irqrestore(&sched_debug_lock, flags); | 341 | spin_unlock_irqrestore(&sched_debug_lock, flags); |