mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] kbuild: GCOV cleanups following the prefer-atomic fix
@ 2026-10-01 16:57 Konstantin Khorenko
  2026-10-01 16:57 ` [PATCH 1/2] kbuild: use $(CFLAGS_GCOV) in the prefer-atomic try-run test Konstantin Khorenko
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Konstantin Khorenko @ 2026-10-01 16:57 UTC (permalink / raw)
  To: Nathan Chancellor, Nicolas Schier, Peter Oberparleiter, Andrew Morton
  Cc: Masahiro Yamada, Arnd Bergmann, Mikhail Zaslonko, linux-kbuild,
	linux-kernel, Konstantin Khorenko

Two cleanups Peter Oberparleiter suggested while reviewing
commit 56cb9b7d96b2 ("gcov: use atomic counter updates to fix
concurrent access crashes"):

https://lore.kernel.org/e1b6e768-51af-468b-a729-0ed3fceef2f1@linux.ibm.com

Patch 1 makes the prefer-atomic try-run test reuse $(CFLAGS_GCOV)
instead of spelling the flags out again, so the test compiles with the
exact GCOV flags, -fno-tree-loop-im included.

Patch 2 moves the CFLAGS_GCOV block into scripts/Makefile.gcov,
included via include-$(CONFIG_GCOV_KERNEL) like the other
instrumentation makefiles. The try-run also stops running on builds
without GCOV.

Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
---
Konstantin Khorenko (2):
      kbuild: use $(CFLAGS_GCOV) in the prefer-atomic try-run test
      kbuild: move GCOV flags to scripts/Makefile.gcov

 MAINTAINERS           |  1 +
 Makefile              | 22 +---------------------
 scripts/Makefile.gcov | 21 +++++++++++++++++++++
 3 files changed, 23 insertions(+), 21 deletions(-)
---
base-commit: 551c722f40809618230001baccf219193e22fc5a
change-id: 20261001-b4-prep-gcov-82edd7efd6b9

Best regards,
--  
Konstantin Khorenko <khorenko@virtuozzo.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-06  8:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-01 16:57 [PATCH 0/2] kbuild: GCOV cleanups following the prefer-atomic fix Konstantin Khorenko
2026-10-01 16:57 ` [PATCH 1/2] kbuild: use $(CFLAGS_GCOV) in the prefer-atomic try-run test Konstantin Khorenko
2026-10-01 16:57 ` [PATCH 2/2] kbuild: move GCOV flags to scripts/Makefile.gcov Konstantin Khorenko
2026-10-06  8:24 ` [PATCH 0/2] kbuild: GCOV cleanups following the prefer-atomic fix Peter Oberparleiter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®