Re: [PATCH] arm64: Synchonise dump_backtrace() with perf callchain

2015-10-16 Thread Jungseok Lee
On Oct 16, 2015, at 2:26 AM, Will Deacon wrote: Hi Will, > On Thu, Oct 15, 2015 at 01:21:54PM +, Jungseok Lee wrote: >> dump_backtrace() has its own backtrace logic unlike perf callchain which >> relies on walk_stackframe(). They behave differently when a symbol is >> recorded. Perf writes it

Re: [PATCH] arm64: Synchonise dump_backtrace() with perf callchain

2015-10-15 Thread Will Deacon
On Thu, Oct 15, 2015 at 01:21:54PM +, Jungseok Lee wrote: > dump_backtrace() has its own backtrace logic unlike perf callchain which > relies on walk_stackframe(). They behave differently when a symbol is > recorded. Perf writes it down *before* calling unwind_frame(), but > dump_backtrace() pr

[PATCH] arm64: Synchonise dump_backtrace() with perf callchain

2015-10-15 Thread Jungseok Lee
dump_backtrace() has its own backtrace logic unlike perf callchain which relies on walk_stackframe(). They behave differently when a symbol is recorded. Perf writes it down *before* calling unwind_frame(), but dump_backtrace() prints it out *after* unwind_frame(). As a result, the last valid symbol