summaryrefslogtreecommitdiff
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2008-08-14 15:45:10 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-14 10:34:51 +0200
commit29e71abf56cebc5c5a4e184a6eb4360cc58554ad (patch)
tree2e86f88ce888e15c3d5aa007795092194a0f24c8 /include/linux/kernel.h
parent90d595fe5ca4b685465c068907e6e554760abea8 (diff)
downloadlinux-3.10-29e71abf56cebc5c5a4e184a6eb4360cc58554ad.tar.gz
linux-3.10-29e71abf56cebc5c5a4e184a6eb4360cc58554ad.tar.bz2
linux-3.10-29e71abf56cebc5c5a4e184a6eb4360cc58554ad.zip
ftrace: rebuild everything on change to FTRACE_MCOUNT_RECORD
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> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 75d81f157d2..ecce4a4ccd5 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -486,4 +486,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