trace-cmd: Fix --poll trace recording
When using --poll, move_data() returns -1 and errno is set to EAGAIN.
This causes the record threads to stop recording.
Fix it by returning to the read loop in case EAGAIN, if --poll
is specified.
Link: https://lore.kernel.org/linux-trace-devel/ZbgNqiyocHf/FEQw@tpad
Fixes: 2610bdcde43a6 ("trace-cmd library: Use tracefs_cpu for recorder helpers")
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 file changed