diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-04-10 18:12:50 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-04-14 12:58:01 -0400 |
commit | 17c873ec280a03894bc718af817f7f24fa787ae1 (patch) | |
tree | 3acdcd41c2b80c207932625cc5e132056954d803 /kernel/trace/trace.c | |
parent | a59fd6027218bd7c994e39d14afe0242f895144f (diff) |
tracing/events: add export symbols for trace events in modules
Impact: let modules add trace events
The trace event code requires some functions to be exported to allow
modules to use TRACE_EVENT. This patch adds EXPORT_SYMBOL_GPL to the
necessary functions.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index c0047fcf7076..2d69b26b3cc9 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -176,6 +176,7 @@ int filter_current_check_discard(struct ftrace_event_call *call, void *rec, | |||
176 | { | 176 | { |
177 | return filter_check_discard(call, rec, global_trace.buffer, event); | 177 | return filter_check_discard(call, rec, global_trace.buffer, event); |
178 | } | 178 | } |
179 | EXPORT_SYMBOL_GPL(filter_current_check_discard); | ||
179 | 180 | ||
180 | cycle_t ftrace_now(int cpu) | 181 | cycle_t ftrace_now(int cpu) |
181 | { | 182 | { |
@@ -886,6 +887,7 @@ trace_current_buffer_lock_reserve(unsigned char type, unsigned long len, | |||
886 | return trace_buffer_lock_reserve(&global_trace, | 887 | return trace_buffer_lock_reserve(&global_trace, |
887 | type, len, flags, pc); | 888 | type, len, flags, pc); |
888 | } | 889 | } |
890 | EXPORT_SYMBOL(trace_current_buffer_lock_reserve); | ||
889 | 891 | ||
890 | void trace_current_buffer_unlock_commit(struct ring_buffer_event *event, | 892 | void trace_current_buffer_unlock_commit(struct ring_buffer_event *event, |
891 | unsigned long flags, int pc) | 893 | unsigned long flags, int pc) |
@@ -903,6 +905,7 @@ void trace_current_buffer_discard_commit(struct ring_buffer_event *event) | |||
903 | { | 905 | { |
904 | ring_buffer_discard_commit(global_trace.buffer, event); | 906 | ring_buffer_discard_commit(global_trace.buffer, event); |
905 | } | 907 | } |
908 | EXPORT_SYMBOL_GPL(trace_nowake_buffer_unlock_commit); | ||
906 | 909 | ||
907 | void | 910 | void |
908 | trace_function(struct trace_array *tr, | 911 | trace_function(struct trace_array *tr, |