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

From: Rusty Russell
Date: Wed Jun 11 2008 - 07:12:29 EST


On Wednesday 11 June 2008 06:05:19 Arjan van de Ven wrote:
> From: Arjan van de Ven <arjan@xxxxxxxxxxxxxxx>
> Subject: [PATCH] modules: Take a shortcut for checking if an address is in
> a module
>
> Various pieces of the kernel (lockdep, latencytop, etc) tend to store
> backtraces, sometimes at a relatively high frequency. In itself this
> isn't a big performance deal (after all you're using diagnostics features),
> but there have been some complaints from people who have over 100 modules
> loaded that this is a tad too slow.

Nothing wrong with the idea, but how about a nice arch_maybe_module_addr()
macro rather than ifdefs in module.c?

Thanks,
Rusty.
--
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/