summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2010-10-15 04:12:28 (GMT)
committerIngo Molnar <mingo@elte.hu>2010-10-15 04:12:28 (GMT)
commit0fdf13606b67f830559abdaad15980c7f4f05ec4 (patch)
treedd69bf50a6d27cd15f1876657584e4e2b526d9d8 /Makefile
parentd9d572a9c0195486e3baf0d8d6a710196a707335 (diff)
parentcf4db2597ae93b60efc0a7a4ec08690b75d629b1 (diff)
downloadlinux-fsl-qoriq-0fdf13606b67f830559abdaad15980c7f4f05ec4.tar.xz
Merge branch 'tip/perf/recordmcount-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/core
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 534c09c..c2362c2 100644
--- a/Makefile
+++ b/Makefile
@@ -568,6 +568,12 @@ endif
ifdef CONFIG_FUNCTION_TRACER
KBUILD_CFLAGS += -pg
+ifdef CONFIG_DYNAMIC_FTRACE
+ ifdef CONFIG_HAVE_C_RECORDMCOUNT
+ BUILD_C_RECORDMCOUNT := y
+ export BUILD_C_RECORDMCOUNT
+ endif
+endif
endif
# We trigger additional mismatches with less inlining