From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753249AbbJFRP0 (ORCPT ); Tue, 6 Oct 2015 13:15:26 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:35445 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753136AbbJFRPX (ORCPT ); Tue, 6 Oct 2015 13:15:23 -0400 Date: Tue, 6 Oct 2015 10:15:13 -0700 From: Josh Triplett To: "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, dvhart@linux.intel.com, fweisbec@gmail.com, oleg@redhat.com, bobby.prani@gmail.com Subject: Re: [PATCH tip/core/rcu 06/13] rcu: Add online/offline info to stall warning message Message-ID: <20151006171513.GB9600@cloud> References: <20151006161305.GA9799@linux.vnet.ibm.com> <1444148028-11551-1-git-send-email-paulmck@linux.vnet.ibm.com> <1444148028-11551-6-git-send-email-paulmck@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1444148028-11551-6-git-send-email-paulmck@linux.vnet.ibm.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 06, 2015 at 09:13:41AM -0700, Paul E. McKenney wrote: > This commit makes the RCU CPU stall warning message print online/offline > indications immediately after the CPU number. A "?" indicates global > offline, a "," global online, and a "!" indicates RCU believes that the > CPU is offline and "." otherwise, both right after the CPU number. > So for CPU 10, you would normally see "10,.:" indicating that everything > believes that the CPU is online. This explanation doesn't seem to agree with the actual characters used. These use 'O', 'o', and 'N', instead, with '.' for "true" in all three cases. And the output from the code includes a '-' after the CPU number. Also, this output needs matching documentation in src/linux/Documentation/RCU/stallwarn.txt, ideally added as part of the same commit. > Signed-off-by: Paul E. McKenney > --- > kernel/rcu/tree_plugin.h | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h > index 06116ae6dfd7..57ed9c13ae5a 100644 > --- a/kernel/rcu/tree_plugin.h > +++ b/kernel/rcu/tree_plugin.h > @@ -1702,8 +1702,12 @@ static void print_cpu_stall_info(struct rcu_state *rsp, int cpu) > ticks_value = rsp->gpnum - rdp->gpnum; > } > print_cpu_stall_fast_no_hz(fast_no_hz, cpu); > - pr_err("\t%d: (%lu %s) idle=%03x/%llx/%d softirq=%u/%u fqs=%ld %s\n", > - cpu, ticks_value, ticks_title, > + pr_err("\t%d-%c%c%c: (%lu %s) idle=%03x/%llx/%d softirq=%u/%u fqs=%ld %s\n", > + cpu, > + "O."[!!cpu_online(cpu)], > + "o."[!!(rdp->grpmask & rdp->mynode->qsmaskinit)], > + "N."[!!(rdp->grpmask & rdp->mynode->qsmaskinitnext)], > + ticks_value, ticks_title, > atomic_read(&rdtp->dynticks) & 0xfff, > rdtp->dynticks_nesting, rdtp->dynticks_nmi_nesting, > rdp->softirq_snap, kstat_softirqs_cpu(RCU_SOFTIRQ, cpu), > -- > 2.5.2 >