public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Tracing: do export trace_set_clr_event
@ 2010-11-08  6:05 Yuanhan Liu
  2010-11-08  9:56 ` Christoph Hellwig
  2011-03-11  9:52 ` [tip:perf/core] tracing: Export trace_set_clr_event() tip-bot for Yuanhan Liu
  0 siblings, 2 replies; 8+ messages in thread
From: Yuanhan Liu @ 2010-11-08  6:05 UTC (permalink / raw)
  To: linux-kernel
  Cc: chris, Yuanhan Liu, Steven Rostedt, Frederic Weisbecker,
	Ingo Molnar

Trace event belongs to a module does exist only 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>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
---
 kernel/trace/trace_events.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index 0725eea..711965b 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -320,6 +320,7 @@ int trace_set_clr_event(const char *system, const char *event, int set)
 {
 	return __ftrace_set_clr_event(NULL, system, event, set);
 }
+EXPORT_SYMBOL_GPL(trace_set_clr_event);
 
 /* 128 should be much more than enough */
 #define EVENT_BUF_SIZE		127
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-03-11  9:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-08  6:05 [PATCH] Tracing: do export trace_set_clr_event Yuanhan Liu
2010-11-08  9:56 ` Christoph Hellwig
2010-11-08 10:14   ` Chris Wilson
2010-11-08 14:02     ` Steven Rostedt
2010-11-08 14:14       ` Christoph Hellwig
2010-11-08 14:23         ` Steven Rostedt
2010-11-09  1:44           ` Yuanhan Liu
2011-03-11  9:52 ` [tip:perf/core] tracing: Export trace_set_clr_event() tip-bot for Yuanhan Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox