mbox series

[v3,0/8] libtracefs: Add reading from per_cpu trace_pipe_raw helper functions

Message ID 20221109235214.2191393-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series libtracefs: Add reading from per_cpu trace_pipe_raw helper functions | expand

Message

Steven Rostedt Nov. 9, 2022, 11:52 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

Add functions that allow applications to read the trace_pipe_raw files:

    tracefs_cpu_alloc_fd()
    tracefs_cpu_free_fd()
    tracefs_cpu_open()
    tracefs_cpu_close()
    tracefs_cpu_read_size()
    tracefs_cpu_read()
    tracefs_cpu_buffered_read()
    tracefs_cpu_write()
    tracefs_cpu_stop()
    tracefs_cpu_flush()
    tracefs_cpu_flush_write()
    tracefs_cpu_pipe()

Changes since v2: https://lore.kernel.org/all/20221025183212.1775523-1-rostedt@goodmis.org/

 - Renamed tracefs_cpu_create_fd() to tracefs_cpu_alloc_fd()

 - Added tracefs_cpu_free_fd()

Steven Rostedt (Google) (8):
  libtracefs: Add reading of per cpu files
  libtracefs: Add tracefs_cpu_alloc_fd() and tracefs_cpu_free_fd()
  libtracefs: Add tracefs_cpu_pipe()
  libtracefs utest: Make helper functions for affinity
  libtracefs: Add unit tests for tracefs_cpu functions
  libtracefs: Move tracefs_cpu_open/close into its own man page
  libtracefs: Add man pages for tracefs_cpu_alloc_fd() and
    tracefs_cpu_free_fd()
  libtracefs: Add man pages for tracefs_cpu_pipe()

 Documentation/libtracefs-cpu-open.txt | 100 +++++
 Documentation/libtracefs-cpu.txt      | 240 +++++++++++
 Documentation/libtracefs.txt          |  15 +
 include/tracefs.h                     |  16 +
 samples/Makefile                      |   1 +
 scripts/utils.mk                      |   2 +-
 src/Makefile                          |   1 +
 src/tracefs-record.c                  | 598 ++++++++++++++++++++++++++
 utest/tracefs-utest.c                 | 372 +++++++++++++++-
 9 files changed, 1330 insertions(+), 15 deletions(-)
 create mode 100644 Documentation/libtracefs-cpu-open.txt
 create mode 100644 Documentation/libtracefs-cpu.txt
 create mode 100644 src/tracefs-record.c