arm64: entry: fix KCOV suppression
Mark Rutland
reviewerPATCH 1/1 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.
--- arch/arm64/kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/kernel/Makefile +1 -1
@@ -17,7 +17,7 @@ CFLAGS_syscall.o += -fno-stack-protector # It's not safe to invoke KCOV when portions of the kernel environment aren't # available or are out-of-sync with HW state. Since `noinstr` doesn't always # inhibit KCOV instrumentation, disable it for the entire compilation unit. -KCOV_INSTRUMENT_entry.o := n +KCOV_INSTRUMENT_entry-common.o := n KCOV_INSTRUMENT_idle.o := n # Object file lists.
Signature · 7 lines
2.11.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 7 lines · Mark Rutland
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 fromentry-common.c.Fix the
Makefileto suppress KCOV for entry-common.o, as we had intended to begin with. I've verified with objdump that this is working as expected.
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: entry: fix KCOV suppression
https://git.kernel.org/arm64/c/e6f85cbeb23b
Cheers,
Signature · 10 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel