• Steven Rostedt (VMware)'s avatar
    tracing/ftrace: Allow for instances to trigger their own stacktrace probes · dcc19d28
    Steven Rostedt (VMware) authored
    Have the stacktrace function trigger probe trigger stack traces within the
    instance that they were added to in the set_ftrace_filter.
    
     ># cd /sys/kernel/debug/tracing
     ># mkdir instances/foo
     ># cd instances/foo
     ># echo schedule:stacktrace:1 > set_ftrace_filter
     ># cat trace
     # tracer: nop
     #
     # entries-in-buffer/entries-written: 1/1   #P:4
     #
     #                              _-----=> irqs-off
     #                             / _----=> need-resched
     #                            | / _---=> hardirq/softirq
     #                            || / _--=> preempt-depth
     #                            ||| /     delay
     #           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
     #              | |       |   ||||       |         |
               <idle>-0     [001] .N.2   202.585010: <stack trace>
      =>
      => schedule
      => schedule_preempt_disabled
      => do_idle
      => cpu_startup_entry
      => start_secondary
      => verify_cpu
    Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
    dcc19d28
trace_functions.c 17.6 KB