tracing: Factorize the events profile accounting
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 17 Sep 2009 22:54:43 +0000 (00:54 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Fri, 18 Sep 2009 04:14:32 +0000 (06:14 +0200)
commite5e25cf47b0bdd1f7e9b8bb6368ee48e16de0c87
tree043e6215359853812130324a24e3d03511b41e2b
parent0efb4d20723d58edbad29d1ff98a86b631adb5e6
tracing: Factorize the events profile accounting

Factorize the events enabling accounting in a common tracing core
helper. This reduces the size of the profile_enable() and
profile_disable() callbacks for each trace events.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Jason Baron <jbaron@redhat.com>
Cc: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
include/linux/ftrace_event.h
include/linux/syscalls.h
include/trace/ftrace.h
kernel/trace/trace_event_profile.c