diff options
| author | Michael Ellerman <michael@ellerman.id.au> | 2009-08-09 15:02:51 -0400 |
|---|---|---|
| committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-08-19 20:29:28 -0400 |
| commit | a15098c90df1ac2b1bfe1d33dd1c47063213aa9a (patch) | |
| tree | 5553a81fe8bf1605f35ecf11170bed4770a8058b /arch/powerpc/kernel/Makefile | |
| parent | 728656506447b3b349d082a7fb99445f9cb0caaa (diff) | |
powerpc: Enable GCOV
Make it possible to enable GCOV code coverage measurement on powerpc.
Lightly tested on 64-bit, seems to work as expected.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/Makefile')
| -rw-r--r-- | arch/powerpc/kernel/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 035946f9d5f..720e8c3b8e9 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile | |||
| @@ -115,6 +115,13 @@ ifneq ($(CONFIG_XMON)$(CONFIG_KEXEC),) | |||
| 115 | obj-y += ppc_save_regs.o | 115 | obj-y += ppc_save_regs.o |
| 116 | endif | 116 | endif |
| 117 | 117 | ||
| 118 | # Disable GCOV in odd or sensitive code | ||
| 119 | GCOV_PROFILE_prom_init.o := n | ||
| 120 | GCOV_PROFILE_ftrace.o := n | ||
| 121 | GCOV_PROFILE_machine_kexec_64.o := n | ||
| 122 | GCOV_PROFILE_machine_kexec_32.o := n | ||
| 123 | GCOV_PROFILE_kprobes.o := n | ||
| 124 | |||
| 118 | extra-$(CONFIG_PPC_FPU) += fpu.o | 125 | extra-$(CONFIG_PPC_FPU) += fpu.o |
| 119 | extra-$(CONFIG_ALTIVEC) += vector.o | 126 | extra-$(CONFIG_ALTIVEC) += vector.o |
| 120 | extra-$(CONFIG_PPC64) += entry_64.o | 127 | extra-$(CONFIG_PPC64) += entry_64.o |
