[openib-general] Re: [PATCH 04/16] ehca: userspace support
Greg Lindahl
lindahl at pathscale.com
Sun Apr 30 22:32:07 PDT 2006
> >Do you really need this heavy debug logging in the first place? You
> >can use kprobes for arbitrary run-time inspection anyway, so logging
> >everything seems wasteful.
>
> The problem I see with kprobes is that you have to set several kernel
> configuration options (e.g. CONFIG_KPROBES, CONFIG_DEBUG_INFO, etc.)
> on compile time to use it. Same problem with pr_debug().
Note that one usage of debug code is for a vendor to ask a customer to
turn it on to figure out weird problems that the vendor can't
replicate. Customers are more likely to cooperate if the effort is
small... rebuilding the kernel is not a small effort compared
to turning on debug that's already compiled in.
-- greg
More information about the general
mailing list