mbox series

[v2,0/4] Add some helpful APIS

Message ID 20221114204522.2433500-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series Add some helpful APIS | expand

Message

Steven Rostedt Nov. 14, 2022, 8:45 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

Add tracefs_event_is_enabled() and tracefs_tracing_dir_is mounted().

Also add getting and setting the ring buffer size.

Changes since v1: https://lore.kernel.org/all/20221112004130.2305589-1-rostedt@goodmis.org/

 - Add tracefs_instance_set_buffer_size() prototype in tracefs.h

 - Added tracefs_tracing_dir_is_mounted() API.


Steven Rostedt (Google) (4):
  libtracefs: Add tracefs_event_is_enabled() API
  libtracefs: Add tracefs_instance_get_buffer_size() API
  libtracefs: Add tracefs_instance_set_buffer_size() API
  libtracefs: Add tracefs_tracing_dir_is_mounted() API

 Documentation/libtracefs-events.txt          |  33 ++++-
 Documentation/libtracefs-files.txt           |  14 +-
 Documentation/libtracefs-instances-utils.txt |  22 +++-
 Documentation/libtracefs.txt                 |   5 +
 include/tracefs.h                            |  12 ++
 src/tracefs-events.c                         | 128 +++++++++++++++++--
 src/tracefs-instance.c                       |  64 ++++++++++
 src/tracefs-utils.c                          |  62 +++++++--
 8 files changed, 312 insertions(+), 28 deletions(-)