Skip to content

Commit dcf78ee

Browse files
khoroshilovpaulburton
authored andcommitted
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 <[email protected]> Signed-off-by: Paul Burton <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: James Hogan <[email protected]> Cc: [email protected] Cc: [email protected]
1 parent 53949e0 commit dcf78ee

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

arch/mips/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ config MIPS
8787
select SYSCTL_EXCEPTION_TRACE
8888
select VIRT_TO_BUS
8989
select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI)
90+
select ARCH_HAS_KCOV
91+
select HAVE_GCC_PLUGINS
9092

9193
menu "Machine selection"
9294

arch/mips/vdso/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ CFLAGS_REMOVE_vdso.o = -pg
7575

7676
GCOV_PROFILE := n
7777
UBSAN_SANITIZE := n
78+
KCOV_INSTRUMENT := n
7879

7980
#
8081
# Shared build commands.

0 commit comments

Comments
 (0)