module: Make the mod_tree stuff conditional on PERF_EVENTS || TRACING
authorPeter Zijlstra <peterz@infradead.org>
Wed, 27 May 2015 01:39:37 +0000 (11:09 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 28 May 2015 02:02:07 +0000 (11:32 +0930)
commit6c9692e2d6a2206d8fd75ea247daa47fb75e4a02
tree260a11511b3b629ec1cbcdeb3417e74590028e99
parent93c2e105f6bcee231c951ba0e56e84505c4b0483
module: Make the mod_tree stuff conditional on PERF_EVENTS || TRACING

Andrew worried about the overhead on small systems; only use the fancy
code when either perf or tracing is enabled.

Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Steven Rostedt <rostedt@goodmis.org>
Requested-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/module.h
init/Kconfig
kernel/module.c