]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
s390: exclude early C code from gcov profiling
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 7 Dec 2016 09:36:05 +0000 (10:36 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 12 Dec 2016 11:10:15 +0000 (12:10 +0100)
Early C code must be excluded from gcov profiling since it may write
to the bss section before
- a potential initrd that resides there is rescued
- the bss section is initialized (zeroed)

This patch only addresses the problem that early code is instrumented
for profiling, but not the problem that it jumps into other code that
is still instrumented. That problem will be fixed with a follow-on
patch.

Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/Makefile

index 1f0fe98f6db927cea10038e5b0adbfaa57dbab93..18bd8ccd2d21e6bef5537acd1140619fe8a7f169 100644 (file)
@@ -46,6 +46,7 @@ CFLAGS_als.o          += -march=z900
 AFLAGS_REMOVE_head.o   += $(CC_FLAGS_MARCH)
 AFLAGS_head.o          += -march=z900
 endif
+GCOV_PROFILE_early.o := n
 GCOV_PROFILE_sclp.o := n
 GCOV_PROFILE_als.o := n
 UBSAN_SANITIZE_als.o := n