Re: [PATCH] modules: Take a shortcut for checking if an address isin a module

From: Ingo Molnar
Date: Thu Jun 26 2008 - 07:49:15 EST



* Rusty Russell <rusty@xxxxxxxxxxxxxxx> wrote:

> On Thursday 12 June 2008 10:20:58 Rusty Russell wrote:
> > Or, we could actually make those as variables and update them in module.c
> > itself. No arch changes required, and pretty easy to understand.
>
> And since you didn't reply, here's the patch.
>
> modules: Take a shortcut for checking if an address is in a module
>
> This patch keeps track of the boundaries of module allocation, in
> order to speed up module_text_address().
>
> Inspired by Arjan's version, which required arch-specific defines:

great - i've also put this into tip/out-of-tree for more testing.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/