From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> 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 -- 2.43.0
![]() |