aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_events.c
diff options
context:
space:
mode:
authorYuanhan Liu <yuanhan.liu@linux.intel.com>2010-11-08 01:05:12 -0500
committerSteven Rostedt <rostedt@goodmis.org>2011-03-10 10:34:51 -0500
commit56355b83e2a24ce7e1870c8479205e2cdd332225 (patch)
treee85804c55de4f125332d8052c9181d2b8ae84a20 /kernel/trace/trace_events.c
parent31274d72f01604f4b02d933b4f3cac84d2c201fd (diff)
tracing: Export trace_set_clr_event()
Trace events belonging to a module only exists when the module is loaded. Well, we can use trace_set_clr_event funtion to enable some trace event at the module init routine, so that we will not miss something while loading then module. So, Export the trace_set_clr_event function so that module can use it. Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> LKML-Reference: <1289196312-25323-1-git-send-email-yuanhan.liu@linux.intel.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@redhat.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r--kernel/trace/trace_events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index e1d579b19834..e88f74fe1d4c 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -325,6 +325,7 @@ int trace_set_clr_event(const char *system, const char *event, int set)
325{ 325{
326 return __ftrace_set_clr_event(NULL, system, event, set); 326 return __ftrace_set_clr_event(NULL, system, event, set);
327} 327}
328EXPORT_SYMBOL_GPL(trace_set_clr_event);
328 329
329/* 128 should be much more than enough */ 330/* 128 should be much more than enough */
330#define EVENT_BUF_SIZE 127 331#define EVENT_BUF_SIZE 127