]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: add a tracer to catch execution time of kernel functions
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 11 Nov 2008 06:14:25 +0000 (07:14 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 11 Nov 2008 09:29:12 +0000 (10:29 +0100)
commit9cac2bd06929beec9185271168c3ada62bf78811
treed0a46a918caa64d5fb1ed37be3e026b30e94fe77
parent4ba7ef527e85d1785e937dbbc8d333b43cc3a4fd
tracing: add a tracer to catch execution time of kernel functions

Impact: add new tracing plugin which can trace full (entry+exit) function calls

This tracer uses the low level function return ftrace plugin to
measure the execution time of the kernel functions.

The first field is the caller of the function, the second is the
measured function, and the last one is the execution time in
nanoseconds.

- v3:

- HAVE_FUNCTION_RET_TRACER have been added. Each arch that support ftrace return
  should enable it.
- ftrace_return_stub becomes ftrace_stub.
- CONFIG_FUNCTION_RET_TRACER depends now on CONFIG_FUNCTION_TRACER
- Return traces printing can be used for other tracers on trace.c
- Adapt to the new tracing API (no more ctrl_update callback)
- Correct the check of "disabled" during insertion.
- Minor changes...

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/Kconfig
kernel/trace/Makefile
kernel/trace/ftrace.c
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_functions_return.c [new file with mode: 0644]