linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] libtracefs: More fixes for memory mapping ring buffer API
@ 2024-01-10  2:51 Steven Rostedt
  2024-01-10  2:51 ` [PATCH 1/7] libtracefs: Have mapping work with the other tracefs_cpu* functions Steven Rostedt
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Steven Rostedt @ 2024-01-10  2:51 UTC (permalink / raw)
  To: linux-trace-devel; +Cc: Vincent Donnefort, Steven Rostedt (Google)

From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

Now all the read APIs support memory mapped ring buffer.

For those that use splice and pipe, if the tcpu is memory mapped, it will
then fall back to copying directly from the memory map.

Also added a tracfes_mapping_is_supported() API to test if the kernel and
library support memory mapping.

And updated the tests to use memory mapped ring buffers when possible.

Steven Rostedt (Google) (7):
  libtracefs: Have mapping work with the other tracefs_cpu* functions
  libtracefs: Have tracefs_mmap_read() include subbuf meta data
  libtracefs: Have nonblock tracefs_cpu reads set errno EAGAIN
  libtracefs: Fix tracefs_mmap() kbuf usage
  libtracefs: Call mmap ioctl if a refresh happens
  libtracefs: Add tracefs_mapped_is_supported() API
  libtracefs utest: Add tests to use mapping if supported

 Documentation/libtracefs-cpu-map.txt | 38 ++++++++++++---
 Documentation/libtracefs.txt         |  1 +
 include/tracefs.h                    |  1 +
 src/tracefs-events.c                 |  8 +---
 src/tracefs-mmap.c                   | 28 +++++++++--
 src/tracefs-record.c                 | 72 +++++++++++++++++++++++++++-
 utest/tracefs-utest.c                | 69 ++++++++++++++++++--------
 7 files changed, 176 insertions(+), 41 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-01-10  3:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-10  2:51 [PATCH 0/7] libtracefs: More fixes for memory mapping ring buffer API Steven Rostedt
2024-01-10  2:51 ` [PATCH 1/7] libtracefs: Have mapping work with the other tracefs_cpu* functions Steven Rostedt
2024-01-10  2:51 ` [PATCH 2/7] libtracefs: Have tracefs_mmap_read() include subbuf meta data Steven Rostedt
2024-01-10  2:51 ` [PATCH 3/7] libtracefs: Have nonblock tracefs_cpu reads set errno EAGAIN Steven Rostedt
2024-01-10  2:51 ` [PATCH 4/7] libtracefs: Fix tracefs_mmap() kbuf usage Steven Rostedt
2024-01-10  2:51 ` [PATCH 5/7] libtracefs: Call mmap ioctl if a refresh happens Steven Rostedt
2024-01-10  2:51 ` [PATCH 6/7] libtracefs: Add tracefs_mapped_is_supported() API Steven Rostedt
2024-01-10  2:51 ` [PATCH 7/7] libtracefs utest: Add tests to use mapping if supported Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).