Re: [PATCH RFC 0/5] perf: Add ioctl to emit sideband events
From: Peter Zijlstra
Date: Mon Apr 17 2023 - 07:05:06 EST
On Fri, Apr 14, 2023 at 11:22:55AM +0300, Adrian Hunter wrote:
> Hi
>
> Here is a stab at adding an ioctl for sideband events.
>
> This is to overcome races when reading the same information
> from /proc.
What races? Are you talking about reading old state in /proc the kernel
delivering a sideband event for the new state, and then you writing the
old state out?
Surely that's something perf tool can fix without kernel changes?