[PATCH] powerpc/xive: Fix/improve verbose debug output
Benjamin Herrenschmidt
benh at kernel.crashing.org
Fri Apr 28 16:48:09 AEST 2017
On Fri, 2017-04-28 at 16:34 +1000, Michael Ellerman wrote:
> > > If there's non-verbose debug that we think would be useful to
> > > differentiate from verbose then those could be pr_debug() - which means
> > > they'll be jump labelled off in most production kernels, but still able
> > > to be enabled.
> >
> > Maybe... I don't like the giant "debug" switch accross the whole
> > kernel, though.
>
> Not sure what you mean. You can enable pr_debug()s individually, by
> function, by module, by file, or for the whole kernel.
>
> To enable everything in xive you'd do:
>
> # echo 'file *xive* +p' > /sys/kernel/debug/dynamic_debug/control
>
> Or boot with: loglevel=8 dyndbg="file *xive* +p"
Ah that's new goodness I wasn't aware of. Anyway, I can spin that
later, not planning on doing any work today ;-)
Cheers,
Ben.
More information about the Linuxppc-dev
mailing list