Skip to content

libtracefs: Add more iterator helpers

Steven Rostedt linux-trace-devel 3 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesNew
  2. v24 patches 0 repliesSuperseded
  3. v14 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4libtracefs: Use tracefs_cpu_read() for tracefs_iterate_raw_events()src/tracefs-events.c+52 -540 replies
2/4libtracefs: Split out iterator functions from man pageDocumentation/libtracefs-events.txt Documentation/libtracefs-iterator.txt+145 -310 replies
3/4libtracefs: Add tracefs_follow_event() APIDocumentation/libtracefs-iterator.txt Documentation/libtracefs.txt include/tracefs-local.h +2 more+209 -430 replies
4/4libtracefs: Add tracefs_follow_missed_events() APIDocumentation/libtracefs-iterator.txt Documentation/libtracefs.txt include/tracefs-local.h +2 more+149 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] libtracefs: Add more iterator helpers

From: "Steven Rostedt (Google)" <[email protected]>

Add follow event and missed events callback helper to make it simpler to follow events using the tracefs_iterate_raw_events() function.

Also change tracefs_iterate_raw_events() to use the tracefs_cpu_buffered_read() that will read via splice and is much more efficient than using single reads.

Changes since v2: https://lore.kernel.org/all/[email protected]/

- Fixed up the documentation (again!)

Steven Rostedt (Google) (4):
libtracefs: Use tracefs_cpu_read() for tracefs_iterate_raw_events()
libtracefs: Split out iterator functions from man page
libtracefs: Add tracefs_follow_event() API
libtracefs: Add tracefs_follow_missed_events() API

 Documentation/libtracefs-events.txt   |  32 +--
 Documentation/libtracefs-iterator.txt | 229 ++++++++++++++++++++
 Documentation/libtracefs.txt          |  11 +
 include/tracefs-local.h               |  12 ++
 include/tracefs.h                     |  11 +
 src/tracefs-events.c                  | 292 +++++++++++++++++++++-----
 6 files changed, 502 insertions(+), 85 deletions(-)
 create mode 100644 Documentation/libtracefs-iterator.txt
Signature · 1 line
2.35.1