summaryrefslogtreecommitdiff
path: root/arch/mips/boot/compressed/Makefile
diff options
context:
space:
mode:
authorXingxing Su <suxingxing@loongson.cn>2020-12-03 10:22:51 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-12-04 15:00:53 +0300
commit8b3165e54566e8bb8f4b7d4e5f12ced78ce462bb (patch)
treed7f2c9af831258975d050bb6c3f8ddc3f3bbccbe /arch/mips/boot/compressed/Makefile
parent79109a515ac3f1009632f4a4c81597e9438a2d65 (diff)
downloadlinux-8b3165e54566e8bb8f4b7d4e5f12ced78ce462bb.tar.xz
MIPS: Enable GCOV
Enable gcov profiling of the entire kernel on mips. Required changes include disabling profiling for: * arch/kernel/boot/compressed: not linked to main kernel. Lightly tested on Loongson 3A3000 an 3A4000, seems to work as expected. without "GCOV_PROFILE := n" in compressed Makefile, build errors as follows: ... ld: arch/mips/boot/compressed/string.o:(.data+0x88): undefined reference to `__gcov_merge_add' ld: arch/mips/boot/compressed/string.o: in function `_GLOBAL__sub_I_00100_0_memcpy': string.c:(.text.startup+0x4): undefined reference to `__gcov_init' ld: arch/mips/boot/compressed/string.o: in function `_GLOBAL__sub_D_00100_1_memcpy': string.c:(.text.exit+0x0): undefined reference to `__gcov_exit' ... Signed-off-by: Youling Tang <tangyouling@loongson.cn> Signed-off-by: Xingxing Su <suxingxing@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/boot/compressed/Makefile')
-rw-r--r--arch/mips/boot/compressed/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed/Makefile
index 4c3bc7e3d56d..47cd9dc7454a 100644
--- a/arch/mips/boot/compressed/Makefile
+++ b/arch/mips/boot/compressed/Makefile
@@ -36,6 +36,7 @@ KBUILD_AFLAGS := $(KBUILD_AFLAGS) -D__ASSEMBLY__ \
# Prevents link failures: __sanitizer_cov_trace_pc() is not linked in.
KCOV_INSTRUMENT := n
+GCOV_PROFILE := n
# decompressor objects (linked with vmlinuz)
vmlinuzobjs-y := $(obj)/head.o $(obj)/decompress.o $(obj)/string.o