Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: allow building with kcov coverage

Add ARCH_HAS_KCOV and HAVE_GCC_PLUGINS to MIPS config.
Disable instrumentation of vdso to avoid build failure.

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

authored by

Alexey Khoroshilov and committed by
Paul Burton
dcf78ee6 53949e0a

+3
+2
arch/mips/Kconfig
··· 87 87 select SYSCTL_EXCEPTION_TRACE 88 88 select VIRT_TO_BUS 89 89 select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI) 90 + select ARCH_HAS_KCOV 91 + select HAVE_GCC_PLUGINS 90 92 91 93 menu "Machine selection" 92 94
+1
arch/mips/vdso/Makefile
··· 75 75 76 76 GCOV_PROFILE := n 77 77 UBSAN_SANITIZE := n 78 + KCOV_INSTRUMENT := n 78 79 79 80 # 80 81 # Shared build commands.