Thread (37 messages) 37 messages, 8 authors, 2026-03-15

Re: [RFC PATCH 2/3] kbuild, llvm-cov: disable instrumentation in odd or sensitive code

From: Thomas Gleixner <hidden>
Date: 2024-08-25 12:12:30
Also in: linux-arch, linux-efi, linux-kbuild, linux-um, lkml, llvm

On Sat, Aug 24 2024 at 18:06, Wentao Zhang wrote:

The subject line is really not useful. What's 'odd' code?
Disable instrumentation in the same areas that were disabled for
kernel/gcov/
Signed-off-by: Wentao Zhang <redacted>
Signed-off-by: Chuck Wolber <redacted>
This Signed-off-by chain is broken. See Documentation/process/
quoted hunk ↗ jump to hunk
diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile
index 9cc0ff6e9067..2cc2c55af305 100644
--- a/arch/x86/boot/Makefile
+++ b/arch/x86/boot/Makefile
@@ -57,6 +57,7 @@ KBUILD_AFLAGS	:= $(KBUILD_CFLAGS) -D__ASSEMBLY__
 KBUILD_CFLAGS	+= $(call cc-option,-fmacro-prefix-map=$(srctree)/=)
 KBUILD_CFLAGS	+= -fno-asynchronous-unwind-tables
 KBUILD_CFLAGS	+= $(CONFIG_CC_IMPLICIT_FALLTHROUGH)
+LLVM_COV_PROFILE := n
See 7f7f6f7ad654 ("Makefile: remove redundant tool coverage variables")

Also a 'git grep GCOV_PROFILE' shows way more places. Can't LLVM_COV
just use the already existing GCOV_PROFILE annotations or is LLVM_COV
suitable for all the files which have been excluded for GCOV?

GCOV has GCOV_PROFILE_obj.o, GCOV_PROFILE and CONFIG_GCOV_PROFILE_ALL
for a reason, no?

Thanks,

        tglx
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help