Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1174105 > unrolled thread

Re: [PATCH tip/core/rcu 24/24] rcu: Conditionally compile RCU's eqs warnings

Started by"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
First post2015-06-29 23:00 +0200
Last post2015-06-29 23:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH tip/core/rcu 24/24] rcu: Conditionally compile RCU's eqs  warnings "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2015-06-29 23:00 +0200

#1174105 — Re: [PATCH tip/core/rcu 24/24] rcu: Conditionally compile RCU's eqs warnings

From"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Date2015-06-29 23:00 +0200
SubjectRe: [PATCH tip/core/rcu 24/24] rcu: Conditionally compile RCU's eqs warnings
Message-ID<pGOjM-5WS-15@gated-at.bofh.it>
On Mon, Jun 29, 2015 at 11:39:13AM +0200, Geert Uytterhoeven wrote:
> Hi Paul,
> 
> On Wed, May 13, 2015 at 12:30 AM, Paul E. McKenney
> <paulmck@linux.vnet.ibm.com> wrote:
> > --- a/lib/Kconfig.debug
> > +++ b/lib/Kconfig.debug
> > @@ -1373,6 +1373,17 @@ config RCU_TRACE
> >           Say Y here if you want to enable RCU tracing
> >           Say N if you are unsure.
> >
> > +config RCU_EQS_DEBUG
> > +       bool "Use this when adding any sort of NO_HZ support to your arch"
> 
> This sounds a bit fuzzy. Can you please provide a better one-line description?
> Thanks!

So the point of this Kconfig option is to provide WARN_ON()s that catch
bug such as telling RCU that a given CPU entered idle, but failing to
tell RCU when that CPU later leaves idle.  So how about this?

+       bool "Provide debugging asserts for adding NO_HZ support to an arch"

							Thanx, Paul

> > +       depends on DEBUG_KERNEL
> > +       help
> > +         This option provides consistency checks in RCU's handling of
> > +         NO_HZ.  These checks have proven quite helpful in detecting
> > +         bugs in arch-specific NO_HZ code.
> > +
> > +         Say N here if you need ultimate kernel/user switch latencies
> > +         Say Y if you are unsure
> 
> Gr{oetje,eeting}s,
> 
>                         Geert
> 
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
> 
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web