tracing: Enable records during the module load
authorJiri Olsa <jolsa@redhat.com>
Tue, 13 Oct 2009 20:33:53 +0000 (16:33 -0400)
committerIngo Molnar <mingo@elte.hu>
Wed, 14 Oct 2009 06:13:54 +0000 (08:13 +0200)
I was debuging some module using "function" and "function_graph"
tracers and noticed, that if you load module after you enabled
tracing, the module's hooks will convert only to NOP instructions.

The attached patch enables modules' hooks if there's function trace
allready on, thus allowing to trace module functions.

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <20091013203425.896285120@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found