diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2016-12-07 10:36:05 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-12-12 12:10:15 +0100 |
commit | b5cb9bf8dd2ce94a2de507bc7546d965cbd421a6 (patch) | |
tree | 969308df339402228d40723fb1451bf1decce88b /arch | |
parent | a521b048bc8c5d3c57a468c2cba70eb60e873616 (diff) |
s390: exclude early C code from gcov profiling
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/kernel/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/kernel/Makefile b/arch/s390/kernel/Makefile index 1f0fe98f6db9..18bd8ccd2d21 100644 --- a/arch/s390/kernel/Makefile +++ b/arch/s390/kernel/Makefile @@ -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 |