• Steven Rostedt's avatar
    tracing: explain why stack tracer is empty · e447e1df
    Steven Rostedt authored
    If the stack tracing is disabled (by default) the stack_trace file
    will only contain the header:
    
     # cat /debug/tracing/stack_trace
            Depth    Size      Location    (0 entries)
            -----    ----      --------
    
    This can be frustrating to a developer that does not realize that the
    stack tracer is disabled. This patch adds the following text:
    
      # cat /debug/tracing/stack_trace
            Depth    Size      Location    (0 entries)
            -----    ----      --------
     #
     #  Stack tracer disabled
     #
     # To enable the stack tracer, either add 'stacktrace' to the
     # kernel command line
     # or 'echo 1 > /proc/sys/kernel/stack_tracer_enabled'
     #
    Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
    e447e1df
trace_stack.c 7.72 KB