]> Git Repo - linux.git/commitdiff
s390: disable branch profiling for vdso
authorSven Schnelle <[email protected]>
Mon, 7 Sep 2020 15:45:37 +0000 (17:45 +0200)
committerVasily Gorbik <[email protected]>
Mon, 14 Sep 2020 08:30:07 +0000 (10:30 +0200)
When branch profiling is enabled, if () gets annotated with code to
instrument the hit/miss ratio. This doesn't work for VDSO as we can't
access kernel code. Add -DDISABLE_BRANCH_PROFILING to fix this.

Reported-by: Thomas Richter <[email protected]>
Signed-off-by: Sven Schnelle <[email protected]>
Reviewed-by: Heiko Carstens <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
arch/s390/kernel/vdso64/Makefile

index f1c0570780d157b2e0f023e102bceb2c3f31df44..3d3303283181f3e5777df70821fe780178265a52 100644 (file)
@@ -17,7 +17,7 @@ obj-vdso64 := $(addprefix $(obj)/, $(obj-vdso64))
 obj-cvdso64 := $(addprefix $(obj)/, $(obj-cvdso64))
 
 KBUILD_AFLAGS += -DBUILD_VDSO
-KBUILD_CFLAGS += -DBUILD_VDSO
+KBUILD_CFLAGS += -DBUILD_VDSO -DDISABLE_BRANCH_PROFILING
 
 KBUILD_AFLAGS_64 := $(filter-out -m64,$(KBUILD_AFLAGS))
 KBUILD_AFLAGS_64 += -m64 -s
This page took 0.051668 seconds and 4 git commands to generate.