android_kernel_motorola_sm6375/kernel/gcov
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nick Desaulniers 431aaecd24 gcov: fix clang-11+ support
commit 60bcf728ee7c60ac2a1f9a0eaceb3a7b3954cd2b upstream.

LLVM changed the expected function signatures for llvm_gcda_start_file()
and llvm_gcda_emit_function() in the clang-11 release.  Users of
clang-11 or newer may have noticed their kernels failing to boot due to
a panic when enabling CONFIG_GCOV_KERNEL=y +CONFIG_GCOV_PROFILE_ALL=y.
Fix up the function signatures so calling these functions doesn't panic
the kernel.

Link: https://reviews.llvm.org/rGcdd683b516d147925212724b09ec6fb792a40041
Link: https://reviews.llvm.org/rG13a633b438b6500ecad9e4f936ebadf3411d0f44
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Nick Desaulniers <[email protected]>
Reported-by: Prasad Sodagudi <[email protected]>
Suggested-by: Nathan Chancellor <[email protected]>
Reviewed-by: Fangrui Song <[email protected]>
Tested-by: Nathan Chancellor <[email protected]>
Acked-by: Peter Oberparleiter <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Cc: <[email protected]>	[5.4+]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-03-30 14:35:23 +02:00
..
base.c gcov: clang support 2019-05-14 19:52:51 -07:00
clang.c gcov: fix clang-11+ support 2021-03-30 14:35:23 +02:00
fs.c kernel/gcov/fs.c: gcov_seq_next() should increase position index 2020-04-29 16:33:00 +02:00
gcc_3_4.c gcov: clang support 2019-05-14 19:52:51 -07:00
gcc_4_7.c gcov: add support for GCC 10.1 2020-09-17 13:47:56 +02:00
gcc_base.c gcov: clang: move common GCC code into gcc_base.c 2019-05-14 19:52:51 -07:00
gcov.h gcov: clang support 2019-05-14 19:52:51 -07:00
Kconfig gcov: add support for GCC 10.1 2020-09-17 13:47:56 +02:00
Makefile gcov: clang support 2019-05-14 19:52:51 -07:00