Skip to content

Commit e6f85cb

Browse files
mrutland-armwilldeacon
authored andcommitted
arm64: entry: fix KCOV suppression
We suppress KCOV for entry.o rather than entry-common.o. As entry.o is built from entry.S, this is pointless, and permits instrumentation of entry-common.o, which is built from entry-common.c. Fix the Makefile to suppress KCOV for entry-common.o, as we had intended to begin with. I've verified with objdump that this is working as expected. Fixes: bf6fa2c ("arm64: entry: don't instrument entry code with KCOV") Signed-off-by: Mark Rutland <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: James Morse <[email protected]> Cc: Marc Zyngier <[email protected]> Cc: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 31a7f0f commit e6f85cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ CFLAGS_syscall.o += -fno-stack-protector
1717
# It's not safe to invoke KCOV when portions of the kernel environment aren't
1818
# available or are out-of-sync with HW state. Since `noinstr` doesn't always
1919
# inhibit KCOV instrumentation, disable it for the entire compilation unit.
20-
KCOV_INSTRUMENT_entry.o := n
20+
KCOV_INSTRUMENT_entry-common.o := n
2121
KCOV_INSTRUMENT_idle.o := n
2222

2323
# Object file lists.

0 commit comments

Comments
 (0)