mbox series

[0/3] kbuffer: Some minor fixes

Message ID 20240105194015.253165-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series kbuffer: Some minor fixes | expand

Message

Steven Rostedt Jan. 5, 2024, 7:37 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

The kbuffer update to work with libtracefs mmapping code had a few bugs.

1) The man page was missing its prototype for tep_kbuffer()

2) A buffer passed in to kbuffer_read_buffer() that was just big enough to
   hold the events, was not completely filled.

3) kbuffer_refresh() left the current event zero size, even if new data was
   added after it, if the last read was at the end of the page.

Steven Rostedt (Google) (3):
  libtraceevent Documentation: Fix tep_kbuffer() prototype
  kbuffer: Add event if the buffer just fits in kbuffer_read_buffer()
  kbuffer: Update kbuf->next in kbuffer_refresh()

 Documentation/libtraceevent-handle.txt |  1 +
 Documentation/libtraceevent.txt        |  2 +-
 src/kbuffer-parse.c                    | 16 +++++++++++++++-
 3 files changed, 17 insertions(+), 2 deletions(-)