[PATCH 4/5] ftrace: rebuild everything on change to FTRACE_MCOUNT_RECORD

Previous thread: [PATCH 5/5] ftrace: enable using mcount recording on x86 by Steven Rostedt on Thursday, August 7, 2008 - 11:20 am. (1 message)

Next thread: [PATCH 1/5] ftrace: create __mcount_loc section by Steven Rostedt on Thursday, August 7, 2008 - 11:20 am. (1 message)
From: Steven Rostedt
Date: Thursday, August 7, 2008 - 11:20 am

When enabling or disabling CONFIG_FTRACE_MCOUNT_RECORD, we want a full
kernel compile to handle the adding of the __mcount_loc sections.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
---
 include/linux/kernel.h |    5 +++++
 1 file changed, 5 insertions(+)

Index: linux-tip.git/include/linux/kernel.h
===================================================================
--- linux-tip.git.orig/include/linux/kernel.h	2008-07-28 12:32:01.000000000 -0400
+++ linux-tip.git/include/linux/kernel.h	2008-08-07 13:07:36.000000000 -0400
@@ -480,4 +480,9 @@ struct sysinfo {
 #define NUMA_BUILD 0
 #endif
 
+/* Rebuild everything on CONFIG_FTRACE_MCOUNT_RECORD */
+#ifdef CONFIG_FTRACE_MCOUNT_RECORD
+# define REBUILD_DUE_TO_FTRACE_MCOUNT_RECORD
+#endif
+
 #endif

-- 
--

Previous thread: [PATCH 5/5] ftrace: enable using mcount recording on x86 by Steven Rostedt on Thursday, August 7, 2008 - 11:20 am. (1 message)

Next thread: [PATCH 1/5] ftrace: create __mcount_loc section by Steven Rostedt on Thursday, August 7, 2008 - 11:20 am. (1 message)