A few final tracefs library fixes and improvements, before releasing it as an official library. v2 changes: - Change tracefs_instance_create() to return pointer to allocated trace instance structure - Add new API: tracefs_instance_is_new() to check if the trace instance is newly created by the library. Tzvetomir Stoyanov (VMware) (6): trace-cmd: Change tracefs.h include path libtracefs: Change APIs to work with constant strings libtracefs: Add new API to check if instance exists libtracefs: Combine allocate and create APIs into one libtracefs: Add new tracefs API tracefs_instances_walk() trace-cmd: Add new libtrasefs API to get the current trace clock include/trace-cmd/trace-cmd.h | 1 + include/tracefs/tracefs.h | 18 +-- lib/trace-cmd/trace-timesync.c | 5 +- lib/tracefs/include/tracefs-local.h | 1 + lib/tracefs/tracefs-events.c | 61 +++++----- lib/tracefs/tracefs-instance.c | 172 +++++++++++++++++++++++++--- tracecmd/include/trace-local.h | 4 +- tracecmd/trace-record.c | 72 ++++++------ tracecmd/trace-show.c | 2 +- tracecmd/trace-stat.c | 83 ++++---------- utest/tracefs-utest.c | 127 ++++++++++++++++---- 11 files changed, 357 insertions(+), 189 deletions(-) -- 2.28.0