Re: PATCH] debug: add notifier chain debugging

From: Ingo Molnar
Date: Wed Aug 20 2008 - 06:54:26 EST



* Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:

> > +config DEBUG_NOTIFIERS
> > + bool "Debug notifier call chains"
> > + depends on DEBUG_KERNEL
> > + help
> > + Enable this to turn on sanity checking for notifier call chains.
> > + This is most useful for kernel developers to make sure that
> > + modules properly unregister themselves from notifier chains.
> > + This is a relatively cheap check but if you care about maximum
> > + performance, say N.
> > +
>
> If we remove the first two checks then surely we can afford to add the
> remaining check unconditionally and lose the new config option and its
> ifdef.

yeah, that's sensible. Arjan?

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