Added new APIs to tracefs library and updated man pages and unit tests: tracefs_instance_file_read_int(); tracefs_instance_file_open(); tracefs_trace_is_on(); tracefs_trace_on(); tracefs_trace_off(); tracefs_trace_on_fd(); tracefs_trace_off_fd(); The main motivation is to cover trace-cmd use cases of tracefs library. These APIs are the first step in that direction. Tzvetomir Stoyanov (VMware) (6): 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 | 143 +++++++++++++++++++ include/tracefs.h | 12 +- src/Makefile | 1 + src/tracefs-instance.c | 59 +++++++- src/tracefs-tools.c | 123 ++++++++++++++++ utest/tracefs-utest.c | 131 +++++++++++++++++ 7 files changed, 509 insertions(+), 7 deletions(-) create mode 100644 Documentation/libtracefs-traceon.txt create mode 100644 src/tracefs-tools.c -- 2.29.2