mbox series

[0/2] libtracefs: Minor fixes

Message ID 20221114222024.2435776-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series libtracefs: Minor fixes | expand

Message

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

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