trace-cmd: Make read nonblocking in find_time_stamp().

This only affects the tsc -> time of day correlation when doing
`trace-cmd record --date`.

get_date_to_ts() writes a dummy event to trace_marker and then reads it back.
Reading it back is done by looping over all per-cpu raw trace pipes and trying
to read.  This read should be non-blocking, because the dummy event can end up
on any CPU.

Link: http://lkml.kernel.org/r/CAF+KLxuutGDHxzLLaWL-wXsDRyM=4syJcm7wDdEgNxNCpg2TWQ@mail.gmail.com

Signed-off-by: Aaron Fabbri <ajfabbri@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 file changed