Re: WIP generic module->debug_flags and dynamic_debug
From: Joe Perches
Date: Wed Jun 10 2020 - 16:24:59 EST
On Wed, 2020-06-10 at 12:32 -0600, jim.cromie@xxxxxxxxx wrote:
> so Ive got a WIP / broken / partial approach to giving all modules a
> u32 flagset,
> and enabling pr_debug based upon it. I leave out the "pr_debug_typed(
> bitpos )" for now. For Stanimir, bits 1,2,3 could be high, middle,
> low.
Can you change this please to be a pointer to an unsigned long/int?
That way, existing non-dynamic debug uses like
MODULE_PARM_DESC(debug, "module specific debug control");
maybe could use the same mechanism to enable/disable by class.