]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Clean up stack tracing and fix fentry updates
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Thu, 16 Jul 2015 17:24:54 +0000 (13:24 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 21 Jul 2015 02:30:50 +0000 (22:30 -0400)
commit56b6397b0a8b71f5b944dc0299626be406257256
tree637bfb15ecc273161b4a5d49e6abc7b136fca6ac
parentdb7b5c3b39f50ae82c0882d593742a9899469b35
tracing: Clean up stack tracing and fix fentry updates

Akashi Takahiro was porting the stack tracer to arm64 and found some
issues with it. One was that it repeats the top function, due to the
stack frame added by the mcount caller and added by itself. This
was added when fentry came in, and before fentry created its own stack
frame. But x86's fentry now creates its own stack frame, and there's
no need to insert the function again.

This also cleans up the code a bit, where it doesn't need to do something
special for fentry, and doesn't include insertion of a duplicate
entry for the called function being traced.

Link: http://lkml.kernel.org/r/55A646EE.6030402@linaro.org
Some-suggestions-by: Jungseok Lee <jungseoklee85@gmail.com>
Some-suggestions-by: Mark Rutland <mark.rutland@arm.com>
Reported-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_stack.c