is there an efficient module_is_builtin() test ?

jim.cromie at gmail.com jim.cromie at gmail.com
Wed Mar 17 00:59:04 EDT 2021


On Tue, Mar 9, 2021 at 3:25 PM Valdis Klētnieks <valdis.kletnieks at vt.edu>
wrote:

> On Tue, 09 Mar 2021 12:55:14 -0700, jim.cromie at gmail.com said:
>
> > To use the index, I need  &dyndbg_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 branch.
> >
> > I just need a not expensive  is-it-builtin (modref)
>

thanks Valdis, the back and forth helped.

So, to follow up, the above is embodied here;
https://lore.kernel.org/lkml/20210316050801.2446401-1-jim.cromie@gmail.com/
in the add index patch, near 13/18
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20210316/92c32f57/attachment.html>


More information about the Kernelnewbies mailing list