aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2009-08-15 12:53:50 -0400
committerIngo Molnar <mingo@elte.hu>2009-08-15 13:02:09 -0400
commitb612ba804b8a656333013ad2ee96fb2377df5dbb (patch)
treefbfcb07be4b964f3a512109ec2fa5880cf92e99c /kernel
parent8064d54929f23613e649dc7e14f7a94454487d58 (diff)
rcu: Make rcupreempt_trace.c look at offline CPUs
Given that offline CPUs can now have non-zero counters, we need to dump counters for offline CPUs as well as for online CPUs. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: laijs@cn.fujitsu.com Cc: dipankar@in.ibm.com Cc: josht@linux.vnet.ibm.com Cc: akpm@linux-foundation.org Cc: mathieu.desnoyers@polymtl.ca Cc: dvhltc@us.ibm.com Cc: niv@us.ibm.com Cc: peterz@infradead.org Cc: rostedt@goodmis.org Cc: hugh.dickins@tiscali.co.uk Cc: benh@kernel.crashing.org LKML-Reference: <12503552313921-git-send-email-> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rcupreempt_trace.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/rcupreempt_trace.c b/kernel/rcupreempt_trace.c
index 7c2665cac172..11640346a507 100644
--- a/kernel/rcupreempt_trace.c
+++ b/kernel/rcupreempt_trace.c
@@ -236,12 +236,13 @@ static ssize_t rcuctrs_read(struct file *filp, char __user *buffer,
236 236
237 cnt += snprintf(&rcupreempt_trace_buf[cnt], RCUPREEMPT_TRACE_BUF_SIZE, 237 cnt += snprintf(&rcupreempt_trace_buf[cnt], RCUPREEMPT_TRACE_BUF_SIZE,
238 "CPU last cur F M\n"); 238 "CPU last cur F M\n");
239 for_each_online_cpu(cpu) { 239 for_each_possible_cpu(cpu) {
240 long *flipctr = rcupreempt_flipctr(cpu); 240 long *flipctr = rcupreempt_flipctr(cpu);
241 cnt += snprintf(&rcupreempt_trace_buf[cnt], 241 cnt += snprintf(&rcupreempt_trace_buf[cnt],
242 RCUPREEMPT_TRACE_BUF_SIZE - cnt, 242 RCUPREEMPT_TRACE_BUF_SIZE - cnt,
243 "%3d %4ld %3ld %d %d\n", 243 "%3d%c %4ld %3ld %d %d\n",
244 cpu, 244 cpu,
245 cpu_is_offline(cpu) ? '!' : ' ',
245 flipctr[!f], 246 flipctr[!f],
246 flipctr[f], 247 flipctr[f],
247 rcupreempt_flip_flag(cpu), 248 rcupreempt_flip_flag(cpu),