kernel_optimize_test/kernel/trace
Steven Rostedt ccf3672d53 ftrace: Consolidate arch dependent functions with 'list' function
As the function tracer starts to get more features, the support for
theses features will spread out throughout the different architectures
over time. These features boil down to what each arch does in the
mcount trampoline (the ftrace_caller).

Currently there's two features that are not the same throughout the
archs.

 1) Support to stop function tracing before the callback
 2) passing of the ftrace ops

Both of these require placing an indirect function to support the
features if the mcount trampoline does not.

On a side note, for all architectures, when more than one callback
is registered to the function tracer, an intermediate 'list' function
is called by the mcount trampoline to iterate through the callbacks
that are registered.

Instead of making a separate function for each of these features,
and requiring several indirect calls, just use the single 'list' function
as the intermediate, to handle all cases. If an arch does not support
the 'stop function tracing' or the passing of ftrace ops, just force
it to use the list function that will handle the features required.

This makes the code cleaner and simpler and removes a lot of
 #ifdefs in the code.

Link: http://lkml.kernel.org/r/20120612225424.495625483@goodmis.org

Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2012-07-19 13:18:22 -04:00
..
blktrace.c
ftrace.c ftrace: Consolidate arch dependent functions with 'list' function 2012-07-19 13:18:22 -04:00
Kconfig Merge branch 'perf-uprobes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-05-24 11:39:34 -07:00
Makefile Merge branch 'perf-uprobes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-05-24 11:39:34 -07:00
power-traces.c
ring_buffer_benchmark.c
ring_buffer.c Merge branch 'linus' into perf/core 2012-07-18 11:17:17 +02:00
rpm-traces.c
trace_branch.c
trace_clock.c
trace_entries.h
trace_event_perf.c ftrace: Pass ftrace_ops as third parameter to function trace callback 2012-07-19 13:17:35 -04:00
trace_events_filter_test.h
trace_events_filter.c
trace_events.c ftrace: Pass ftrace_ops as third parameter to function trace callback 2012-07-19 13:17:35 -04:00
trace_export.c
trace_functions_graph.c tracing: Remove NR_CPUS array from trace_iterator 2012-06-28 13:52:15 -04:00
trace_functions.c ftrace: Pass ftrace_ops as third parameter to function trace callback 2012-07-19 13:17:35 -04:00
trace_irqsoff.c ftrace: Pass ftrace_ops as third parameter to function trace callback 2012-07-19 13:17:35 -04:00
trace_kdb.c
trace_kprobe.c
trace_mmiotrace.c
trace_nop.c
trace_output.c tracing: Register the ftrace internal events during early boot 2012-06-14 15:22:14 -04:00
trace_output.h
trace_printk.c
trace_probe.c
trace_probe.h
trace_sched_switch.c
trace_sched_wakeup.c ftrace: Pass ftrace_ops as third parameter to function trace callback 2012-07-19 13:17:35 -04:00
trace_selftest_dynamic.c
trace_selftest.c ftrace: Pass ftrace_ops as third parameter to function trace callback 2012-07-19 13:17:35 -04:00
trace_stack.c ftrace: Pass ftrace_ops as third parameter to function trace callback 2012-07-19 13:17:35 -04:00
trace_stat.c
trace_stat.h
trace_syscalls.c
trace_uprobe.c
trace.c tracing: Check for allocation failure in __tracing_open() 2012-07-11 19:56:26 -04:00
trace.h tracing: Remove NR_CPUS array from trace_iterator 2012-06-28 13:52:15 -04:00