From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> The tracefs_cpu_flush*() functions should not return -EAGAIN as they are non blocking and should only return 0 when there's nothing to read. Steven Rostedt (Google) (2): libtracefs: Do not return negative on EAGAIN for tracefs_cpu_flush_write() libtracefs: Reset errno to success on EAGAIN for the flush functions src/tracefs-record.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) -- 2.35.1