A few final tracefs library fixes and improvements, before releasing it as an official library. v3 chabges: - Addressed Steven's comments. 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 get name API to return constant string 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 | 10 +- lib/trace-cmd/trace-timesync.c | 3 +- lib/tracefs/include/tracefs-local.h | 1 + lib/tracefs/tracefs-events.c | 26 ++--- lib/tracefs/tracefs-instance.c | 173 +++++++++++++++++++++++++--- 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 | 107 ++++++++++++++--- 11 files changed, 327 insertions(+), 155 deletions(-) -- 2.28.0