Skip to content

Commit 0da310e

Browse files
zongboxpaul-walmsley-sifive
authored andcommitted
riscv: gcov: enable gcov for RISC-V
This patch enables GCOV code coverage measurement on RISC-V. Lightly tested on QEMU and Hifive Unleashed board, seems to work as expected. Signed-off-by: Zong Li <[email protected]> Reviewed-by: Anup Patel <[email protected]> Acked-by: Jonathan Corbet <[email protected]> Signed-off-by: Paul Walmsley <[email protected]>
1 parent ac51e00 commit 0da310e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Documentation/features/debug/gcov-profile-all/arch-support.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
| openrisc: | TODO |
2424
| parisc: | TODO |
2525
| powerpc: | ok |
26-
| riscv: | TODO |
26+
| riscv: | ok |
2727
| s390: | ok |
2828
| sh: | ok |
2929
| sparc: | TODO |

arch/riscv/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ config RISCV
6464
select SPARSEMEM_STATIC if 32BIT
6565
select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
6666
select HAVE_ARCH_MMAP_RND_BITS if MMU
67+
select ARCH_HAS_GCOV_PROFILE_ALL
6768

6869
config ARCH_MMAP_RND_BITS_MIN
6970
default 18 if 64BIT

0 commit comments

Comments
 (0)