trace-cmd: Use record->cpu instead of tracking cpu

tracecmd_read_data(), tracecmd_read_next_data() and tracecmd_peek_data()
all set the record->cpu to the cpu that the record is on. Do not track
the cpu if we can use record->cpu instead. This prevents the bug (that this
patch fixes) where the cpu gets out of sync with the record be processed.

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