tracing: add support for userspace stacktraces in tracing/iter_ctrl
authorTörök Edwin <edwintorok@gmail.com>
Sat, 22 Nov 2008 11:28:47 +0000 (13:28 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 23 Nov 2008 08:25:15 +0000 (09:25 +0100)
commit02b67518e2b1c490787dac7f35e1204e74fe21ba
treea3d92846e1a09a829f300ab15726ee9c288cb49e
parenta0a70c735ef714fe1b6777b571630c3d50c7b008
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>
Documentation/ftrace.txt
arch/x86/kernel/stacktrace.c
include/linux/stacktrace.h
kernel/trace/trace.c
kernel/trace/trace.h