]> git.openfabrics.org - ~emulex/infiniband.git/commit
tracing: add protection around module events unload
authorSteven Rostedt <srostedt@redhat.com>
Tue, 9 Jun 2009 21:29:07 +0000 (17:29 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 9 Jun 2009 21:29:07 +0000 (17:29 -0400)
commit110bf2b764eb6026b868d84499263cb24b1bcc8d
tree66c869f6f96497051c4bda0797e234b3f7b39e8f
parent725c624a58a10ef90a2ff889e122158fabf36147
tracing: add protection around module events unload

When reading the trace buffer, there is a race that when a module
is unloaded it removes events that is stilled referenced in the buffers.
This patch adds the protection around the unloading of the events
from modules and the reading of the trace buffers.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events.c
kernel/trace/trace_output.c
kernel/trace/trace_output.h