]> git.karo-electronics.de Git - karo-tx-linux.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)
commit8f31bfe538ebafac187d2d4465a92e1d9ee6d8c2
tree660b7340cadca779314e04b960618d7ac1c7d425
parent74f4fd21664148b8c454cc07bfe74e4dd51cf07b
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 d6bf81ef0f7474434c2a049e8bf3c9146a14dd96
("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