trace-cmd recorder: Make sure to write as much as was read in read_data()

It is possible that the write() call in read_data() may not write as much as
what was read. In that case, loop to make sure all the data that was read is
written to the output.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 file changed