Skip to content

kbuffer: Some minor fixes

Steven Rostedt linux-trace-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3libtraceevent Documentation: Fix tep_kbuffer() prototypeDocumentation/libtraceevent-handle.txt Documentation/libtraceevent.txt+2 -10 replies
2/3kbuffer: Add event if the buffer just fits in kbuffer_read_buffer()src/kbuffer-parse.c+1 -10 replies
3/3kbuffer: Update kbuf->next in kbuffer_refresh()src/kbuffer-parse.c+14 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] kbuffer: Some minor fixes

From: "Steven Rostedt (Google)" <[email protected]>

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(-)
Signature · 1 line
2.42.0