linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: linux-trace-devel@vger.kernel.org
Cc: Vincent Donnefort <vdonnefort@google.com>,
	"Steven Rostedt (Google)" <rostedt@goodmis.org>
Subject: [PATCH 0/7] libtracefs: More fixes for memory mapping ring buffer API
Date: Tue,  9 Jan 2024 21:51:44 -0500	[thread overview]
Message-ID: <20240110030116.81837-1-rostedt@goodmis.org> (raw)

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


             reply	other threads:[~2024-01-10  3:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-10  2:51 Steven Rostedt [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240110030116.81837-1-rostedt@goodmis.org \
    --to=rostedt@goodmis.org \
    --cc=linux-trace-devel@vger.kernel.org \
    --cc=vdonnefort@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).