trace-cmd bug fixes

From: Federico Vaga
Date: Sun Apr 23 2017 - 06:34:16 EST


This set of patches contains some fixes found while studying
the trace-cmd code.