Re: [PATCH] perf test: Fix race in "Event re-armed with PERF_EVENT_IOC_REFRESH"
From: Namhyung Kim
Date: Sun Nov 29 2026 - 18:42:24 EST
On Mon, 23 Nov 2026 15:34:29 +0000, James Clark wrote:
> trigger() is invoked without blocking, but the test expects N events to
> always be received for N triggers. After each trigger, the event is
> disabled and only re-enabled by the signal handler. If the next trigger
> happens before the event is re-enabled, then an event count will be
> dropped. This is possible because signals are delivered asynchronously.
> Fix it by blocking signals then unblocking while waiting for the event
> after each call to trigger().
>
> [...]
Applied to perf-tools-next, thanks!
Best regards
Namhyung