mbox series

[0/2] libtracefs: Handle EAGAIN case in flush functions

Message ID 20221110225959.2285998-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series libtracefs: Handle EAGAIN case in flush functions | expand

Message

Steven Rostedt Nov. 10, 2022, 10:59 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

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(-)