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

Eva Kurchatova posted 2 patches 2 weeks, 1 day ago
.../selftests/perf_events/sigtrap_threads.c   | 42 ++++++++++---------
1 file changed, 23 insertions(+), 19 deletions(-)
[PATCH 0/2] selftests/perf_events: fix test fail with optimizations
Posted by Eva Kurchatova 2 weeks, 1 day ago
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(-)

-- 
2.54.0
Re: [PATCH 0/2] selftests/perf_events: fix test fail with optimizations
Posted by Marco Elver 1 week, 6 days ago
On Sun, 24 May 2026 at 19:02, Eva Kurchatova
<eva.kurchatova@virtuozzo.com> 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@google.com>

Thanks for the fix.