mbox series

[0/3] libtracefs: Enable ring buffer user space memory mapping

Message ID 20240723220853.489058-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series libtracefs: Enable ring buffer user space memory mapping | expand

Message

Steven Rostedt July 23, 2024, 10:07 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

Now that the ring buffer memory mapping is officially part of the Linux
Kernel as of v6.10, enable it in the library.

Also add sample code to use it and make a fix in the self tests.

Steven Rostedt (Google) (3):
  libtracefs: Enable mmapped ring buffer
  libtracefs: Add cpu-map sample to trace mapped buffer
  libtracefs utest: Add better logic to cause missed events

 samples/Makefile      |  2 +
 samples/cpu-map.c     | 90 +++++++++++++++++++++++++++++++++++++++++++
 src/tracefs-mmap.c    | 10 ++---
 utest/tracefs-utest.c | 15 +++++++-
 4 files changed, 108 insertions(+), 9 deletions(-)
 create mode 100644 samples/cpu-map.c