]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
commitda511bf33e47ea1f33f4b672f7da166d2a1b8a91
tree3e514023cb9fd7f91c54e0b952ee5c47b76b945a
parent1cf4c0732db3cd3c49cadbc60ff6bda08604e6fa
tracing: Add helper function trace_create_new_event() to remove duplicate code

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