Skip to content
  • Steven Rostedt's avatar
    ftrace: stack tracer only record when on stack · 81520a1b
    Steven Rostedt authored
    
    
    The stack trace API does not record if the stack is not on the current
    task's stack. That is, if the stack is the interrupt stack or NMI stack,
    the output does not show. Also, the size of those stacks are not
    consistent with the size of the thread stack, this makes the calculation
    of the stack size usually bogus.
    
    This all confuses the stack tracer. I unfortunately do not have time to
    fix all these problems, but this patch does record the worst stack when
    the stack pointer is on the tasks stack (instead of bogus numbers).
    
    The patch simply returns if the stack pointer is not on the task's stack.
    
    Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    81520a1b