[PATCH RFC 0/5] perf: Add ioctl to emit sideband events

From: Adrian Hunter
Date: Fri Apr 14 2023 - 04:23:32 EST


Hi

Here is a stab at adding an ioctl for sideband events.

This is to overcome races when reading the same information
from /proc.

To keep it simple, the ioctl is limited to emitting existing
sideband events (fork, namespaces, comm, mmap) to an already
active context.

There are not yet any perf tools patches at this stage.


Adrian Hunter (5):
perf: Add ioctl to emit sideband events
perf: Add fork to the sideband ioctl
perf: Add namespaces to the sideband ioctl
perf: Add comm to the sideband ioctl
perf: Add mmap to the sideband ioctl

include/uapi/linux/perf_event.h | 19 ++-
kernel/events/core.c | 315 +++++++++++++++++++++++++++++++++-------
2 files changed, 280 insertions(+), 54 deletions(-)


Regards
Adrian