Skip to content

RFC perf: Add ioctl to emit sideband events

Adrian Hunter linux-perf-users lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5perf: Add ioctl to emit sideband eventsinclude/uapi/linux/perf_event.h kernel/events/core.c+103 -32 replies
2/5perf: Add fork to the sideband ioctlkernel/events/core.c+73 -150 replies
3/5perf: Add namespaces to the sideband ioctlkernel/events/core.c+16 -100 replies
4/5perf: Add comm to the sideband ioctlkernel/events/core.c+19 -120 replies
5/5perf: Add mmap to the sideband ioctlkernel/events/core.c+73 -180 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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