Re: is there an efficient module_is_builtin() test ?

2021-03-16 Thread jim . cromie
On Tue, Mar 9, 2021 at 3:25 PM Valdis Klētnieks wrote: > On Tue, 09 Mar 2021 12:55:14 -0700, jim.cro...@gmail.com said: > > > To use the index, I need _sites[], and that only works > > for builtin-module's callsites. For loaded modules, I can/have > > added a pointer to the section into

Re: is there an efficient module_is_builtin() test ?

2021-03-09 Thread Valdis Klētnieks
On Tue, 09 Mar 2021 12:55:14 -0700, jim.cro...@gmail.com said: > To use the index, I need _sites[], and that only works > for builtin-module's callsites. For loaded modules, I can/have > added a pointer to the section into module load_info, giving me > the base I will need for the ! builtin

is there an efficient module_is_builtin() test ?

2021-03-09 Thread jim . cromie
Im trying to reduce memory used by internal tables built into DYNAMIC_DEBUG the main savings available is in the per pr_debug* callsite data: modname, filename, funcname. I have segregated those fields to a new __dyndbg_sites section, described by struct _ddebug_site, and now refd by new ptr in