diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-11-20 20:58:56 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-12-06 09:37:18 -0500 |
commit | 02a11ec22bf666f0ecc0b277649e59711b9b5500 (patch) | |
tree | 7c968923926e382c22dc2623cd6c3e98d7264887 /kernel/sched_debug.c | |
parent | ee0e01a2e4d3b9266ca44a83271b22aa59b289f3 (diff) |
sched: show length of runqueue clock deactivation in /proc/sched_debugwip-fix3
The runqueue clock update should obviously not be skipped for
prolonged times (otherwise the consumed time is not correctly kept
track of). This patch measures the time between setting and clearing
the rq->skip_clock_update flag. The maximum observed value is exported
in /proc/sched_debug.
Diffstat (limited to 'kernel/sched_debug.c')
-rw-r--r-- | kernel/sched_debug.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c index 2e1b0d17dd9b..8924be259506 100644 --- a/kernel/sched_debug.c +++ b/kernel/sched_debug.c | |||
@@ -298,6 +298,10 @@ static void print_cpu(struct seq_file *m, int cpu) | |||
298 | 298 | ||
299 | P(bkl_count); | 299 | P(bkl_count); |
300 | 300 | ||
301 | P(skip_clock_count); | ||
302 | P64(skip_clock_recent_max); | ||
303 | P64(skip_clock_max); | ||
304 | |||
301 | #undef P | 305 | #undef P |
302 | #endif | 306 | #endif |
303 | print_cfs_stats(m, cpu); | 307 | print_cfs_stats(m, cpu); |