Rusty Russell 3a642e99ba 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:

	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.

	This is due to the new backtracer code which looks at every
	slot on the stack to see if it's a kernel/module text address,
	so that's 1024 slots.  1024 times 100 modules... that's a lot
	of list walking.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2008-07-22 19:24:28 +10:00
..
2008-07-17 23:57:20 +02:00
2008-05-01 08:03:59 -07:00
2008-07-16 18:02:33 -07:00
2008-03-30 14:18:41 -07:00
2008-01-25 21:08:29 +01:00
2008-06-24 10:52:55 -05:00
2008-05-01 13:08:16 -04:00
2008-07-16 23:27:03 +02:00
2008-04-29 08:05:59 -07:00
2008-07-02 15:06:24 -06:00
2008-07-16 18:02:33 -07:00
2008-05-23 20:39:40 +02:00
2008-02-06 10:41:02 -08:00
2008-02-05 09:44:07 -08:00
2008-04-30 08:29:48 -07:00
2008-04-30 08:29:53 -07:00
2008-02-08 09:22:31 -08:00
2008-07-04 10:40:04 -07:00