Re: [PATCH v5 07/10] perf sched stats: Add support for live mode

From: Ian Rogers

Date: Tue Mar 03 2026 - 13:47:37 EST


On Mon, Jan 19, 2026 at 10:02 AM Swapnil Sapkal <swapnil.sapkal@xxxxxxx> wrote:
[ snip ]
> + /* wait for signal */
> + pause();

I'm seeing the perf sched stats test hang here, requiring me to kill
the perf process started by the test. It is unclear what signal is
being waited upon, but is there a race condition where the signal
could have occurred before the pause? Should the pause at least be
conditional on that happening? Given that a race condition would exist
even with a test, would it be better to use a condition variable?

Thanks,
Ian