Skip to content

New libtracefs APIs

Tzvetomir Stoyanov (VMware) linux-trace-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 1 replyIn review
  2. v16 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Renamed tracefs_instance_file_read_int() to tracefs_instance_file_read_number().
- Added new tracefs_trace_on_get_fd() API.
- Better error checking of tracefs_instance_file_read_number() API.
- A few code clean-ups, suggested by Steven.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7libtracefs: tracefs_instance_file_read() get a const file nameDocumentation/libtracefs-instances-files.txt Documentation/libtracefs.txt include/tracefs.h +2 more+5 -50 replies
2/7libtracefs: New APIs for opening and reading ftrace filesinclude/tracefs.h src/tracefs-instance.c+63 -10 replies
3/7libtracefs: New APIs for enable / disable tracinginclude/tracefs.h src/Makefile src/tracefs-tools.c+128 -01 reply
4/7libtracefs: Documentation for the new APIs for opening and reading ftrace filesDocumentation/libtracefs-instances-files.txt Documentation/libtracefs.txt+44 -30 replies
5/7libtracefs: Documentation for enable / disable tracing APIsDocumentation/libtracefs-traceon.txt Documentation/libtracefs.txt+157 -00 replies
6/7libtracefs: Unit tests for the new APIs for opening and reading ftrace filesutest/tracefs-utest.c+94 -00 replies
7/7libtracefs: Unit tests for enable / disable tracing APIsutest/tracefs-utest.c+41 -00 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 0/7] New libtracefs APIs

Added new APIs to tracefs library and updated man pages and unit tests:
tracefs_instance_file_read_number(); tracefs_instance_file_open();
tracefs_trace_is_on();
tracefs_trace_on();
tracefs_trace_off();
tracefs_trace_on_get_fd()p;
tracefs_trace_on_fd();
tracefs_trace_off_fd();

v2 changes:
- Renamed tracefs_instance_file_read_int() to tracefs_instance_file_read_number().
- Added new tracefs_trace_on_get_fd() API.
- Better error checking of tracefs_instance_file_read_number() API.
- A few code clean-ups, suggested by Steven.

Tzvetomir Stoyanov (VMware) (7):
libtracefs: tracefs_instance_file_read() get a const file name
libtracefs: New APIs for opening and reading ftrace files
libtracefs: New APIs for enable / disable tracing
libtracefs: Documentation for the new APIs for opening and reading
ftrace files
libtracefs: Documentation for enable / disable tracing APIs
libtracefs: Unit tests for the new APIs for opening and reading ftrace
files
libtracefs: Unit tests for enable / disable tracing APIs

 Documentation/libtracefs-instances-files.txt |  47 +++++-
 Documentation/libtracefs-traceon.txt         | 151 +++++++++++++++++++
 Documentation/libtracefs.txt                 |  10 +-
 include/tracefs.h                            |  24 ++-
 src/Makefile                                 |   1 +
 src/tracefs-instance.c                       |  62 +++++++-
 src/tracefs-tools.c                          | 109 +++++++++++++
 utest/tracefs-utest.c                        | 137 ++++++++++++++++-
 8 files changed, 532 insertions(+), 9 deletions(-)
 create mode 100644 Documentation/libtracefs-traceon.txt
 create mode 100644 src/tracefs-tools.c
Signature · 1 line
2.29.2