tracing: add support for userspace stacktraces in tracing/iter_ctrl
Impact: add new (default-off) tracing visualization feature Usage example: mount -t debugfs nodev /sys/kernel/debug cd /sys/kernel/debug/tracing echo userstacktrace >iter_ctrl echo sched_switch >current_tracer echo 1 >tracing_enabled .... run application ... echo 0 >tracing_enabled Then read one of 'trace','latency_trace','trace_pipe'. To get the best output you can compile your userspace programs with frame pointers (at least glibc + the app you are tracing). Signed-off-by:Török Edwin <edwintorok@gmail.com> Signed-off-by:
Ingo Molnar <mingo@elte.hu>
Showing
- Documentation/ftrace.txt 4 additions, 1 deletionDocumentation/ftrace.txt
- arch/x86/kernel/stacktrace.c 57 additions, 0 deletionsarch/x86/kernel/stacktrace.c
- include/linux/stacktrace.h 8 additions, 0 deletionsinclude/linux/stacktrace.h
- kernel/trace/trace.c 93 additions, 0 deletionskernel/trace/trace.c
- kernel/trace/trace.h 9 additions, 0 deletionskernel/trace/trace.h
Loading
Please register or sign in to comment