trace-cmd library: Inherit compression algorithm from input file

When a new trace file output handler is allocated, based on given trace
file input handler - use the same compression algorithm.

Link: https://lore.kernel.org/linux-trace-devel/20220126094906.570451-5-tz.stoyanov@gmail.com

Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
3 files changed