]> Git Repo - linux.git/commit
arm64: Add ftrace support
authorAKASHI Takahiro <[email protected]>
Wed, 30 Apr 2014 09:54:33 +0000 (18:54 +0900)
committerWill Deacon <[email protected]>
Thu, 29 May 2014 08:08:08 +0000 (09:08 +0100)
commit819e50e25d0ce8a75f5cba815416a6a8573655c4
tree006f9d7dc3f97f47709430357651a83ffdc1f86d
parentaf64d2aa872a174772ffc00e2558083f70193acb
arm64: Add ftrace support

This patch implements arm64 specific part to support function tracers,
such as function (CONFIG_FUNCTION_TRACER), function_graph
(CONFIG_FUNCTION_GRAPH_TRACER) and function profiler
(CONFIG_FUNCTION_PROFILER).

With 'function' tracer, all the functions in the kernel are traced with
timestamps in ${sysfs}/tracing/trace. If function_graph tracer is
specified, call graph is generated.

The kernel must be compiled with -pg option so that _mcount() is inserted
at the beginning of functions. This function is called on every function's
entry as long as tracing is enabled.
In addition, function_graph tracer also needs to be able to probe function's
exit. ftrace_graph_caller() & return_to_handler do this by faking link
register's value to intercept function's return path.

More details on architecture specific requirements are described in
Documentation/trace/ftrace-design.txt.

Reviewed-by: Ganapatrao Kulkarni <[email protected]>
Acked-by: Will Deacon <[email protected]>
Signed-off-by: AKASHI Takahiro <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
arch/arm64/Kconfig
arch/arm64/include/asm/ftrace.h [new file with mode: 0644]
arch/arm64/kernel/Makefile
arch/arm64/kernel/arm64ksyms.c
arch/arm64/kernel/entry-ftrace.S [new file with mode: 0644]
arch/arm64/kernel/ftrace.c [new file with mode: 0644]
This page took 0.055309 seconds and 4 git commands to generate.