<div dir="ltr">Im trying to reduce memory used by<div>internal tables built into DYNAMIC_DEBUG<br><div><br></div></div><div>the main savings available is in the per pr_debug*</div><div>callsite data: modname, filename, funcname.</div><div><br></div><div>I have segregated those fields to a new __dyndbg_sites section,</div><div>described by struct _ddebug_site, and now refd by new ptr in </div><div>struct _ddebug</div><div><br></div><div>That new ptr enlarges the memory footprint, so I want to replace it </div><div>with an integer index into the section / array.  Existing padding could hold the index.</div><div><br></div><div>To use the index, I need  &dyndbg_sites[], and that only works</div><div>for builtin-module's callsites.   For loaded modules, I can/have </div><div>added a pointer to the section into module load_info, giving me</div><div>the base I will need for the ! builtin branch.</div><div><br></div><div>I just need a not expensive  is-it-builtin (modref)</div><div><br></div><div><br></div></div>