diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-05-12 15:20:54 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 15:13:23 -0400 |
commit | d05cdb25d80f06f77aa6bddb53cd1390d4d91a0b (patch) | |
tree | 6c7f70f5252cbd42a1949c2d7019fe9f337bd205 /kernel/trace/trace.h | |
parent | 06fa75ab566c50e01bfd7b055bde85cf9b1bc98a (diff) |
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>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 96951a8d09a4..98cbfd05d754 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -244,6 +244,8 @@ extern int unregister_tracer_switch(struct tracer_switch_ops *ops); | |||
244 | 244 | ||
245 | #ifdef CONFIG_DYNAMIC_FTRACE | 245 | #ifdef CONFIG_DYNAMIC_FTRACE |
246 | extern unsigned long ftrace_update_tot_cnt; | 246 | extern unsigned long ftrace_update_tot_cnt; |
247 | #define DYN_FTRACE_TEST_NAME trace_selftest_dynamic_test_func | ||
248 | extern int DYN_FTRACE_TEST_NAME(void); | ||
247 | #endif | 249 | #endif |
248 | 250 | ||
249 | #ifdef CONFIG_FTRACE_STARTUP_TEST | 251 | #ifdef CONFIG_FTRACE_STARTUP_TEST |