Added new options to trace-cmd clear, alowwing it to be ftrace instance aware. Implemented new tracefs API for iterating over the configured ftrace instances. Tzvetomir Stoyanov (VMware) (2): trace-cmd: Add new tracefs API tracefs_instances_walk() trace-cmd: Enhance "trace-cmd clear" to be instance aware Documentation/trace-cmd-clear.1.txt | 13 ++- include/tracefs/tracefs.h | 1 + lib/tracefs/include/tracefs-local.h | 1 + lib/tracefs/tracefs-events.c | 14 ++-- lib/tracefs/tracefs-instance.c | 52 ++++++++++++ tracecmd/Makefile | 1 + tracecmd/trace-clear.c | 124 ++++++++++++++++++++++++++++ tracecmd/trace-record.c | 24 ------ tracecmd/trace-stat.c | 52 +++--------- tracecmd/trace-usage.c | 4 +- 10 files changed, 214 insertions(+), 72 deletions(-) create mode 100644 tracecmd/trace-clear.c -- 2.26.2