printk() indexing
printk() indexing
Posted May 27, 2021 15:50 UTC (Thu) by dullfire (guest, #111432)Parent article: printk() indexing
> There are a couple of interesting questions that have not, as of this writing, been raised in the minimal review that this patch set has seen. The first would be: why does this information need to be built into the kernel? It could be placed into a separate file that would not require memory on a running system. The answer, perhaps, is that this mechanism makes it easy to keep the correct set of format strings with the kernel as it is deployed across systems.
Hmmm... this could probably be... a kernel module. as long as the kernel module loader need to keep modules .printk_index section around (possibly a cmdline option to turn on/off), the bulk data could be relegated to a module that's only load if when needed
