Re: [RFC PATCH 1/3] llvm-cov: add Clang's Source-based Code Coverage support

2024-08-25 Thread Thomas Gleixner
On Sat, Aug 24 2024 at 18:06, Wentao Zhang wrote: > Makefile | 3 + > arch/Kconfig | 1 + > arch/x86/Kconfig | 1 + > arch/x86/kernel/vmlinux.lds.S | 2 + > include/asm-generic/vmlinux.lds.h | 38 + > kernel/Makefile

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

2024-08-25 Thread Thomas Gleixner
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 > Signed-off-by: Chuck Wolber This Signed-off-by chain is broken. See Doc

[PATCH v2 8/8] x86/module: enable ROX caches for module text

2024-08-25 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" Enable execmem's cache of PMD_SIZE'ed pages mapped as ROX for module text allocations. Signed-off-by: Mike Rapoport (Microsoft) --- arch/x86/mm/init.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/x86/mm/in

[PATCH v2 7/8] execmem: add support for cache of large ROX pages

2024-08-25 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" Using large pages to map text areas reduces iTLB pressure and improves performance. Extend execmem_alloc() with an ability to use PMD_SIZE'ed pages with ROX permissions as a cache for smaller allocations. To populate the cache, a writable large page is allocate