mbox series

[0/4] libtracefs: More updates and fixes to mmap code

Message ID 20240109205112.74225-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series libtracefs: More updates and fixes to mmap code | expand

Message

Steven Rostedt Jan. 9, 2024, 8:48 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

Changed the iterator to use memory mapping when possible, which also
triggered bugs in the unit tests. Those were fixed here too.

Steven Rostedt (Google) (4):
  libtracefs: Unmap mmap mapping on tracefs_cpu close
  libtracefs: Use tracefs_cpu_*_buf() calls for iterator
  libtracefs: Use mmapping for iterating raw events
  libtracefs: Have tracefs_cpu_flush(_buf)() use mapping

 src/tracefs-events.c | 57 +++++++++++++-------------------------------
 src/tracefs-record.c | 11 +++++++++
 2 files changed, 27 insertions(+), 41 deletions(-)