All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* seeking guidance on adding MOD_PARAM_BITMAP
@ 2021-07-23 13:33 jim.cromie
  0 siblings, 0 replies; only message in thread
From: jim.cromie @ 2021-07-23 13:33 UTC (permalink / raw
  To: kernelnewbies

hi folks,

I would like to add something like the following:

    MOD_PARM_DYNDBG_BITMAP_DESC(__gvt_debug, "dyndbg bitmap desc",
            { "gvt: cmd: ",  "command processing" },
            { "gvt: core: ", "core help" },
            { "gvt: dpy: ",  "display help" },
            { "gvt: el: ",   "help" },
            { "gvt: irq: ",  "help" },
            { "gvt: mm: ",   "help" },
            { "gvt: mmio: ", "help" },
            { "gvt: render: ", "help" },
            { "gvt: sched: " "help" });

the point is to declaratively define an interface, a lot like:

/sys/module/drm/parameters/debug
and
$> modinfo drm
...
parm:           debug:Enable debug output, where each bit enables a
debug category.
Bit 0 (0x01)  will enable CORE messages (drm core code)
Bit 1 (0x02)  will enable DRIVER messages (drm controller code)
Bit 2 (0x04)  will enable KMS messages (modesetting code)
Bit 3 (0x08)  will enable PRIME messages (prime code)
Bit 4 (0x10)  will enable ATOMIC messages (atomic code)
Bit 5 (0x20)  will enable VBL messages (vblank code)
Bit 7 (0x80)  will enable LEASE messages (leasing code)
Bit 8 (0x100) will enable DP messages (displayport code) (int)


is there anything close to this in the kernel that I can copy & modify ?

failing that, what set of macros
(names & files they should be implemented in )
would stand some chance of surviving review ?

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-23 13:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-23 13:33 seeking guidance on adding MOD_PARAM_BITMAP jim.cromie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.