Skip to content

libtracefs: Several updates

Steven Rostedt linux-trace-devel 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest22 patches 0 repliesNew
  2. v123 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22libtracefs Documentation: Fix tracefs_event_file_exists() issuesDocumentation/libtracefs-events-file.txt Documentation/libtracefs.txt+2 -20 replies
2/22libtracefs testing: Use one tep handle for most testsutest/tracefs-utest.c+4 -150 replies
3/22libtracefs: Free "missed_followers" of instancesrc/tracefs-instance.c+1 -00 replies
4/22libtracefs: Free buf in clear_func_filter()src/tracefs-instance.c+1 -00 replies
5/22libtracefs: Free tracing_dir in case of remountsrc/tracefs-utils.c+2 -10 replies
6/22libtracefs: Free dynamic event list in utestutest/tracefs-utest.c+6 -20 replies
7/22libtracefs: Reset tracing before and after unit testsutest/tracefs-utest.c+4 -00 replies
8/22libtracefs: Add API to remove followers from an instance or toplevelDocumentation/libtracefs-iterator.txt include/tracefs.h src/tracefs-events.c +1 more+366 -10 replies
9/22libtracefs: Increase splice to use pipe max sizesrc/tracefs-record.c+7 -00 replies
10/22libtracefs: Add tracefs_instance_file_write_number()Documentation/libtracefs-instances-file-manip.txt Documentation/libtracefs.txt include/tracefs.h +2 more+61 -20 replies
11/22libtracefs: Add API to read tracefs_cpu and return a kbufferDocumentation/libtracefs-cpu-buf.txt Documentation/libtracefs-cpu.txt Documentation/libtracefs.txt +3 more+298 -00 replies
12/22libtracefs: Add tracefs_instance_get/set_buffer_percent()Documentation/libtracefs-instances-utils.txt Documentation/libtracefs.txt include/tracefs.h +1 more+59 -10 replies
13/22libtracefs: Add tracefs_instance_clear() APIDocumentation/libtracefs-instances-manage.txt Documentation/libtracefs.txt include/tracefs.h +1 more+21 -10 replies
14/22libtracefs utest: Add test to test tracefs_instance_set/get_buffer_percent()meson.build utest/tracefs-utest.c+155 -100 replies
15/22libtracefs: Add kerneldoc comments to tracefs_instance_set_buffer_size()src/tracefs-instance.c+12 -00 replies
16/22libtracefs: Add tracefs_load_headers() APIDocumentation/libtracefs-events-tep.txt Documentation/libtracefs.txt include/tracefs.h +2 more+32 -90 replies
17/22libtracefs: Add API to extract ring buffer statisticsDocumentation/libtracefs-instances-stat.txt Documentation/libtracefs.txt include/tracefs-local.h +4 more+383 -00 replies
18/22libtracefs: Add tracefs_instance_set/get_subbuf_size()Documentation/libtracefs-instances-subbuf.txt Documentation/libtracefs.txt include/tracefs.h +2 more+196 -00 replies
19/22libtracefs: Add TIMESTAMP_USECS_DELTA to simplify SQL timestamp comparesDocumentation/libtracefs-sql.txt src/tracefs-sqlhist.c utest/tracefs-utest.c+88 -20 replies
20/22libtracefs: Also clear max_graph_depth on resetsrc/tracefs-instance.c+1 -00 replies
21/22libtracefs: Add PID filtering APIDocumentation/libtracefs-filter-pid.txt Documentation/libtracefs.txt include/tracefs.h +2 more+577 -80 replies
22/22libtracefs: Add updating and reading snapshot buffersDocumentation/libtracefs-cpu-open.txt Documentation/libtracefs-iterator.txt Documentation/libtracefs.txt +4 more+237 -490 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 00/22] libtracefs: Several updates

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

Spent the days between Christmas and New Years doing some updates to the libtracefs library!

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

- Updated the minimum version of libtraceevent for when it is needed.

- re-arranged the patches a bit.

- Removed a patch that was not ready yet.

Steven Rostedt (Google) (22):
libtracefs Documentation: Fix tracefs_event_file_exists() issues libtracefs testing: Use one tep handle for most tests
libtracefs: Free "missed_followers" of instance
libtracefs: Free buf in clear_func_filter()
libtracefs: Free tracing_dir in case of remount
libtracefs: Free dynamic event list in utest
libtracefs: Reset tracing before and after unit tests
libtracefs: Add API to remove followers from an instance or toplevel
libtracefs: Increase splice to use pipe max size
libtracefs: Add tracefs_instance_file_write_number()
libtracefs: Add API to read tracefs_cpu and return a kbuffer
libtracefs: Add tracefs_instance_get/set_buffer_percent()
libtracefs: Add tracefs_instance_clear() API
libtracefs utest: Add test to test
tracefs_instance_set/get_buffer_percent()
libtracefs: Add kerneldoc comments to
tracefs_instance_set_buffer_size()
libtracefs: Add tracefs_load_headers() API
libtracefs: Add API to extract ring buffer statistics
libtracefs: Add tracefs_instance_set/get_subbuf_size()
libtracefs: Add TIMESTAMP_USECS_DELTA to simplify SQL timestamp
compares
libtracefs: Also clear max_graph_depth on reset
libtracefs: Add PID filtering API
libtracefs: Add updating and reading snapshot buffers

 Documentation/libtracefs-cpu-buf.txt          | 171 ++++
 Documentation/libtracefs-cpu-open.txt         |  16 +-
 Documentation/libtracefs-cpu.txt              |   3 +
 Documentation/libtracefs-events-file.txt      |   3 +-
 Documentation/libtracefs-events-tep.txt       |   7 +-
 Documentation/libtracefs-filter-pid.txt       | 181 +++++
 .../libtracefs-instances-file-manip.txt       |   9 +-
 Documentation/libtracefs-instances-manage.txt |   9 +-
 Documentation/libtracefs-instances-stat.txt   | 183 +++++
 Documentation/libtracefs-instances-subbuf.txt | 152 ++++
 Documentation/libtracefs-instances-utils.txt  |  28 +-
 Documentation/libtracefs-iterator.txt         |  38 +-
 Documentation/libtracefs-sql.txt              |  16 +
 Documentation/libtracefs.txt                  |  39 +
 include/tracefs-local.h                       |  11 +
 include/tracefs.h                             |  51 ++
 meson.build                                   |   2 +-
 samples/Makefile                              |   3 +
 src/Makefile                                  |   1 +
 src/tracefs-events.c                          | 218 ++++-
 src/tracefs-filter.c                          | 132 +++
 src/tracefs-instance.c                        |  84 ++
 src/tracefs-record.c                          | 234 +++++-
 src/tracefs-sqlhist.c                         |  64 +-
 src/tracefs-stats.c                           | 162 ++++
 src/tracefs-utils.c                           |  30 +-
 utest/tracefs-utest.c                         | 755 +++++++++++++++++-
 27 files changed, 2506 insertions(+), 96 deletions(-)
 create mode 100644 Documentation/libtracefs-cpu-buf.txt
 create mode 100644 Documentation/libtracefs-filter-pid.txt
 create mode 100644 Documentation/libtracefs-instances-stat.txt
 create mode 100644 Documentation/libtracefs-instances-subbuf.txt
 create mode 100644 src/tracefs-stats.c
Signature · 1 line
2.42.0