tracing: Add helper function trace_create_new_event() to remove duplicate code
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Thu, 9 May 2013 19:00:07 +0000 (15:00 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 10 May 2013 00:14:49 +0000 (20:14 -0400)
Both __trace_add_new_event() and __trace_early_add_new_event() do
basically the same thing, except that __trace_add_new_event() does
a little more.

Instead of having duplicate code between the two functions, add
a helper function trace_create_new_event() that both can use.
This will help against having bugs fixed in one function but not
the other.

Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events.c

Simple merge