ftrace: fix dynamic ftrace selftest
authorSteven Rostedt <rostedt@goodmis.org>
Mon, 12 May 2008 19:20:54 +0000 (21:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 19:13:23 +0000 (21:13 +0200)
commitd05cdb25d80f06f77aa6bddb53cd1390d4d91a0b
tree6c7f70f5252cbd42a1949c2d7019fe9f337bd205
parent06fa75ab566c50e01bfd7b055bde85cf9b1bc98a
ftrace: fix dynamic ftrace selftest

With the adding of the configuration changes in the Makefile to prevent
tracing of functions in the ftrace code, all tracing of all the ftrace
code has been removed. Unfortunately, one of the selftests, relied on
a function to be traced. With the new change, the function was no longer
traced and the test failed.

This patch separates out the test function into its own file so that
we can add the "-pg" flag to the compilation of that function and the
adding of the mcount call to that function.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/trace/Makefile
kernel/trace/trace.h
kernel/trace/trace_selftest.c
kernel/trace/trace_selftest_dynamic.c [new file with mode: 0644]