tracing/events: add support for modules to TRACE_EVENT
authorSteven Rostedt <srostedt@redhat.com>
Fri, 10 Apr 2009 18:53:50 +0000 (14:53 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 14 Apr 2009 16:58:03 +0000 (12:58 -0400)
commit6d723736e472f7a0cd5b62c84152fceead241328
tree8df2f6c47ebdfdeb8979758c877a5abbd9c06aef
parent17c873ec280a03894bc718af817f7f24fa787ae1
tracing/events: add support for modules to TRACE_EVENT

Impact: allow modules to add TRACE_EVENTS on load

This patch adds the final hooks to allow modules to use the TRACE_EVENT
macro. A notifier and a data structure are used to link the TRACE_EVENTs
defined in the module to connect them with the ftrace event tracing system.

It also adds the necessary automated clean ups to the trace events when a
module is removed.

Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace_event.h
include/linux/module.h
include/linux/trace_seq.h
include/trace/ftrace.h
kernel/module.c
kernel/trace/trace_events.c