Skip to content
  • Steven Rostedt's avatar
    ftrace: change function graph tracer to use new in_nmi · 9a5fd902
    Steven Rostedt authored
    
    
    The function graph tracer piggy backed onto the dynamic ftracer
    to use the in_nmi custom code for dynamic tracing. The problem
    was (as Andrew Morton pointed out) it really only wanted to bail
    out if the context of the current CPU was in NMI context. But the
    dynamic ftrace in_nmi custom code was true if _any_ CPU happened
    to be in NMI context.
    
    Now that we have a generic in_nmi interface, this patch changes
    the function graph code to use it instead of the dynamic ftarce
    custom code.
    
    Reported-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
    9a5fd902