Re: [PATCH 0/2] selftests/perf_events: fix test fail with optimizations

From: Marco Elver

Date: Tue May 26 2026 - 06:06:03 EST


On Sun, 24 May 2026 at 19:02, Eva Kurchatova
<eva.kurchatova@xxxxxxxxxxxxx> wrote:
>
> This patchset fixes incorrect atomics and volatile usage, which caused
> test failures when compiler optimizations were enabled previously.
>
> Eva Kurchatova (2):
> selftests/perf_events: fix sigtrap_threads tests fail with -O2
> selftests/perf_events: replace volatile with READ_ONCE/WRITE_ONCE
>
> .../selftests/perf_events/sigtrap_threads.c | 42 ++++++++++---------
> 1 file changed, 23 insertions(+), 19 deletions(-)

Reviewed-by: Marco Elver <elver@xxxxxxxxxx>

Thanks for the fix.