From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> Have tracefs_cpu_flush_write() not error on EGAIN. Have bothe tracefs_cpu_flush() and tracefs_cpu_flush_write() reset errno back to zero when it finishes with EAGAIN. 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