Various trace-cmd application and library fixes, clean-ups and internal refactoring, needed for trace file version 7 and compression changes. v4 changes: - Removed from the set the patches that were already merged upstream. - Rebased on top of the latest master. - Removed these 2 patches from the set, as they will be a separate patch sets: "trace-cmd library: Refactor APIs for creating output handler" "trace-cmd library: Refactor the logic for writing trace data in the file" - Addressed Steven's comments. v3 changes: - Fixed issues of split and convert commands with some corner cases. v2 changes: - More cleanups, forgotten in the first version. Tzvetomir Stoyanov (VMware) (6): trace-cmd library: Do not use local variables when reading CPU stat option trace-cmd library: Track maximum CPUs count in input handler trace-cmd library: Fix possible memory leak in read_event_files() trace-cmd library: Fix possible memory leak in read_ftrace_files() trace-cmd library: Set the correct file state when reading file with no kallsyms trace-cmd library: Set the correct file state when reading file with no ftrace printk data lib/trace-cmd/trace-input.c | 92 ++++++++++++++++++++----------------- 1 file changed, 51 insertions(+), 41 deletions(-) -- 2.31.1