]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/events: clean up for ftrace_set_clr_event()
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 8 May 2009 02:31:42 +0000 (10:31 +0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 8 May 2009 12:00:35 +0000 (14:00 +0200)
commitf5926648bf8157085c4db0084431a0dc55f42f57
tree660b7340cadca779314e04b960618d7ac1c7d425
parent0c3c8618e1add4494b4cf0375f38e38836844b57
tracing/events: clean up for ftrace_set_clr_event()

Add a helper function __ftrace_set_clr_event(), and replace some
ftrace_set_clr_event() calls with this helper, thus we don't need any
kstrdup() or kmalloc().

As a side effect, this patch fixes an issue in self tests code, which is
similar to the one fixed in commit 17695ab6fdedf43930be7d52a7923ceaa686ae91
("tracing: append ":*" to internal setting of system events")

It's a small issue and won't cause any bug in fact, but we should do things
right anyway.

[ Impact: prevent spurious event-enabling in tracing self-tests ]

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4A03998E.3020503@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_events.c