• Steven Rostedt's avatar
    tracing: Use one prologue for the preempt irqs off tracer function tracers · 5e6d2b9c
    Steven Rostedt authored
    The preempt and irqsoff tracers have 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 if interrupts are enabled or not).
    
    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>
    5e6d2b9c
trace_irqsoff.c 15.3 KB