• Steven Rostedt's avatar
    tracing: Use one prologue for the wakeup tracer function tracers · 542181d3
    Steven Rostedt authored
    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: default avatarSteven Rostedt <rostedt@goodmis.org>
    542181d3
trace_sched_wakeup.c 13.8 KB