tracing: Use one prologue for the wakeup tracer function tracers
authorSteven Rostedt <srostedt@redhat.com>
Tue, 5 Oct 2010 20:38:49 +0000 (16:38 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 18 Oct 2010 14:53:33 +0000 (10:53 -0400)
commit542181d3769d001c59cd17573dd4381e87d215f2
treeffb13617cd0fee70cdd1a9eb869daca272b07454
parent7495a5beaa22f190f4888aa8cbe4827c16575d0a
tracing: Use one prologue for the wakeup tracer function tracers

The wakeup tracer has three types of function tracers. Normal
function tracer, function graph entry, and function graph return.
Each of these use a complex dance to prevent recursion and whether
to trace the data or not (depending on the wake_task variable).

This patch moves the duplicate code into a single routine, to
prevent future mistakes with modifying duplicate complex code.

Cc: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_sched_wakeup.c