kernel_optimize_test/kernel/trace
Steven Rostedt fed1939c64 ftrace: remove old pointers to mcount
When a mcount pointer is recorded into a table, it is used to add or
remove calls to mcount (replacing them with nops). If the code is removed
via removing a module, the pointers still exist.  At modifying the code
a check is always made to make sure the code being replaced is the code
expected. In-other-words, the code being replaced is compared to what
it is expected to be before being replaced.

There is a very small chance that the code being replaced just happens
to look like code that calls mcount (very small since the call to mcount
is relative). To remove this chance, this patch adds ftrace_release to
allow module unloading to remove the pointers to mcount within the module.

Another change for init calls is made to not trace calls marked with
__init. The tracing can not be started until after init is done anyway.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-10-14 10:35:12 +02:00
..
ftrace.c ftrace: remove old pointers to mcount 2008-10-14 10:35:12 +02:00
Kconfig ftrace: create __mcount_loc section 2008-10-14 10:34:40 +02:00
Makefile Merge branch 'tracing/sysprof' into auto-ftrace-next 2008-07-10 11:43:08 +02:00
trace_functions.c ftrace: use current CPU for function startup 2008-07-11 15:49:21 +02:00
trace_irqsoff.c ftrace: fix modular build 2008-07-26 15:08:22 +02:00
trace_mmiotrace.c x86 mmiotrace: use resource_size_t for phys addresses 2008-05-24 11:27:36 +02:00
trace_sched_switch.c ftrace: port to tracepoints 2008-10-14 10:32:26 +02:00
trace_sched_wakeup.c ftrace: port to tracepoints 2008-10-14 10:32:26 +02:00
trace_selftest_dynamic.c ftrace: fix dynamic ftrace selftest 2008-05-23 21:13:23 +02:00
trace_selftest.c Merge branch 'tracing/sysprof' into auto-ftrace-next 2008-07-10 11:43:08 +02:00
trace_sysprof.c hrtimer: prevent migration of per CPU hrtimers 2008-09-29 17:09:14 +02:00
trace.c tracing: remove unused variable 2008-07-27 09:58:20 -07:00
trace.h Merge branch 'tracing/ftrace' into auto-ftrace-next 2008-07-14 15:58:35 +02:00