Re: [PATCH v2] build: force compiler to use atomics when coverage is enabled

2025-07-16 Thread Jan Beulich
On 16.07.2025 23:23, Volodymyr Babchuk wrote: > By default GCC uses "simple" coverage counter update > mechanism. It is perfectly fine for single-threaded (or single CPU in > our case) setups, but will cause race conditions on SMP systems. > > For example, I observed that counters are going backwa

[PATCH v2] build: force compiler to use atomics when coverage is enabled

2025-07-16 Thread Volodymyr Babchuk
By default GCC uses "simple" coverage counter update mechanism. It is perfectly fine for single-threaded (or single CPU in our case) setups, but will cause race conditions on SMP systems. For example, I observed that counters are going backwards when running Xen inside QEMU. GCC starting from ver