Skip to content

Commit c49731a

Browse files
committed
xtensa: enable KCOV support
Select ARCH_HAS_KCOV and set KCOV_INSTRUMENT = n inside arch/xtensa/boot/lib. Signed-off-by: Max Filippov <[email protected]>
1 parent 628ccfc commit c49731a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Documentation/features/debug/kcov/arch-support.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
| sparc: | TODO |
2828
| um: | ok |
2929
| x86: | ok |
30-
| xtensa: | TODO |
30+
| xtensa: | ok |
3131
-----------------------

arch/xtensa/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ config XTENSA
66
select ARCH_HAS_CURRENT_STACK_POINTER
77
select ARCH_HAS_DEBUG_VM_PGTABLE
88
select ARCH_HAS_DMA_PREP_COHERENT if MMU
9+
select ARCH_HAS_KCOV
910
select ARCH_HAS_SYNC_DMA_FOR_CPU if MMU
1011
select ARCH_HAS_SYNC_DMA_FOR_DEVICE if MMU
1112
select ARCH_HAS_DMA_SET_UNCACHED if MMU

arch/xtensa/boot/lib/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ endif
1717

1818
KASAN_SANITIZE := n
1919
KCSAN_SANITIZE := n
20+
KCOV_INSTRUMENT := n
2021

2122
CFLAGS_REMOVE_inflate.o += -fstack-protector -fstack-protector-strong
2223
CFLAGS_REMOVE_zmem.o += -fstack-protector -fstack-protector-strong

0 commit comments

Comments
 (0)