tracing/events: convert event call sites to use a link list
authorSteven Rostedt <srostedt@redhat.com>
Fri, 10 Apr 2009 17:52:20 +0000 (13:52 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 14 Apr 2009 16:58:00 +0000 (12:58 -0400)
commita59fd6027218bd7c994e39d14afe0242f895144f
treec22e6ff2924726319eac84c480eca72066bad660
parentf42c85e74faa422cf0bc747ed808681145448f88
tracing/events: convert event call sites to use a link list

Impact: makes it possible to define events in modules

The events are created by reading down the section that they are linked
in by the macros. But this is not scalable to modules. This patch converts
the manipulations to use a global link list, and on boot up it adds
the items in the section to the list.

This change will allow modules to add their tracing events to the list as
well.

Note, this change alone does not permit modules to use the TRACE_EVENT macros,
but the change is needed for them to eventually do so.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace_event.h
kernel/trace/trace.h
kernel/trace/trace_event_profile.c
kernel/trace/trace_events.c
kernel/trace/trace_events_filter.c