Skip to content

Commit add7490

Browse files
oberparMartin Schwidefsky
authored andcommitted
[S390] vdso: disable gcov profiling
The concepts of VDSO and gcov-based profiling don't mix: the former includes kernel-provided code running in userspace, the latter adds instructions that modify counters in kernel data segments. On s390 this has not been a problem so far due to VDSO code being written in all-assembler which is exempt from gcov-based profiling. This could change in the future, so disable profiling excplicitly for VDSO code. Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent cf2d007 commit add7490

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎arch/s390/kernel/vdso32/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ obj-y += vdso32_wrapper.o
2222
extra-y += vdso32.lds
2323
CPPFLAGS_vdso32.lds += -P -C -U$(ARCH)
2424

25+
# Disable gcov profiling for VDSO code
26+
GCOV_PROFILE := n
27+
2528
# Force dependency (incbin is bad)
2629
$(obj)/vdso32_wrapper.o : $(obj)/vdso32.so
2730

‎arch/s390/kernel/vdso64/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ obj-y += vdso64_wrapper.o
2222
extra-y += vdso64.lds
2323
CPPFLAGS_vdso64.lds += -P -C -U$(ARCH)
2424

25+
# Disable gcov profiling for VDSO code
26+
GCOV_PROFILE := n
27+
2528
# Force dependency (incbin is bad)
2629
$(obj)/vdso64_wrapper.o : $(obj)/vdso64.so
2730

0 commit comments

Comments
 (0)