From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> In preparation to add more advanced kbuffer functionality to libtracefs, some kbuffer APIs are needed. This will also allow libtracefs to add APIs for the upcoming memory mapping of the kernel ring buffer. Steven Rostedt (Google) (6): libtraceevent: Add tep_get_sub_buffer_commit_offset() libtraceevent: Fix tep_kbuffer() to have kbuf assign long_size kbuffer: Add kbuffer_read_buffer() kbuffer: Add kbuffer_dup() kbuffer: Add kbuffer_subbuffer() API kbuffer: Add kbuffer_refresh() API .../libtraceevent-kbuffer-create.txt | 30 ++- Documentation/libtraceevent-kbuffer-read.txt | 19 +- Documentation/libtraceevent-page_size.txt | 9 + Documentation/libtraceevent.txt | 5 + include/traceevent/event-parse.h | 1 + include/traceevent/kbuffer.h | 4 + src/event-parse-api.c | 15 ++ src/kbuffer-parse.c | 223 ++++++++++++++++-- src/parse-utils.c | 5 + 9 files changed, 287 insertions(+), 24 deletions(-) -- 2.42.0