[PATCH v5 07/12] arm: vdso: disable profiling
From: Mark Salyzyn <hidden>
Date: 2017-11-06 21:02:48
Also in:
lkml
Subsystem:
arm port, the rest · Maintainers:
Russell King, Linus Torvalds
Take an effort to recode the arm64 vdso code from assembler to C previously submitted by Andrew Pinski [off-list ref], rework it for use in both arm and arm64, overlapping any optimizations for each architecture. But instead of landing it in arm64, land the result into lib/vdso and unify both implementations to simplify future maintenance. Make sure kasan and ubsan profiling, and kcov instrumentation, is turned off for VDSO code. Signed-off-by: Mark Salyzyn <redacted> Cc: James Morse <james.morse@arm.com> Cc: Russell King <linux@armlinux.org.uk> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <redacted> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Dmitry Safonov <redacted> Cc: John Stultz <redacted> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Laura Abbott <redacted> Cc: Kees Cook <redacted> Cc: Ard Biesheuvel <redacted> Cc: Andy Gross <redacted> Cc: Kevin Brodsky <redacted> Cc: Andrew Pinski <redacted> Cc: Thomas Gleixner <redacted> Cc: linux-kernel at vger.kernel.org Cc: linux-arm-kernel at lists.infradead.org v2: - Added this to the split up of first CL, based on comments in second CL v4: - update commit message to reflect overall reasoning v5: - rebase --- arch/arm/vdso/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm/vdso/Makefile b/arch/arm/vdso/Makefile
index bb4118213fee..d64755a7ec88 100644
--- a/arch/arm/vdso/Makefile
+++ b/arch/arm/vdso/Makefile@@ -27,8 +27,11 @@ CFLAGS_REMOVE_vdso.o = -pg CFLAGS_REMOVE_vgettimeofday.o = -pg -Os CFLAGS_vgettimeofday.o = -O2 -# Disable gcov profiling for VDSO code +# Disable gcov, kasan, ubsan and kcov profiling for VDSO code GCOV_PROFILE := n +KASAN_SANITIZE := n +UBSAN_SANITIZE := n +KCOV_INSTRUMENT := n # Force dependency $(obj)/vdso.o : $(obj)/vdso.so
--
2.15.0.403.gc27cc4dac6-goog