diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-12-17 05:40:33 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-17 09:56:19 +0100 |
commit | 61c1917f47f73c968e92d04d15370b1dc3ec4592 (patch) | |
tree | a20445bcaf484d270bd6cb8de5969702110af687 /kernel/trace | |
parent | 5b74ed4729ad2b2017453add68104a83206caefb (diff) | |
download | linux-61c1917f47f73c968e92d04d15370b1dc3ec4592.tar.gz linux-61c1917f47f73c968e92d04d15370b1dc3ec4592.tar.bz2 linux-61c1917f47f73c968e92d04d15370b1dc3ec4592.zip |
perf events, x86/stacktrace: Make stack walking optional
The current print_context_stack helper that does the stack
walking job is good for usual stacktraces as it walks through
all the stack and reports even addresses that look unreliable,
which is nice when we don't have frame pointers for example.
But we have users like perf that only require reliable
stacktraces, and those may want a more adapted stack walker, so
lets make this function a callback in stacktrace_ops that users
can tune for their needs.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1261024834-5336-1-git-send-regression-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace_sysprof.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace_sysprof.c b/kernel/trace/trace_sysprof.c index f6693969287d..a7974a552ca9 100644 --- a/kernel/trace/trace_sysprof.c +++ b/kernel/trace/trace_sysprof.c @@ -93,6 +93,7 @@ static const struct stacktrace_ops backtrace_ops = { .warning_symbol = backtrace_warning_symbol, .stack = backtrace_stack, .address = backtrace_address, + .walk_stack = print_context_stack, }; static int |